OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/fileapi/blob_storage_host.h" | 5 #include "content/browser/fileapi/blob_storage_host.h" |
6 | 6 |
7 #include "base/sequenced_task_runner.h" | 7 #include "base/sequenced_task_runner.h" |
8 #include "base/strings/string_util.h" | 8 #include "base/strings/string_util.h" |
9 #include "url/gurl.h" | 9 #include "url/gurl.h" |
10 #include "webkit/browser/blob/blob_data_handle.h" | 10 #include "storage/browser/blob/blob_data_handle.h" |
11 #include "webkit/browser/blob/blob_storage_context.h" | 11 #include "storage/browser/blob/blob_storage_context.h" |
12 | 12 |
13 using webkit_blob::BlobStorageContext; | 13 using storage::BlobStorageContext; |
14 using webkit_blob::BlobData; | 14 using storage::BlobData; |
15 | 15 |
16 namespace content { | 16 namespace content { |
17 | 17 |
18 BlobStorageHost::BlobStorageHost(BlobStorageContext* context) | 18 BlobStorageHost::BlobStorageHost(BlobStorageContext* context) |
19 : context_(context->AsWeakPtr()) { | 19 : context_(context->AsWeakPtr()) { |
20 } | 20 } |
21 | 21 |
22 BlobStorageHost::~BlobStorageHost() { | 22 BlobStorageHost::~BlobStorageHost() { |
23 if (!context_.get()) | 23 if (!context_.get()) |
24 return; | 24 return; |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 | 108 |
109 bool BlobStorageHost::IsBeingBuiltInHost(const std::string& uuid) { | 109 bool BlobStorageHost::IsBeingBuiltInHost(const std::string& uuid) { |
110 return IsInUseInHost(uuid) && context_->IsBeingBuilt(uuid); | 110 return IsInUseInHost(uuid) && context_->IsBeingBuilt(uuid); |
111 } | 111 } |
112 | 112 |
113 bool BlobStorageHost::IsUrlRegisteredInHost(const GURL& blob_url) { | 113 bool BlobStorageHost::IsUrlRegisteredInHost(const GURL& blob_url) { |
114 return public_blob_urls_.find(blob_url) != public_blob_urls_.end(); | 114 return public_blob_urls_.find(blob_url) != public_blob_urls_.end(); |
115 } | 115 } |
116 | 116 |
117 } // namespace content | 117 } // namespace content |
OLD | NEW |