Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(231)

Unified Diff: content/browser/cache_storage/cache_storage_manager.h

Issue 1174943004: [CacheStorage] Use URLRequestContextGetter instead of URLRequestContext (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments from PS4 Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/cache_storage/cache_storage_manager.h
diff --git a/content/browser/cache_storage/cache_storage_manager.h b/content/browser/cache_storage/cache_storage_manager.h
index b9eeda696a0c51eb90e0959869669a0fb563717b..b762a21a30645d6697c90d4e22f797cf18ea965f 100644
--- a/content/browser/cache_storage/cache_storage_manager.h
+++ b/content/browser/cache_storage/cache_storage_manager.h
@@ -11,8 +11,10 @@
#include "base/basictypes.h"
#include "base/files/file_path.h"
#include "base/gtest_prod_util.h"
+#include "base/memory/ref_counted.h"
#include "content/browser/cache_storage/cache_storage.h"
#include "content/common/content_export.h"
+#include "net/url_request/url_request_context_getter.h"
#include "storage/browser/quota/quota_client.h"
#include "url/gurl.h"
@@ -20,10 +22,6 @@ namespace base {
class SequencedTaskRunner;
}
-namespace net {
-class URLRequestContext;
-}
-
namespace storage {
class BlobStorageContext;
class QuotaManagerProxy;
@@ -73,7 +71,7 @@ class CONTENT_EXPORT CacheStorageManager {
// This must be called before creating any of the public *Cache functions
// above.
void SetBlobParametersForCache(
- net::URLRequestContext* request_context,
+ const scoped_refptr<net::URLRequestContextGetter>& request_context_getter,
base::WeakPtr<storage::BlobStorageContext> blob_storage_context);
base::WeakPtr<CacheStorageManager> AsWeakPtr() {
@@ -110,8 +108,9 @@ class CONTENT_EXPORT CacheStorageManager {
scoped_ptr<CacheStorage> cache_storage,
base::WeakPtr<CacheStorageManager> cache_manager);
- net::URLRequestContext* url_request_context() const {
- return request_context_;
+ scoped_refptr<net::URLRequestContextGetter> url_request_context_getter()
+ const {
+ return request_context_getter_;
}
base::WeakPtr<storage::BlobStorageContext> blob_storage_context() const {
return blob_context_;
@@ -147,7 +146,7 @@ class CONTENT_EXPORT CacheStorageManager {
// |cache_task_runner_|.
CacheStorageMap cache_storage_map_;
- net::URLRequestContext* request_context_;
+ scoped_refptr<net::URLRequestContextGetter> request_context_getter_;
base::WeakPtr<storage::BlobStorageContext> blob_context_;
base::WeakPtrFactory<CacheStorageManager> weak_ptr_factory_;
« no previous file with comments | « content/browser/cache_storage/cache_storage_context_impl.cc ('k') | content/browser/cache_storage/cache_storage_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698