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

Side by Side Diff: content/public/browser/browser_thread.h

Issue 9086002: base::Bind: Remove Task. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Style fix. Created 8 years, 11 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 | « content/browser/browser_thread_unittest.cc ('k') | remoting/base/plugin_message_loop_proxy.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 #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
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
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_
OLDNEW
« no previous file with comments | « content/browser/browser_thread_unittest.cc ('k') | remoting/base/plugin_message_loop_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698