| OLD | NEW |
| 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 | |
| 11 | 10 |
| 12 #include "base/callback_forward.h" | 11 #include "base/callback_forward.h" |
| 13 #include "base/location.h" | 12 #include "base/location.h" |
| 14 | 13 |
| 15 namespace base { | 14 namespace base { |
| 16 namespace internal { | 15 namespace internal { |
| 17 | 16 |
| 18 // Inherit from this in a class that implements PostTask appropriately | 17 // Inherit from this in a class that implements PostTask appropriately |
| 19 // for sending to a destination thread. | 18 // for sending to a destination thread. |
| 20 // | 19 // |
| (...skipping 13 matching lines...) Expand all Loading... |
| 34 | 33 |
| 35 private: | 34 private: |
| 36 virtual bool PostTask(const tracked_objects::Location& from_here, | 35 virtual bool PostTask(const tracked_objects::Location& from_here, |
| 37 const Closure& task) = 0; | 36 const Closure& task) = 0; |
| 38 }; | 37 }; |
| 39 | 38 |
| 40 } // namespace internal | 39 } // namespace internal |
| 41 } // namespace base | 40 } // namespace base |
| 42 | 41 |
| 43 #endif // BASE_THREADING_POST_TASK_AND_REPLY_IMPL_H_ | 42 #endif // BASE_THREADING_POST_TASK_AND_REPLY_IMPL_H_ |
| OLD | NEW |