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

Side by Side Diff: webkit/dom_storage/dom_storage_task_runner.cc

Issue 9347056: Fix up SequencedWorkerPool in preparation for making it a TaskRunner (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync to head Created 8 years, 9 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
« no previous file with comments | « webkit/dom_storage/dom_storage_task_runner.h ('k') | no next file » | 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/dom_storage/dom_storage_task_runner.h" 5 #include "webkit/dom_storage/dom_storage_task_runner.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/message_loop_proxy.h" 9 #include "base/message_loop_proxy.h"
10 #include "base/tracked_objects.h"
10 11
11 namespace dom_storage { 12 namespace dom_storage {
12 13
13 // DomStorageTaskRunner 14 // DomStorageTaskRunner
14 15
15 DomStorageTaskRunner::DomStorageTaskRunner( 16 DomStorageTaskRunner::DomStorageTaskRunner(
16 base::MessageLoopProxy* message_loop) 17 base::MessageLoopProxy* message_loop)
17 : message_loop_(message_loop) { 18 : message_loop_(message_loop) {
18 } 19 }
19 20
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 80
80 bool MockDomStorageTaskRunner::PostDelayedTask( 81 bool MockDomStorageTaskRunner::PostDelayedTask(
81 const tracked_objects::Location& from_here, 82 const tracked_objects::Location& from_here,
82 const base::Closure& task, 83 const base::Closure& task,
83 base::TimeDelta delay) { 84 base::TimeDelta delay) {
84 // Don't wait in unit tests. 85 // Don't wait in unit tests.
85 return PostTask(from_here, task); 86 return PostTask(from_here, task);
86 } 87 }
87 88
88 } // namespace dom_storage 89 } // namespace dom_storage
OLDNEW
« no previous file with comments | « webkit/dom_storage/dom_storage_task_runner.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698