netwerk/protocol/data/nsDataChannel.h
author Dave Camp <dcamp@mozilla.com>
Sat, 11 Oct 2014 13:08:07 -0700
changeset 233197 4cf592b066efc4a56977a181d6aa4d81f78d3155
parent 219561 2d5be0125f4690e7a2079e591ff2cbf952e5bca8
child 265143 6fb980e58948e688e2c794e4ec006f2c6ca831c2
permissions -rw-r--r--
Bug 1072080 - Add the ability to define a marshaller for form data. r=jryans,jsantell

/* -*- Mode: C++; tab-width: 2; 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/. */

// data implementation header

#ifndef nsDataChannel_h___
#define nsDataChannel_h___

#include "nsBaseChannel.h"

class nsIInputStream;

class nsDataChannel : public nsBaseChannel {
public:
    explicit nsDataChannel(nsIURI *uri) {
        SetURI(uri);
    }

protected:
    virtual nsresult OpenContentStream(bool async, nsIInputStream **result,
                                       nsIChannel** channel);
};

#endif /* nsDataChannel_h___ */