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

Side by Side Diff: content/browser/storage_partition_impl_map.cc

Issue 168953002: Cleanup: Move kChromeDevToolsScheme constant into content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/storage_partition_impl_map.h" 5 #include "content/browser/storage_partition_impl_map.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/files/file_enumerator.h" 10 #include "base/files/file_enumerator.h"
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 it != additional_webui_schemes.end(); 399 it != additional_webui_schemes.end();
400 ++it) { 400 ++it) {
401 protocol_handlers[*it] = 401 protocol_handlers[*it] =
402 linked_ptr<net::URLRequestJobFactory::ProtocolHandler>( 402 linked_ptr<net::URLRequestJobFactory::ProtocolHandler>(
403 URLDataManagerBackend::CreateProtocolHandler( 403 URLDataManagerBackend::CreateProtocolHandler(
404 browser_context_->GetResourceContext(), 404 browser_context_->GetResourceContext(),
405 browser_context_->IsOffTheRecord(), 405 browser_context_->IsOffTheRecord(),
406 partition->GetAppCacheService(), 406 partition->GetAppCacheService(),
407 blob_storage_context)); 407 blob_storage_context));
408 } 408 }
409 protocol_handlers[chrome::kChromeDevToolsScheme] = 409 protocol_handlers[kChromeDevToolsScheme] =
410 linked_ptr<net::URLRequestJobFactory::ProtocolHandler>( 410 linked_ptr<net::URLRequestJobFactory::ProtocolHandler>(
411 CreateDevToolsProtocolHandler(browser_context_->GetResourceContext(), 411 CreateDevToolsProtocolHandler(browser_context_->GetResourceContext(),
412 browser_context_->IsOffTheRecord())); 412 browser_context_->IsOffTheRecord()));
413 413
414 // These calls must happen after StoragePartitionImpl::Create(). 414 // These calls must happen after StoragePartitionImpl::Create().
415 if (partition_domain.empty()) { 415 if (partition_domain.empty()) {
416 partition->SetURLRequestContext( 416 partition->SetURLRequestContext(
417 GetContentClient()->browser()->CreateRequestContext( 417 GetContentClient()->browser()->CreateRequestContext(
418 browser_context_, 418 browser_context_,
419 &protocol_handlers)); 419 &protocol_handlers));
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
551 551
552 // We do not call InitializeURLRequestContext() for media contexts because, 552 // We do not call InitializeURLRequestContext() for media contexts because,
553 // other than the HTTP cache, the media contexts share the same backing 553 // other than the HTTP cache, the media contexts share the same backing
554 // objects as their associated "normal" request context. Thus, the previous 554 // objects as their associated "normal" request context. Thus, the previous
555 // call serves to initialize the media request context for this storage 555 // call serves to initialize the media request context for this storage
556 // partition as well. 556 // partition as well.
557 } 557 }
558 } 558 }
559 559
560 } // namespace content 560 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | content/browser/webui/url_data_manager_backend.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698