| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 "webkit/blob/blob_storage_host.h" | 5 #include "webkit/blob/blob_storage_host.h" |
| 6 | 6 |
| 7 #include "base/task/sequenced_task_runner.h" | 7 #include "base/sequenced_task_runner.h" |
| 8 #include "googleurl/src/gurl.h" | 8 #include "googleurl/src/gurl.h" |
| 9 #include "webkit/blob/blob_data_handle.h" | 9 #include "webkit/blob/blob_data_handle.h" |
| 10 #include "webkit/blob/blob_storage_context.h" | 10 #include "webkit/blob/blob_storage_context.h" |
| 11 | 11 |
| 12 namespace webkit_blob { | 12 namespace webkit_blob { |
| 13 | 13 |
| 14 BlobStorageHost::BlobStorageHost(BlobStorageContext* context) | 14 BlobStorageHost::BlobStorageHost(BlobStorageContext* context) |
| 15 : context_(context->AsWeakPtr()) { | 15 : context_(context->AsWeakPtr()) { |
| 16 } | 16 } |
| 17 | 17 |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 | 102 |
| 103 bool BlobStorageHost::IsBeingBuiltInHost(const std::string& uuid) { | 103 bool BlobStorageHost::IsBeingBuiltInHost(const std::string& uuid) { |
| 104 return IsInUseInHost(uuid) && context_->IsBeingBuilt(uuid); | 104 return IsInUseInHost(uuid) && context_->IsBeingBuilt(uuid); |
| 105 } | 105 } |
| 106 | 106 |
| 107 bool BlobStorageHost::IsUrlRegisteredInHost(const GURL& blob_url) { | 107 bool BlobStorageHost::IsUrlRegisteredInHost(const GURL& blob_url) { |
| 108 return public_blob_urls_.find(blob_url) != public_blob_urls_.end(); | 108 return public_blob_urls_.find(blob_url) != public_blob_urls_.end(); |
| 109 } | 109 } |
| 110 | 110 |
| 111 } // namespace webkit_blob | 111 } // namespace webkit_blob |
| OLD | NEW |