| 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 <utility> | 7 #include <utility> | 
| 8 | 8 | 
| 9 #include "base/bind.h" | 9 #include "base/bind.h" | 
| 10 #include "base/callback.h" | 10 #include "base/callback.h" | 
| (...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 392 | 392 | 
| 393   base::FilePath relative_partition_path = | 393   base::FilePath relative_partition_path = | 
| 394       GetStoragePartitionPath(partition_domain, partition_name); | 394       GetStoragePartitionPath(partition_domain, partition_name); | 
| 395 | 395 | 
| 396   std::unique_ptr<StoragePartitionImpl> partition_ptr( | 396   std::unique_ptr<StoragePartitionImpl> partition_ptr( | 
| 397       StoragePartitionImpl::Create(browser_context_, in_memory, | 397       StoragePartitionImpl::Create(browser_context_, in_memory, | 
| 398                                    relative_partition_path)); | 398                                    relative_partition_path)); | 
| 399   StoragePartitionImpl* partition = partition_ptr.get(); | 399   StoragePartitionImpl* partition = partition_ptr.get(); | 
| 400   partitions_[partition_config] = std::move(partition_ptr); | 400   partitions_[partition_config] = std::move(partition_ptr); | 
| 401 | 401 | 
|  | 402   partition->GetQuotaManager()->SetTemporaryStorageEvictionPolicy( | 
|  | 403       GetContentClient()->browser()->GetTemporaryStorageEvictionPolicy( | 
|  | 404           browser_context_)); | 
|  | 405 | 
| 402   ChromeBlobStorageContext* blob_storage_context = | 406   ChromeBlobStorageContext* blob_storage_context = | 
| 403       ChromeBlobStorageContext::GetFor(browser_context_); | 407       ChromeBlobStorageContext::GetFor(browser_context_); | 
| 404   StreamContext* stream_context = StreamContext::GetFor(browser_context_); | 408   StreamContext* stream_context = StreamContext::GetFor(browser_context_); | 
| 405   ProtocolHandlerMap protocol_handlers; | 409   ProtocolHandlerMap protocol_handlers; | 
| 406   protocol_handlers[url::kBlobScheme] = | 410   protocol_handlers[url::kBlobScheme] = | 
| 407       linked_ptr<net::URLRequestJobFactory::ProtocolHandler>( | 411       linked_ptr<net::URLRequestJobFactory::ProtocolHandler>( | 
| 408           new BlobProtocolHandler(blob_storage_context, | 412           new BlobProtocolHandler(blob_storage_context, | 
| 409                                   stream_context, | 413                                   stream_context, | 
| 410                                   partition->GetFileSystemContext())); | 414                                   partition->GetFileSystemContext())); | 
| 411   protocol_handlers[url::kFileSystemScheme] = | 415   protocol_handlers[url::kFileSystemScheme] = | 
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 601 | 605 | 
| 602     // We do not call InitializeURLRequestContext() for media contexts because, | 606     // We do not call InitializeURLRequestContext() for media contexts because, | 
| 603     // other than the HTTP cache, the media contexts share the same backing | 607     // other than the HTTP cache, the media contexts share the same backing | 
| 604     // objects as their associated "normal" request context.  Thus, the previous | 608     // objects as their associated "normal" request context.  Thus, the previous | 
| 605     // call serves to initialize the media request context for this storage | 609     // call serves to initialize the media request context for this storage | 
| 606     // partition as well. | 610     // partition as well. | 
| 607   } | 611   } | 
| 608 } | 612 } | 
| 609 | 613 | 
| 610 }  // namespace content | 614 }  // namespace content | 
| OLD | NEW | 
|---|