netwerk/protocol/about/nsAboutCache.h

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
     2 /* This Source Code Form is subject to the terms of the Mozilla Public
     3  * License, v. 2.0. If a copy of the MPL was not distributed with this
     4  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     6 #ifndef nsAboutCache_h__
     7 #define nsAboutCache_h__
     9 #include "nsIAboutModule.h"
    11 #include "nsString.h"
    12 #include "nsIOutputStream.h"
    14 #include "nsICacheVisitor.h"
    15 #include "nsCOMPtr.h"
    17 class nsAboutCache : public nsIAboutModule 
    18                    , public nsICacheVisitor
    19 {
    20 public:
    21     NS_DECL_ISUPPORTS
    22     NS_DECL_NSIABOUTMODULE
    23     NS_DECL_NSICACHEVISITOR
    25     nsAboutCache() {}
    26     virtual ~nsAboutCache() {}
    28     static nsresult
    29     Create(nsISupports *aOuter, REFNSIID aIID, void **aResult);
    31 protected:
    32     nsresult  ParseURI(nsIURI * uri, nsCString &deviceID);
    34     nsCOMPtr<nsIOutputStream> mStream;
    35     nsCString                 mDeviceID;
    36     nsCString mBuffer;
    37 };
    39 #define NS_ABOUT_CACHE_MODULE_CID                    \
    40 { /* 9158c470-86e4-11d4-9be2-00e09872a416 */         \
    41     0x9158c470,                                      \
    42     0x86e4,                                          \
    43     0x11d4,                                          \
    44     {0x9b, 0xe2, 0x00, 0xe0, 0x98, 0x72, 0xa4, 0x16} \
    45 }
    47 #endif // nsAboutCache_h__

mercurial