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

Side by Side Diff: trunk/src/webkit/blob/blob_data_handle.cc

Issue 14985007: Revert 198844 "Move sequenced_task_runner to base/task" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 7 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 (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_data_handle.h" 5 #include "webkit/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/task/sequenced_task_runner.h" 10 #include "base/sequenced_task_runner.h"
11 #include "webkit/blob/blob_data.h" 11 #include "webkit/blob/blob_data.h"
12 #include "webkit/blob/blob_storage_context.h" 12 #include "webkit/blob/blob_storage_context.h"
13 13
14 namespace webkit_blob { 14 namespace webkit_blob {
15 15
16 BlobDataHandle::BlobDataHandle(BlobData* blob_data, BlobStorageContext* context, 16 BlobDataHandle::BlobDataHandle(BlobData* blob_data, BlobStorageContext* context,
17 base::SequencedTaskRunner* task_runner) 17 base::SequencedTaskRunner* task_runner)
18 : blob_data_(blob_data), 18 : blob_data_(blob_data),
19 context_(context->AsWeakPtr()), 19 context_(context->AsWeakPtr()),
20 io_task_runner_(task_runner) { 20 io_task_runner_(task_runner) {
(...skipping 26 matching lines...) Expand all
47 // static 47 // static
48 void BlobDataHandle::DeleteHelper( 48 void BlobDataHandle::DeleteHelper(
49 base::WeakPtr<BlobStorageContext> context, 49 base::WeakPtr<BlobStorageContext> context,
50 BlobData* blob_data) { 50 BlobData* blob_data) {
51 if (context.get()) 51 if (context.get())
52 context->DecrementBlobRefCount(blob_data->uuid()); 52 context->DecrementBlobRefCount(blob_data->uuid());
53 blob_data->Release(); 53 blob_data->Release();
54 } 54 }
55 55
56 } // namespace webkit_blob 56 } // namespace webkit_blob
OLDNEW
« no previous file with comments | « trunk/src/sync/internal_api/test/fake_sync_manager.cc ('k') | trunk/src/webkit/blob/blob_storage_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698