X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fnet%2Fhttp%2Fhttp_cache.h;h=8784c8a3fd521b308f67264b4e00e657b4b8c560;hb=004985e17e624662a4c85c76a7654039dc83f028;hp=dd9d0cdfcae36cfcbff10cbbeacc6874179768c9;hpb=2f108dbacb161091e42a3479f4e171339b7e7623;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/net/http/http_cache.h b/src/net/http/http_cache.h index dd9d0cd..8784c8a 100644 --- a/src/net/http/http_cache.h +++ b/src/net/http/http_cache.h @@ -60,7 +60,6 @@ class ViewCacheHelper; struct HttpRequestInfo; class NET_EXPORT HttpCache : public HttpTransactionFactory, - public base::SupportsWeakPtr, NON_EXPORTED_BASE(public base::NonThreadSafe) { public: // The cache mode of operation. @@ -195,6 +194,8 @@ class NET_EXPORT HttpCache : public HttpTransactionFactory, virtual HttpCache* GetCache() OVERRIDE; virtual HttpNetworkSession* GetSession() OVERRIDE; + base::WeakPtr GetWeakPtr() { return weak_factory_.GetWeakPtr(); } + // Resets the network layer to allow for tests that probe // network changes (e.g. host unreachable). The old network layer is // returned to allow for filter patterns that only intercept @@ -406,6 +407,8 @@ class NET_EXPORT HttpCache : public HttpTransactionFactory, scoped_ptr playback_cache_map_; + base::WeakPtrFactory weak_factory_; + DISALLOW_COPY_AND_ASSIGN(HttpCache); };