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

Unified Diff: blimp/client/core/blimp_client_context_impl.h

Issue 2261273002: Integrate UI with authentication flow. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Misc fixes/ 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
Index: blimp/client/core/blimp_client_context_impl.h
diff --git a/blimp/client/core/blimp_client_context_impl.h b/blimp/client/core/blimp_client_context_impl.h
index 8302d26ca19bdb5617f7f005a4755092e5c6a8ad..7c8d6e588929159df70e86cd3013473edda85b79 100644
--- a/blimp/client/core/blimp_client_context_impl.h
+++ b/blimp/client/core/blimp_client_context_impl.h
@@ -43,6 +43,8 @@ class BlimpClientContextImpl : public BlimpClientContext,
scoped_refptr<base::SingleThreadTaskRunner> file_thread_task_runner);
~BlimpClientContextImpl() override;
+ IdentitySource* GetIdentitySource();
+
// BlimpClientContext implementation.
void SetDelegate(BlimpClientContextDelegate* delegate) override;
std::unique_ptr<BlimpContents> CreateBlimpContents() override;
@@ -59,6 +61,13 @@ class BlimpClientContextImpl : public BlimpClientContext,
// the AssignmentSource.
virtual GURL GetAssignerURL();
+ // Create IdentitySource which provides user sign in states and OAuth2 token
+ // service.
+ void CreateIdentitySource();
+
+ // Provide OAuth2 token and propagate account sign in states change.
+ std::unique_ptr<IdentitySource> identity_source_;
+
private:
// Connect to assignment source with OAuth2 token to get an assignment.
virtual void ConnectToAssignmentSource(const std::string& client_auth_token);
@@ -96,9 +105,6 @@ class BlimpClientContextImpl : public BlimpClientContext,
std::unique_ptr<ThreadPipeManager> thread_pipe_manager_;
- // Provide OAuth2 token and propagate account sign in states change.
- std::unique_ptr<IdentitySource> identity_source_;
-
base::WeakPtrFactory<BlimpClientContextImpl> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(BlimpClientContextImpl);

Powered by Google App Engine
This is Rietveld 408576698