| 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 #ifndef CONTENT_PUBLIC_BROWSER_BROWSER_THREAD_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_BROWSER_THREAD_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_BROWSER_THREAD_H_ | 6 #define CONTENT_PUBLIC_BROWSER_BROWSER_THREAD_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 int64 delay_ms); | 111 int64 delay_ms); |
| 112 static bool PostNonNestableTask(ID identifier, | 112 static bool PostNonNestableTask(ID identifier, |
| 113 const tracked_objects::Location& from_here, | 113 const tracked_objects::Location& from_here, |
| 114 const base::Closure& task); | 114 const base::Closure& task); |
| 115 static bool PostNonNestableDelayedTask( | 115 static bool PostNonNestableDelayedTask( |
| 116 ID identifier, | 116 ID identifier, |
| 117 const tracked_objects::Location& from_here, | 117 const tracked_objects::Location& from_here, |
| 118 const base::Closure& task, | 118 const base::Closure& task, |
| 119 int64 delay_ms); | 119 int64 delay_ms); |
| 120 | 120 |
| 121 // TODO(brettw) remove these when Task->Closure conversion is done. | |
| 122 static bool PostTask(ID identifier, | |
| 123 const tracked_objects::Location& from_here, | |
| 124 Task* task); | |
| 125 static bool PostDelayedTask(ID identifier, | |
| 126 const tracked_objects::Location& from_here, | |
| 127 Task* task, | |
| 128 int64 delay_ms); | |
| 129 static bool PostNonNestableTask(ID identifier, | |
| 130 const tracked_objects::Location& from_here, | |
| 131 Task* task); | |
| 132 static bool PostNonNestableDelayedTask( | |
| 133 ID identifier, | |
| 134 const tracked_objects::Location& from_here, | |
| 135 Task* task, | |
| 136 int64 delay_ms); | |
| 137 | |
| 138 static bool PostTaskAndReply( | 121 static bool PostTaskAndReply( |
| 139 ID identifier, | 122 ID identifier, |
| 140 const tracked_objects::Location& from_here, | 123 const tracked_objects::Location& from_here, |
| 141 const base::Closure& task, | 124 const base::Closure& task, |
| 142 const base::Closure& reply); | 125 const base::Closure& reply); |
| 143 | 126 |
| 144 template <class T> | 127 template <class T> |
| 145 static bool DeleteSoon(ID identifier, | 128 static bool DeleteSoon(ID identifier, |
| 146 const tracked_objects::Location& from_here, | 129 const tracked_objects::Location& from_here, |
| 147 const T* object) { | 130 const T* object) { |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 private: | 227 private: |
| 245 friend class BrowserThreadImpl; | 228 friend class BrowserThreadImpl; |
| 246 | 229 |
| 247 BrowserThread() {} | 230 BrowserThread() {} |
| 248 DISALLOW_COPY_AND_ASSIGN(BrowserThread); | 231 DISALLOW_COPY_AND_ASSIGN(BrowserThread); |
| 249 }; | 232 }; |
| 250 | 233 |
| 251 } // namespace content | 234 } // namespace content |
| 252 | 235 |
| 253 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_THREAD_H_ | 236 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_THREAD_H_ |
| OLD | NEW |