netwerk/protocol/data/nsDataModule.cpp
author Dave Camp <dcamp@mozilla.com>
Sat, 11 Oct 2014 13:08:07 -0700
changeset 233197 4cf592b066efc4a56977a181d6aa4d81f78d3155
parent 98529 f4157e8c410708d76703f19e4dfb61859bfe32d8
child 416428 6a629adbb62a299d7208373d1c6f375149d2afdb
permissions -rw-r--r--
Bug 1072080 - Add the ability to define a marshaller for form data. r=jryans,jsantell

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#include "nsIModule.h"
#include "nsIGenericFactory.h"
#include "nsDataHandler.h"

// The list of components we register
static const nsModuleComponentInfo components[] = {
    { "Data Protocol Handler", 
      NS_DATAHANDLER_CID,
      NS_NETWORK_PROTOCOL_CONTRACTID_PREFIX "data", 
      nsDataHandler::Create},
};

NS_IMPL_NSGETMODULE(nsDataProtocolModule, components)