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

Side by Side Diff: storage/browser/blob/blob_data_handle.cc

Issue 539143002: Migrate webkit/browser/ to storage/browser/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix android build Created 6 years, 3 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
« no previous file with comments | « storage/browser/blob/blob_data_handle.h ('k') | storage/browser/blob/blob_storage_context.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_data_handle.h" 5 #include "storage/browser/blob/blob_data_handle.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/sequenced_task_runner.h" 10 #include "base/sequenced_task_runner.h"
11 #include "webkit/browser/blob/blob_storage_context.h" 11 #include "storage/browser/blob/blob_storage_context.h"
12 #include "webkit/common/blob/blob_data.h" 12 #include "storage/common/blob/blob_data.h"
13 13
14 namespace storage { 14 namespace storage {
15 15
16 BlobDataHandle::BlobDataHandleShared::BlobDataHandleShared( 16 BlobDataHandle::BlobDataHandleShared::BlobDataHandleShared(
17 BlobData* blob_data, 17 BlobData* blob_data,
18 BlobStorageContext* context, 18 BlobStorageContext* context,
19 base::SequencedTaskRunner* task_runner) 19 base::SequencedTaskRunner* task_runner)
20 : blob_data_(blob_data), 20 : blob_data_(blob_data),
21 context_(context->AsWeakPtr()) { 21 context_(context->AsWeakPtr()) {
22 context_->IncrementBlobRefCount(blob_data->uuid()); 22 context_->IncrementBlobRefCount(blob_data->uuid());
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 BlobData* BlobDataHandle::data() const { 59 BlobData* BlobDataHandle::data() const {
60 DCHECK(io_task_runner_->RunsTasksOnCurrentThread()); 60 DCHECK(io_task_runner_->RunsTasksOnCurrentThread());
61 return shared_->data(); 61 return shared_->data();
62 } 62 }
63 63
64 std::string BlobDataHandle::uuid() const { 64 std::string BlobDataHandle::uuid() const {
65 return shared_->uuid(); 65 return shared_->uuid();
66 } 66 }
67 67
68 } // namespace storage 68 } // namespace storage
OLDNEW
« no previous file with comments | « storage/browser/blob/blob_data_handle.h ('k') | storage/browser/blob/blob_storage_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698