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

Unified Diff: blimp/client/public/blimp_client_context.h

Issue 2190753002: Add network setup code to BlimpClientContextImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@split-blimp-client-session
Patch Set: addressed comments Created 4 years, 5 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: blimp/client/public/blimp_client_context.h
diff --git a/blimp/client/public/blimp_client_context.h b/blimp/client/public/blimp_client_context.h
index de2e73a361f1dd8edf8db1d8e26d00c71ee0e56f..2b766e293e91b6c780c3412d1fd7cf0fde93b06d 100644
--- a/blimp/client/public/blimp_client_context.h
+++ b/blimp/client/public/blimp_client_context.h
@@ -7,6 +7,8 @@
#include <memory>
+#include "base/memory/ref_counted.h"
+#include "base/single_thread_task_runner.h"
#include "blimp/client/public/blimp_client_context_delegate.h"
#include "blimp/client/public/contents/blimp_contents.h"
#include "components/keyed_service/core/keyed_service.h"
@@ -35,7 +37,10 @@ class BlimpClientContext : public KeyedService {
// Creates a BlimpClientContext. The implementation of this function
// depends on whether the core or dummy implementation of Blimp has been
// linked in.
- static BlimpClientContext* Create();
+ // The |io_thread_task_runner| must be the task runner to use for IO
+ // operations.
+ static BlimpClientContext* Create(
+ scoped_refptr<base::SingleThreadTaskRunner> io_thread_task_runner);
// The delegate provides all the required functionality from the embedder.
virtual void SetDelegate(BlimpClientContextDelegate* delegate) = 0;

Powered by Google App Engine
This is Rietveld 408576698