| OLD | NEW |
| 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_path.h" | 10 #include "base/files/file_path.h" |
| (...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 419 protocol_handlers[chrome::kFileSystemScheme] = | 419 protocol_handlers[chrome::kFileSystemScheme] = |
| 420 linked_ptr<net::URLRequestJobFactory::ProtocolHandler>( | 420 linked_ptr<net::URLRequestJobFactory::ProtocolHandler>( |
| 421 CreateFileSystemProtocolHandler(partition->GetFileSystemContext())); | 421 CreateFileSystemProtocolHandler(partition->GetFileSystemContext())); |
| 422 protocol_handlers[chrome::kChromeUIScheme] = | 422 protocol_handlers[chrome::kChromeUIScheme] = |
| 423 linked_ptr<net::URLRequestJobFactory::ProtocolHandler>( | 423 linked_ptr<net::URLRequestJobFactory::ProtocolHandler>( |
| 424 URLDataManagerBackend::CreateProtocolHandler( | 424 URLDataManagerBackend::CreateProtocolHandler( |
| 425 browser_context_->GetResourceContext(), | 425 browser_context_->GetResourceContext(), |
| 426 browser_context_->IsOffTheRecord(), | 426 browser_context_->IsOffTheRecord(), |
| 427 partition->GetAppCacheService(), | 427 partition->GetAppCacheService(), |
| 428 blob_storage_context)); | 428 blob_storage_context)); |
| 429 std::vector<std::string> additional_webui_schemes = | 429 std::vector<std::string> additional_webui_schemes; |
| 430 GetContentClient()->browser()->GetAdditionalWebUISchemes(); | 430 GetContentClient()->browser()->GetAdditionalWebUISchemes( |
| 431 &additional_webui_schemes); |
| 431 for (std::vector<std::string>::const_iterator it = | 432 for (std::vector<std::string>::const_iterator it = |
| 432 additional_webui_schemes.begin(); | 433 additional_webui_schemes.begin(); |
| 433 it != additional_webui_schemes.end(); | 434 it != additional_webui_schemes.end(); |
| 434 ++it) { | 435 ++it) { |
| 435 protocol_handlers[*it] = | 436 protocol_handlers[*it] = |
| 436 linked_ptr<net::URLRequestJobFactory::ProtocolHandler>( | 437 linked_ptr<net::URLRequestJobFactory::ProtocolHandler>( |
| 437 URLDataManagerBackend::CreateProtocolHandler( | 438 URLDataManagerBackend::CreateProtocolHandler( |
| 438 browser_context_->GetResourceContext(), | 439 browser_context_->GetResourceContext(), |
| 439 browser_context_->IsOffTheRecord(), | 440 browser_context_->IsOffTheRecord(), |
| 440 partition->GetAppCacheService(), | 441 partition->GetAppCacheService(), |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 577 | 578 |
| 578 // We do not call InitializeURLRequestContext() for media contexts because, | 579 // We do not call InitializeURLRequestContext() for media contexts because, |
| 579 // other than the HTTP cache, the media contexts share the same backing | 580 // other than the HTTP cache, the media contexts share the same backing |
| 580 // objects as their associated "normal" request context. Thus, the previous | 581 // objects as their associated "normal" request context. Thus, the previous |
| 581 // call serves to initialize the media request context for this storage | 582 // call serves to initialize the media request context for this storage |
| 582 // partition as well. | 583 // partition as well. |
| 583 } | 584 } |
| 584 } | 585 } |
| 585 | 586 |
| 586 } // namespace content | 587 } // namespace content |
| OLD | NEW |