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

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

Issue 273193004: Move some content url constants to /url. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add missing files. Created 6 years, 6 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
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 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 GetStoragePartitionPath(partition_domain, partition_name)); 370 GetStoragePartitionPath(partition_domain, partition_name));
371 StoragePartitionImpl* partition = 371 StoragePartitionImpl* partition =
372 StoragePartitionImpl::Create(browser_context_, in_memory, 372 StoragePartitionImpl::Create(browser_context_, in_memory,
373 partition_path); 373 partition_path);
374 partitions_[partition_config] = partition; 374 partitions_[partition_config] = partition;
375 375
376 ChromeBlobStorageContext* blob_storage_context = 376 ChromeBlobStorageContext* blob_storage_context =
377 ChromeBlobStorageContext::GetFor(browser_context_); 377 ChromeBlobStorageContext::GetFor(browser_context_);
378 StreamContext* stream_context = StreamContext::GetFor(browser_context_); 378 StreamContext* stream_context = StreamContext::GetFor(browser_context_);
379 ProtocolHandlerMap protocol_handlers; 379 ProtocolHandlerMap protocol_handlers;
380 protocol_handlers[kBlobScheme] = 380 protocol_handlers[url::kBlobScheme] =
381 linked_ptr<net::URLRequestJobFactory::ProtocolHandler>( 381 linked_ptr<net::URLRequestJobFactory::ProtocolHandler>(
382 new BlobProtocolHandler(blob_storage_context, 382 new BlobProtocolHandler(blob_storage_context,
383 stream_context, 383 stream_context,
384 partition->GetFileSystemContext())); 384 partition->GetFileSystemContext()));
385 protocol_handlers[kFileSystemScheme] = 385 protocol_handlers[url::kFileSystemScheme] =
386 linked_ptr<net::URLRequestJobFactory::ProtocolHandler>( 386 linked_ptr<net::URLRequestJobFactory::ProtocolHandler>(
387 CreateFileSystemProtocolHandler(partition_domain, 387 CreateFileSystemProtocolHandler(partition_domain,
388 partition->GetFileSystemContext())); 388 partition->GetFileSystemContext()));
389 protocol_handlers[kChromeUIScheme] = 389 protocol_handlers[kChromeUIScheme] =
390 linked_ptr<net::URLRequestJobFactory::ProtocolHandler>( 390 linked_ptr<net::URLRequestJobFactory::ProtocolHandler>(
391 URLDataManagerBackend::CreateProtocolHandler( 391 URLDataManagerBackend::CreateProtocolHandler(
392 browser_context_->GetResourceContext(), 392 browser_context_->GetResourceContext(),
393 browser_context_->IsOffTheRecord(), 393 browser_context_->IsOffTheRecord(),
394 partition->GetAppCacheService(), 394 partition->GetAppCacheService(),
395 blob_storage_context)); 395 blob_storage_context));
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
561 561
562 // We do not call InitializeURLRequestContext() for media contexts because, 562 // We do not call InitializeURLRequestContext() for media contexts because,
563 // other than the HTTP cache, the media contexts share the same backing 563 // other than the HTTP cache, the media contexts share the same backing
564 // objects as their associated "normal" request context. Thus, the previous 564 // objects as their associated "normal" request context. Thus, the previous
565 // call serves to initialize the media request context for this storage 565 // call serves to initialize the media request context for this storage
566 // partition as well. 566 // partition as well.
567 } 567 }
568 } 568 }
569 569
570 } // namespace content 570 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_view_host_unittest.cc ('k') | content/browser/web_contents/web_drag_source_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698