michael@0: /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ 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 nsOfflineCacheUpdateParent_h michael@0: #define nsOfflineCacheUpdateParent_h michael@0: michael@0: #include "mozilla/docshell/POfflineCacheUpdateParent.h" michael@0: #include "nsIOfflineCacheUpdate.h" michael@0: michael@0: #include "nsString.h" michael@0: #include "nsILoadContext.h" michael@0: michael@0: namespace mozilla { michael@0: michael@0: namespace dom { michael@0: class TabParent; michael@0: } michael@0: michael@0: namespace ipc { michael@0: class URIParams; michael@0: } // namespace ipc michael@0: michael@0: namespace docshell { michael@0: michael@0: class OfflineCacheUpdateParent : public POfflineCacheUpdateParent michael@0: , public nsIOfflineCacheUpdateObserver michael@0: , public nsILoadContext michael@0: { michael@0: typedef mozilla::ipc::URIParams URIParams; michael@0: michael@0: public: michael@0: NS_DECL_ISUPPORTS michael@0: NS_DECL_NSIOFFLINECACHEUPDATEOBSERVER michael@0: NS_DECL_NSILOADCONTEXT michael@0: michael@0: nsresult michael@0: Schedule(const URIParams& manifestURI, michael@0: const URIParams& documentURI, michael@0: const bool& stickDocument); michael@0: michael@0: void michael@0: StopSendingMessagesToChild() michael@0: { michael@0: mIPCClosed = true; michael@0: } michael@0: michael@0: OfflineCacheUpdateParent(uint32_t aAppId, bool aIsInBrowser); michael@0: ~OfflineCacheUpdateParent(); michael@0: michael@0: virtual void ActorDestroy(ActorDestroyReason aWhy) MOZ_OVERRIDE; michael@0: michael@0: private: michael@0: bool mIPCClosed; michael@0: michael@0: bool mIsInBrowserElement; michael@0: uint32_t mAppId; michael@0: }; michael@0: michael@0: } // namespace docshell michael@0: } // namespace mozilla michael@0: michael@0: #endif