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

Side by Side Diff: cc/resources/worker_pool.h

Issue 19403002: Use a direct include of the message_loop header in cc/, chrome_frame/, cloud_print/, components. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 5 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 | « cc/output/renderer_pixeltest.cc ('k') | cc/test/cc_test_suite.cc » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 #ifndef CC_RESOURCES_WORKER_POOL_H_ 5 #ifndef CC_RESOURCES_WORKER_POOL_H_
6 #define CC_RESOURCES_WORKER_POOL_H_ 6 #define CC_RESOURCES_WORKER_POOL_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/cancelable_callback.h" 12 #include "base/cancelable_callback.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "base/memory/weak_ptr.h" 15 #include "base/memory/weak_ptr.h"
16 #include "base/message_loop.h" 16 #include "base/message_loop/message_loop.h"
17 #include "cc/base/cc_export.h" 17 #include "cc/base/cc_export.h"
18 #include "cc/base/scoped_ptr_hash_map.h" 18 #include "cc/base/scoped_ptr_hash_map.h"
19 19
20 namespace cc { 20 namespace cc {
21 namespace internal { 21 namespace internal {
22 22
23 class CC_EXPORT WorkerPoolTask 23 class CC_EXPORT WorkerPoolTask
24 : public base::RefCountedThreadSafe<WorkerPoolTask> { 24 : public base::RefCountedThreadSafe<WorkerPoolTask> {
25 public: 25 public:
26 virtual void RunOnWorkerThread(unsigned thread_index) = 0; 26 virtual void RunOnWorkerThread(unsigned thread_index) = 0;
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 134
135 bool in_dispatch_completion_callbacks_; 135 bool in_dispatch_completion_callbacks_;
136 136
137 // Hide the gory details of the worker pool in |inner_|. 137 // Hide the gory details of the worker pool in |inner_|.
138 const scoped_ptr<Inner> inner_; 138 const scoped_ptr<Inner> inner_;
139 }; 139 };
140 140
141 } // namespace cc 141 } // namespace cc
142 142
143 #endif // CC_RESOURCES_WORKER_POOL_H_ 143 #endif // CC_RESOURCES_WORKER_POOL_H_
OLDNEW
« no previous file with comments | « cc/output/renderer_pixeltest.cc ('k') | cc/test/cc_test_suite.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698