| 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/browser/blob/blob_storage_host.h" | 5 #include "webkit/browser/blob/blob_storage_host.h" |
| 6 | 6 |
| 7 #include "base/sequenced_task_runner.h" | 7 #include "base/sequenced_task_runner.h" |
| 8 #include "googleurl/src/gurl.h" | 8 #include "url/gurl.h" |
| 9 #include "webkit/browser/blob/blob_data_handle.h" | 9 #include "webkit/browser/blob/blob_data_handle.h" |
| 10 #include "webkit/browser/blob/blob_storage_context.h" | 10 #include "webkit/browser/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 |
| 18 BlobStorageHost::~BlobStorageHost() { | 18 BlobStorageHost::~BlobStorageHost() { |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 | 104 |
| 105 bool BlobStorageHost::IsBeingBuiltInHost(const std::string& uuid) { | 105 bool BlobStorageHost::IsBeingBuiltInHost(const std::string& uuid) { |
| 106 return IsInUseInHost(uuid) && context_->IsBeingBuilt(uuid); | 106 return IsInUseInHost(uuid) && context_->IsBeingBuilt(uuid); |
| 107 } | 107 } |
| 108 | 108 |
| 109 bool BlobStorageHost::IsUrlRegisteredInHost(const GURL& blob_url) { | 109 bool BlobStorageHost::IsUrlRegisteredInHost(const GURL& blob_url) { |
| 110 return public_blob_urls_.find(blob_url) != public_blob_urls_.end(); | 110 return public_blob_urls_.find(blob_url) != public_blob_urls_.end(); |
| 111 } | 111 } |
| 112 | 112 |
| 113 } // namespace webkit_blob | 113 } // namespace webkit_blob |
| OLD | NEW |