netwerk/protocol/about/nsAboutCache.h

branch
TOR_BUG_9701
changeset 11
deefc01c0e14
equal deleted inserted replaced
-1:000000000000 0:c283b34c745c
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/. */
5
6 #ifndef nsAboutCache_h__
7 #define nsAboutCache_h__
8
9 #include "nsIAboutModule.h"
10
11 #include "nsString.h"
12 #include "nsIOutputStream.h"
13
14 #include "nsICacheVisitor.h"
15 #include "nsCOMPtr.h"
16
17 class nsAboutCache : public nsIAboutModule
18 , public nsICacheVisitor
19 {
20 public:
21 NS_DECL_ISUPPORTS
22 NS_DECL_NSIABOUTMODULE
23 NS_DECL_NSICACHEVISITOR
24
25 nsAboutCache() {}
26 virtual ~nsAboutCache() {}
27
28 static nsresult
29 Create(nsISupports *aOuter, REFNSIID aIID, void **aResult);
30
31 protected:
32 nsresult ParseURI(nsIURI * uri, nsCString &deviceID);
33
34 nsCOMPtr<nsIOutputStream> mStream;
35 nsCString mDeviceID;
36 nsCString mBuffer;
37 };
38
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 }
46
47 #endif // nsAboutCache_h__

mercurial