summaryrefslogtreecommitdiff
path: root/chromium/content/browser/browser_thread_impl.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/content/browser/browser_thread_impl.h')
-rw-r--r--chromium/content/browser/browser_thread_impl.h22
1 files changed, 16 insertions, 6 deletions
diff --git a/chromium/content/browser/browser_thread_impl.h b/chromium/content/browser/browser_thread_impl.h
index d4bd3c944eb..51adc53d063 100644
--- a/chromium/content/browser/browser_thread_impl.h
+++ b/chromium/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::OnceClosure task,
+ base::TimeDelta delay,
+ bool nestable);
// Common initialization code for the constructors.
void Initialize();