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

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

Issue 10496002: Revert 140102 - Remove old PostDelayedTask interfaces that use int ms instead of TimeDelta. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 6 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 <string> 9 #include <string>
10 10
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 // get posted to the MessageLoop if it's still alive, or be deleted otherwise. 103 // get posted to the MessageLoop if it's still alive, or be deleted otherwise.
104 // They return true iff the thread existed and the task was posted. Note that 104 // They return true iff the thread existed and the task was posted. Note that
105 // even if the task is posted, there's no guarantee that it will run, since 105 // even if the task is posted, there's no guarantee that it will run, since
106 // the target thread may already have a Quit message in its queue. 106 // the target thread may already have a Quit message in its queue.
107 static bool PostTask(ID identifier, 107 static bool PostTask(ID identifier,
108 const tracked_objects::Location& from_here, 108 const tracked_objects::Location& from_here,
109 const base::Closure& task); 109 const base::Closure& task);
110 static bool PostDelayedTask(ID identifier, 110 static bool PostDelayedTask(ID identifier,
111 const tracked_objects::Location& from_here, 111 const tracked_objects::Location& from_here,
112 const base::Closure& task, 112 const base::Closure& task,
113 int64 delay_ms);
114 static bool PostDelayedTask(ID identifier,
115 const tracked_objects::Location& from_here,
116 const base::Closure& task,
113 base::TimeDelta delay); 117 base::TimeDelta delay);
114 static bool PostNonNestableTask(ID identifier, 118 static bool PostNonNestableTask(ID identifier,
115 const tracked_objects::Location& from_here, 119 const tracked_objects::Location& from_here,
116 const base::Closure& task); 120 const base::Closure& task);
117 static bool PostNonNestableDelayedTask( 121 static bool PostNonNestableDelayedTask(
118 ID identifier, 122 ID identifier,
119 const tracked_objects::Location& from_here, 123 const tracked_objects::Location& from_here,
120 const base::Closure& task, 124 const base::Closure& task,
125 int64 delay_ms);
126 static bool PostNonNestableDelayedTask(
127 ID identifier,
128 const tracked_objects::Location& from_here,
129 const base::Closure& task,
121 base::TimeDelta delay); 130 base::TimeDelta delay);
122 131
123 static bool PostTaskAndReply( 132 static bool PostTaskAndReply(
124 ID identifier, 133 ID identifier,
125 const tracked_objects::Location& from_here, 134 const tracked_objects::Location& from_here,
126 const base::Closure& task, 135 const base::Closure& task,
127 const base::Closure& reply); 136 const base::Closure& reply);
128 137
129 template <typename ReturnType> 138 template <typename ReturnType>
130 static bool PostTaskAndReplyWithResult( 139 static bool PostTaskAndReplyWithResult(
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 private: 283 private:
275 friend class BrowserThreadImpl; 284 friend class BrowserThreadImpl;
276 285
277 BrowserThread() {} 286 BrowserThread() {}
278 DISALLOW_COPY_AND_ASSIGN(BrowserThread); 287 DISALLOW_COPY_AND_ASSIGN(BrowserThread);
279 }; 288 };
280 289
281 } // namespace content 290 } // namespace content
282 291
283 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_THREAD_H_ 292 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_THREAD_H_
OLDNEW
« no previous file with comments | « content/browser/download/byte_stream_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