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

Side by Side Diff: base/threading/post_task_and_reply_impl.h

Issue 8956019: base::Bind: Remove includes of base.bind in header files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Mac fix. Created 9 years 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 | « no previous file | chrome/browser/extensions/settings/settings_storage_unittest.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // This file contains the implementation shared by 5 // This file contains the implementation shared by
6 // MessageLoopProxy::PostTaskAndReply and WorkerPool::PostTaskAndReply. 6 // MessageLoopProxy::PostTaskAndReply and WorkerPool::PostTaskAndReply.
7 7
8 #ifndef BASE_THREADING_POST_TASK_AND_REPLY_IMPL_H_ 8 #ifndef BASE_THREADING_POST_TASK_AND_REPLY_IMPL_H_
9 #define BASE_THREADING_POST_TASK_AND_REPLY_IMPL_H_ 9 #define BASE_THREADING_POST_TASK_AND_REPLY_IMPL_H_
10 #pragma once 10 #pragma once
11 11
12 #include "base/bind.h" 12 #include "base/callback_forward.h"
13 #include "base/location.h" 13 #include "base/location.h"
14 14
15 namespace base { 15 namespace base {
16 namespace internal { 16 namespace internal {
17 17
18 // Inherit from this in a class that implements PostTask appropriately 18 // Inherit from this in a class that implements PostTask appropriately
19 // for sending to a destination thread. 19 // for sending to a destination thread.
20 // 20 //
21 // Note that 'reply' will always get posted back to your current 21 // Note that 'reply' will always get posted back to your current
22 // MessageLoop. 22 // MessageLoop.
(...skipping 11 matching lines...) Expand all
34 34
35 private: 35 private:
36 virtual bool PostTask(const tracked_objects::Location& from_here, 36 virtual bool PostTask(const tracked_objects::Location& from_here,
37 const Closure& task) = 0; 37 const Closure& task) = 0;
38 }; 38 };
39 39
40 } // namespace internal 40 } // namespace internal
41 } // namespace base 41 } // namespace base
42 42
43 #endif // BASE_THREADING_POST_TASK_AND_REPLY_IMPL_H_ 43 #endif // BASE_THREADING_POST_TASK_AND_REPLY_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/settings/settings_storage_unittest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698