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

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

Issue 16514006: Update includes of message_loop_proxy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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) 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/browser/dom_storage/dom_storage_task_runner.h" 5 #include "webkit/browser/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/message_loop_proxy.h"
10 #include "base/tracked_objects.h" 10 #include "base/tracked_objects.h"
11 11
12 namespace dom_storage { 12 namespace dom_storage {
13 13
14 // DomStorageTaskRunner 14 // DomStorageTaskRunner
15 15
16 bool DomStorageTaskRunner::RunsTasksOnCurrentThread() const { 16 bool DomStorageTaskRunner::RunsTasksOnCurrentThread() const {
17 return IsRunningOnSequence(PRIMARY_SEQUENCE); 17 return IsRunningOnSequence(PRIMARY_SEQUENCE);
18 } 18 }
19 19
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 SequenceID sequence_id, 98 SequenceID sequence_id,
99 const base::Closure& task) { 99 const base::Closure& task) {
100 return message_loop_->PostTask(from_here, task); 100 return message_loop_->PostTask(from_here, task);
101 } 101 }
102 102
103 bool MockDomStorageTaskRunner::IsRunningOnSequence(SequenceID) const { 103 bool MockDomStorageTaskRunner::IsRunningOnSequence(SequenceID) const {
104 return message_loop_->RunsTasksOnCurrentThread(); 104 return message_loop_->RunsTasksOnCurrentThread();
105 } 105 }
106 106
107 } // namespace dom_storage 107 } // namespace dom_storage
OLDNEW
« no previous file with comments | « webkit/browser/dom_storage/dom_storage_context_unittest.cc ('k') | webkit/browser/fileapi/file_system_dir_url_request_job.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698