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

Side by Side Diff: content/browser/fileapi/blob_storage_host.cc

Issue 442383002: Move storage-related files from webkit/ to new top-level directory storage/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 4 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 | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « content/browser/fileapi/blob_storage_host.h ('k') | content/browser/fileapi/blob_url_request_job_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698