Chromium Code Reviews| Index: content/browser/storage_partition_impl.cc |
| diff --git a/content/browser/storage_partition_impl.cc b/content/browser/storage_partition_impl.cc |
| index e906a6acb8dc22a68ba429db5a1370496b5a01d4..81018b8bbe4ec779410d332a22bf44b5fb7a9087 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" |
| @@ -48,6 +49,7 @@ StoragePartitionImpl::~StoragePartitionImpl() { |
| StoragePartitionImpl* StoragePartitionImpl::Create( |
| BrowserContext* context, |
| const FilePath& partition_path) { |
| + |
|
michaeln
2012/09/15 01:48:33
stray newline
awong
2012/09/15 02:05:02
Done.
|
| // Ensure that these methods are called on the UI thread, except for |
| // unittests where a UI thread might not have been created. |
| DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI) || |
| @@ -99,6 +101,19 @@ StoragePartitionImpl* StoragePartitionImpl::Create( |
| indexed_db_context); |
| } |
| +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_; |
| } |
| @@ -123,4 +138,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 |