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

Unified Diff: content/public/child/child_thread.h

Issue 977573002: content: Add an overridable task runner to ChildThreadImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 5 years, 10 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
Index: content/public/child/child_thread.h
diff --git a/content/public/child/child_thread.h b/content/public/child/child_thread.h
index 6293ed164d8443dbd474ce35934a3235c0337943..a6f8e3e0c4223af7209f6fbfe0798ed528649d08 100644
--- a/content/public/child/child_thread.h
+++ b/content/public/child/child_thread.h
@@ -5,6 +5,7 @@
#ifndef CONTENT_PUBLIC_CHILD_CHILD_THREAD_H_
#define CONTENT_PUBLIC_CHILD_CHILD_THREAD_H_
+#include "base/memory/ref_counted.h"
#include "content/common/content_export.h"
#include "ipc/ipc_sender.h"
@@ -12,6 +13,10 @@
#include <windows.h>
#endif
+namespace base {
+class SingleThreadTaskRunner;
+}
+
namespace content {
class CONTENT_EXPORT ChildThread : public IPC::Sender {
@@ -22,6 +27,8 @@ class CONTENT_EXPORT ChildThread : public IPC::Sender {
~ChildThread() override {}
+ virtual scoped_refptr<base::SingleThreadTaskRunner> GetTaskRunner() = 0;
no sievers 2015/03/04 19:15:02 Should this have a comment and how this could pote
Sami 2015/03/04 19:39:28 Yep, I'll add a note here too.
+
#if defined(OS_WIN)
// Request that the given font be loaded by the browser so it's cached by the
// OS. Please see ChildProcessHost::PreCacheFont for details.

Powered by Google App Engine
This is Rietveld 408576698