michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef nsChannelClassifier_h__ michael@0: #define nsChannelClassifier_h__ michael@0: michael@0: #include "nsIURIClassifier.h" michael@0: #include "nsCOMPtr.h" michael@0: #include "mozilla/Attributes.h" michael@0: michael@0: class nsIChannel; michael@0: michael@0: michael@0: class nsChannelClassifier MOZ_FINAL : public nsIURIClassifierCallback michael@0: { michael@0: public: michael@0: nsChannelClassifier(); michael@0: michael@0: NS_DECL_ISUPPORTS michael@0: NS_DECL_NSIURICLASSIFIERCALLBACK michael@0: michael@0: nsresult Start(nsIChannel *aChannel); michael@0: michael@0: private: michael@0: nsCOMPtr mSuspendedChannel; michael@0: michael@0: ~nsChannelClassifier() {} michael@0: void MarkEntryClassified(nsresult status); michael@0: bool HasBeenClassified(nsIChannel *aChannel); michael@0: }; michael@0: michael@0: #endif