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

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

Issue 810403004: [Storage] Blob Storage Refactoring pt 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed copyright Created 5 years, 11 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/files/file_enumerator.h" 9 #include "base/files/file_enumerator.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 21 matching lines...) Expand all
32 #include "content/public/browser/content_browser_client.h" 32 #include "content/public/browser/content_browser_client.h"
33 #include "content/public/browser/storage_partition.h" 33 #include "content/public/browser/storage_partition.h"
34 #include "content/public/common/content_constants.h" 34 #include "content/public/common/content_constants.h"
35 #include "content/public/common/url_constants.h" 35 #include "content/public/common/url_constants.h"
36 #include "crypto/sha2.h" 36 #include "crypto/sha2.h"
37 #include "net/url_request/url_request_context.h" 37 #include "net/url_request/url_request_context.h"
38 #include "net/url_request/url_request_context_getter.h" 38 #include "net/url_request/url_request_context_getter.h"
39 #include "storage/browser/blob/blob_storage_context.h" 39 #include "storage/browser/blob/blob_storage_context.h"
40 #include "storage/browser/blob/blob_url_request_job_factory.h" 40 #include "storage/browser/blob/blob_url_request_job_factory.h"
41 #include "storage/browser/fileapi/file_system_url_request_job_factory.h" 41 #include "storage/browser/fileapi/file_system_url_request_job_factory.h"
42 #include "storage/common/blob/blob_data.h"
43 42
44 using storage::FileSystemContext; 43 using storage::FileSystemContext;
45 using storage::BlobStorageContext; 44 using storage::BlobStorageContext;
46 45
47 namespace content { 46 namespace content {
48 47
49 namespace { 48 namespace {
50 49
51 // A derivative that knows about Streams too. 50 // A derivative that knows about Streams too.
52 class BlobProtocolHandler : public net::URLRequestJobFactory::ProtocolHandler { 51 class BlobProtocolHandler : public net::URLRequestJobFactory::ProtocolHandler {
(...skipping 538 matching lines...) Expand 10 before | Expand all | Expand 10 after
591 590
592 // We do not call InitializeURLRequestContext() for media contexts because, 591 // We do not call InitializeURLRequestContext() for media contexts because,
593 // other than the HTTP cache, the media contexts share the same backing 592 // other than the HTTP cache, the media contexts share the same backing
594 // objects as their associated "normal" request context. Thus, the previous 593 // objects as their associated "normal" request context. Thus, the previous
595 // call serves to initialize the media request context for this storage 594 // call serves to initialize the media request context for this storage
596 // partition as well. 595 // partition as well.
597 } 596 }
598 } 597 }
599 598
600 } // namespace content 599 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698