OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_CALLBACK_HELPER_H_ | 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_CALLBACK_HELPER_H_ |
6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_CALLBACK_HELPER_H_ | 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_CALLBACK_HELPER_H_ |
7 | 7 |
8 #include <type_traits> | 8 #include <type_traits> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/location.h" | 11 #include "base/location.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
| 13 #include "base/macros.h" |
13 #include "base/sequenced_task_runner.h" | 14 #include "base/sequenced_task_runner.h" |
14 #include "base/thread_task_runner_handle.h" | 15 #include "base/thread_task_runner_handle.h" |
15 | 16 |
16 // TODO(tzik): Merge this file to media/base/bind_to_current_loop.h. | 17 // TODO(tzik): Merge this file to media/base/bind_to_current_loop.h. |
17 | 18 |
18 namespace sync_file_system { | 19 namespace sync_file_system { |
19 namespace drive_backend { | 20 namespace drive_backend { |
20 | 21 |
21 namespace internal { | 22 namespace internal { |
22 | 23 |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 const base::Callback<T>& callback) { | 100 const base::Callback<T>& callback) { |
100 return RelayCallbackToTaskRunner( | 101 return RelayCallbackToTaskRunner( |
101 base::ThreadTaskRunnerHandle::Get(), | 102 base::ThreadTaskRunnerHandle::Get(), |
102 from_here, callback); | 103 from_here, callback); |
103 } | 104 } |
104 | 105 |
105 } // namespace drive_backend | 106 } // namespace drive_backend |
106 } // namespace sync_file_system | 107 } // namespace sync_file_system |
107 | 108 |
108 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_CALLBACK_HELPER_H_ | 109 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_CALLBACK_HELPER_H_ |
OLD | NEW |