Thu, 15 Jan 2015 15:55:04 +0100
Back out 97036ab72558 which inappropriately compared turds to third parties.
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__