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 nsHttpActivityDistributor_h__ michael@0: #define nsHttpActivityDistributor_h__ michael@0: michael@0: #include "nsIHttpActivityObserver.h" michael@0: #include "nsTArray.h" michael@0: #include "nsProxyRelease.h" michael@0: #include "mozilla/Mutex.h" michael@0: michael@0: namespace mozilla { namespace net { michael@0: michael@0: class nsHttpActivityDistributor : public nsIHttpActivityDistributor michael@0: { michael@0: public: michael@0: typedef nsTArray > ObserverArray; michael@0: NS_DECL_THREADSAFE_ISUPPORTS michael@0: NS_DECL_NSIHTTPACTIVITYOBSERVER michael@0: NS_DECL_NSIHTTPACTIVITYDISTRIBUTOR michael@0: michael@0: nsHttpActivityDistributor(); michael@0: virtual ~nsHttpActivityDistributor(); michael@0: michael@0: protected: michael@0: ObserverArray mObservers; michael@0: Mutex mLock; michael@0: }; michael@0: michael@0: }} // namespace mozilla::net michael@0: michael@0: #endif // nsHttpActivityDistributor_h__