| 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 22 matching lines...) Expand all Loading... |
| 33 #include "content/public/common/content_constants.h" | 33 #include "content/public/common/content_constants.h" |
| 34 #include "content/public/common/url_constants.h" | 34 #include "content/public/common/url_constants.h" |
| 35 #include "crypto/sha2.h" | 35 #include "crypto/sha2.h" |
| 36 #include "net/url_request/url_request_context.h" | 36 #include "net/url_request/url_request_context.h" |
| 37 #include "net/url_request/url_request_context_getter.h" | 37 #include "net/url_request/url_request_context_getter.h" |
| 38 #include "webkit/browser/blob/blob_storage_context.h" | 38 #include "webkit/browser/blob/blob_storage_context.h" |
| 39 #include "webkit/browser/blob/blob_url_request_job_factory.h" | 39 #include "webkit/browser/blob/blob_url_request_job_factory.h" |
| 40 #include "webkit/browser/fileapi/file_system_url_request_job_factory.h" | 40 #include "webkit/browser/fileapi/file_system_url_request_job_factory.h" |
| 41 #include "webkit/common/blob/blob_data.h" | 41 #include "webkit/common/blob/blob_data.h" |
| 42 | 42 |
| 43 using appcache::AppCacheServiceImpl; | |
| 44 using fileapi::FileSystemContext; | 43 using fileapi::FileSystemContext; |
| 45 using webkit_blob::BlobStorageContext; | 44 using webkit_blob::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 { |
| 53 public: | 52 public: |
| (...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 584 | 583 |
| 585 // We do not call InitializeURLRequestContext() for media contexts because, | 584 // We do not call InitializeURLRequestContext() for media contexts because, |
| 586 // other than the HTTP cache, the media contexts share the same backing | 585 // other than the HTTP cache, the media contexts share the same backing |
| 587 // objects as their associated "normal" request context. Thus, the previous | 586 // objects as their associated "normal" request context. Thus, the previous |
| 588 // call serves to initialize the media request context for this storage | 587 // call serves to initialize the media request context for this storage |
| 589 // partition as well. | 588 // partition as well. |
| 590 } | 589 } |
| 591 } | 590 } |
| 592 | 591 |
| 593 } // namespace content | 592 } // namespace content |
| OLD | NEW |