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_enumerator.h" | 10 #include "base/files/file_enumerator.h" |
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
374 | 374 |
375 ChromeBlobStorageContext* blob_storage_context = | 375 ChromeBlobStorageContext* blob_storage_context = |
376 ChromeBlobStorageContext::GetFor(browser_context_); | 376 ChromeBlobStorageContext::GetFor(browser_context_); |
377 StreamContext* stream_context = StreamContext::GetFor(browser_context_); | 377 StreamContext* stream_context = StreamContext::GetFor(browser_context_); |
378 ProtocolHandlerMap protocol_handlers; | 378 ProtocolHandlerMap protocol_handlers; |
379 protocol_handlers[chrome::kBlobScheme] = | 379 protocol_handlers[chrome::kBlobScheme] = |
380 linked_ptr<net::URLRequestJobFactory::ProtocolHandler>( | 380 linked_ptr<net::URLRequestJobFactory::ProtocolHandler>( |
381 new BlobProtocolHandler(blob_storage_context, | 381 new BlobProtocolHandler(blob_storage_context, |
382 stream_context, | 382 stream_context, |
383 partition->GetFileSystemContext())); | 383 partition->GetFileSystemContext())); |
384 protocol_handlers[chrome::kFileSystemScheme] = | 384 protocol_handlers[kFileSystemScheme] = |
385 linked_ptr<net::URLRequestJobFactory::ProtocolHandler>( | 385 linked_ptr<net::URLRequestJobFactory::ProtocolHandler>( |
386 CreateFileSystemProtocolHandler(partition->GetFileSystemContext())); | 386 CreateFileSystemProtocolHandler(partition->GetFileSystemContext())); |
387 protocol_handlers[chrome::kChromeUIScheme] = | 387 protocol_handlers[chrome::kChromeUIScheme] = |
388 linked_ptr<net::URLRequestJobFactory::ProtocolHandler>( | 388 linked_ptr<net::URLRequestJobFactory::ProtocolHandler>( |
389 URLDataManagerBackend::CreateProtocolHandler( | 389 URLDataManagerBackend::CreateProtocolHandler( |
390 browser_context_->GetResourceContext(), | 390 browser_context_->GetResourceContext(), |
391 browser_context_->IsOffTheRecord(), | 391 browser_context_->IsOffTheRecord(), |
392 partition->GetAppCacheService(), | 392 partition->GetAppCacheService(), |
393 blob_storage_context)); | 393 blob_storage_context)); |
394 std::vector<std::string> additional_webui_schemes; | 394 std::vector<std::string> additional_webui_schemes; |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 |
OLD | NEW |