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

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

Issue 1174943004: [CacheStorage] Use URLRequestContextGetter instead of URLRequestContext (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Actually pass a getter 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_cache.h
diff --git a/content/browser/cache_storage/cache_storage_cache.h b/content/browser/cache_storage/cache_storage_cache.h
index 8e682eafe7eae2a5085752fb73c3645d6a6279d5..dce52dfd7b17bb669219e83706c8089945fd504c 100644
--- a/content/browser/cache_storage/cache_storage_cache.h
+++ b/content/browser/cache_storage/cache_storage_cache.h
@@ -16,7 +16,7 @@
#include "net/disk_cache/disk_cache.h"
namespace net {
-class URLRequestContext;
+class URLRequestContextGetter;
class IOBufferWithSize;
}
@@ -50,13 +50,13 @@ class CONTENT_EXPORT CacheStorageCache
static scoped_refptr<CacheStorageCache> CreateMemoryCache(
const GURL& origin,
- net::URLRequestContext* request_context,
+ const scoped_refptr<net::URLRequestContextGetter>& request_context,
const scoped_refptr<storage::QuotaManagerProxy>& quota_manager_proxy,
base::WeakPtr<storage::BlobStorageContext> blob_context);
static scoped_refptr<CacheStorageCache> CreatePersistentCache(
const GURL& origin,
const base::FilePath& path,
- net::URLRequestContext* request_context,
+ const scoped_refptr<net::URLRequestContextGetter>& request_context,
const scoped_refptr<storage::QuotaManagerProxy>& quota_manager_proxy,
base::WeakPtr<storage::BlobStorageContext> blob_context);
@@ -121,7 +121,7 @@ class CONTENT_EXPORT CacheStorageCache
CacheStorageCache(
const GURL& origin,
const base::FilePath& path,
- net::URLRequestContext* request_context,
+ const scoped_refptr<net::URLRequestContextGetter>& request_context,
const scoped_refptr<storage::QuotaManagerProxy>& quota_manager_proxy,
base::WeakPtr<storage::BlobStorageContext> blob_context);
@@ -206,7 +206,7 @@ class CONTENT_EXPORT CacheStorageCache
GURL origin_;
base::FilePath path_;
- net::URLRequestContext* request_context_;
+ scoped_refptr<net::URLRequestContextGetter> request_context_;
scoped_refptr<storage::QuotaManagerProxy> quota_manager_proxy_;
base::WeakPtr<storage::BlobStorageContext> blob_storage_context_;
BackendState backend_state_;

Powered by Google App Engine
This is Rietveld 408576698