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

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

Issue 2211613002: Add AssignmentSource to BlimpClientContextImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge origin/master Created 4 years, 4 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 | « blimp/client/public/BUILD.gn ('k') | blimp/client/public/blimp_client_context_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 e43e73905044e01ee4bf6870122362d24c6e84b8..8b8638f00417f2dac943ac73c3e97b2a8873a151 100644
--- a/blimp/client/public/blimp_client_context.h
+++ b/blimp/client/public/blimp_client_context.h
@@ -6,6 +6,7 @@
#define BLIMP_CLIENT_PUBLIC_BLIMP_CLIENT_CONTEXT_H_
#include <memory>
+#include <string>
#include "base/memory/ref_counted.h"
#include "base/single_thread_task_runner.h"
@@ -41,8 +42,11 @@ class BlimpClientContext : public KeyedService {
// linked in.
// The |io_thread_task_runner| must be the task runner to use for IO
// operations.
+ // The |file_thread_task_runner| must be the task runner to use for file
+ // operations.
static BlimpClientContext* Create(
- scoped_refptr<base::SingleThreadTaskRunner> io_thread_task_runner);
+ scoped_refptr<base::SingleThreadTaskRunner> io_thread_task_runner,
+ scoped_refptr<base::SingleThreadTaskRunner> file_thread_task_runner);
// The delegate provides all the required functionality from the embedder.
virtual void SetDelegate(BlimpClientContextDelegate* delegate) = 0;
@@ -50,6 +54,9 @@ class BlimpClientContext : public KeyedService {
// Creates a new BlimpContents.
virtual std::unique_ptr<BlimpContents> CreateBlimpContents() = 0;
+ // Initiates the process for connecting to the engine.
+ virtual void Connect(const std::string& client_auth_token) = 0;
+
protected:
BlimpClientContext() = default;
« no previous file with comments | « blimp/client/public/BUILD.gn ('k') | blimp/client/public/blimp_client_context_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698