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

Unified Diff: content/browser/browser_thread_impl.h

Issue 2726523002: Pass Callback to TaskRunner by value and consume it on invocation (1) (Closed)
Patch Set: erase Closure* Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/user_manager/fake_user_manager.cc ('k') | content/browser/browser_thread_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/browser_thread_impl.h
diff --git a/content/browser/browser_thread_impl.h b/content/browser/browser_thread_impl.h
index d4bd3c944ebabe162e0c40e16e0650cc290fe91a..b4a843999bc2c78f1842eb73b37839ac9a5ea8f5 100644
--- a/content/browser/browser_thread_impl.h
+++ b/content/browser/browser_thread_impl.h
@@ -5,12 +5,23 @@
#ifndef CONTENT_BROWSER_BROWSER_THREAD_IMPL_H_
#define CONTENT_BROWSER_BROWSER_THREAD_IMPL_H_
+#include "base/callback.h"
#include "base/memory/ref_counted.h"
#include "base/single_thread_task_runner.h"
#include "base/threading/thread.h"
+#include "base/time/time.h"
#include "content/common/content_export.h"
#include "content/public/browser/browser_thread.h"
+namespace base {
+class MessageLoop;
+class RunLoop;
+}
+
+namespace tracked_objects {
+class Location;
+}
+
namespace content {
// Very few users should use this directly. To mock BrowserThreads, tests should
@@ -74,12 +85,11 @@ class CONTENT_EXPORT BrowserThreadImpl : public BrowserThread,
void CacheThreadRun(base::RunLoop* run_loop);
void IOThreadRun(base::RunLoop* run_loop);
- static bool PostTaskHelper(
- BrowserThread::ID identifier,
- const tracked_objects::Location& from_here,
- const base::Closure& task,
- base::TimeDelta delay,
- bool nestable);
+ static bool PostTaskHelper(BrowserThread::ID identifier,
+ const tracked_objects::Location& from_here,
+ base::Closure task,
+ base::TimeDelta delay,
+ bool nestable);
// Common initialization code for the constructors.
void Initialize();
« no previous file with comments | « components/user_manager/fake_user_manager.cc ('k') | content/browser/browser_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698