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

Unified Diff: content/browser/storage_partition_impl_map.cc

Issue 12049052: Move core url data manager classes to content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: review comments Created 7 years, 11 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
« no previous file with comments | « content/browser/resource_context_impl.cc ('k') | content/browser/webui/shared_resources_data_source.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/storage_partition_impl_map.cc
===================================================================
--- content/browser/storage_partition_impl_map.cc (revision 178598)
+++ content/browser/storage_partition_impl_map.cc (working copy)
@@ -22,6 +22,7 @@
#include "content/browser/net/view_http_cache_job_factory.h"
#include "content/browser/resource_context_impl.h"
#include "content/browser/storage_partition_impl.h"
+#include "content/browser/webui/url_data_manager_backend.h"
#include "content/browser/tcmalloc_internals_request_job.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/browser_thread.h"
@@ -147,7 +148,9 @@
net::URLRequestContextGetter* context_getter,
AppCacheService* appcache_service,
FileSystemContext* file_system_context,
- ChromeBlobStorageContext* blob_storage_context) {
+ ChromeBlobStorageContext* blob_storage_context,
+ ResourceContext* resource_context,
+ bool off_the_record) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
if (!context_getter)
return; // tests.
@@ -186,6 +189,20 @@
new DeveloperProtocolHandler(appcache_service,
blob_storage_context->controller()));
+ set_protocol = job_factory->SetProtocolHandler(
+ chrome::kChromeUIScheme,
+ ChromeURLDataManagerBackend::CreateProtocolHandler(
+ GetURLDataManagerForResourceContext(resource_context),
+ off_the_record));
+ DCHECK(set_protocol);
+
+ set_protocol = job_factory->SetProtocolHandler(
+ chrome::kChromeDevToolsScheme,
+ CreateDevToolsProtocolHandler(
+ GetURLDataManagerForResourceContext(resource_context),
+ off_the_record));
+ DCHECK(set_protocol);
+
// TODO(jam): Add the ProtocolHandlerRegistryIntercepter here!
}
@@ -603,7 +620,9 @@
make_scoped_refptr(partition->GetAppCacheService()),
make_scoped_refptr(partition->GetFileSystemContext()),
make_scoped_refptr(
- ChromeBlobStorageContext::GetFor(browser_context_))));
+ ChromeBlobStorageContext::GetFor(browser_context_)),
+ browser_context_->GetResourceContext(),
+ browser_context_->IsOffTheRecord()));
// We do not call InitializeURLRequestContext() for media contexts because,
// other than the HTTP cache, the media contexts share the same backing
« no previous file with comments | « content/browser/resource_context_impl.cc ('k') | content/browser/webui/shared_resources_data_source.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698