Index: content/browser/storage_partition_impl.cc |
diff --git a/content/browser/storage_partition_impl.cc b/content/browser/storage_partition_impl.cc |
index 02cb5d71d7163ba4a827675d7bcd20231241583b..b09918b6aeeebfbf62c55b74e175dd9b3914274f 100644 |
--- a/content/browser/storage_partition_impl.cc |
+++ b/content/browser/storage_partition_impl.cc |
@@ -7,6 +7,7 @@ |
#include "content/browser/fileapi/browser_file_system_helper.h" |
#include "content/public/browser/browser_context.h" |
#include "content/public/browser/browser_thread.h" |
+#include "net/url_request/url_request_context_getter.h" |
#include "webkit/database/database_tracker.h" |
#include "webkit/quota/quota_manager.h" |
@@ -147,6 +148,15 @@ FilePath StoragePartitionImpl::GetPath() { |
return partition_path_; |
} |
+net::URLRequestContextGetter* StoragePartitionImpl::GetURLRequestContext() { |
+ return url_request_context_; |
+} |
+ |
+net::URLRequestContextGetter* |
+StoragePartitionImpl::GetMediaURLRequestContext() { |
+ return media_url_request_context_; |
+} |
+ |
quota::QuotaManager* StoragePartitionImpl::GetQuotaManager() { |
return quota_manager_; |
} |
@@ -171,4 +181,14 @@ IndexedDBContextImpl* StoragePartitionImpl::GetIndexedDBContext() { |
return indexed_db_context_; |
} |
+void StoragePartitionImpl::SetURLRequestContext( |
+ net::URLRequestContextGetter* url_request_context) { |
+ url_request_context_ = url_request_context; |
+} |
+ |
+void StoragePartitionImpl::SetMediaURLRequestContext( |
+ net::URLRequestContextGetter* media_url_request_context) { |
+ media_url_request_context_ = media_url_request_context; |
+} |
+ |
} // namespace content |