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

Unified Diff: blimp/client/support/session/blimp_default_identity_provider.h

Issue 2363153002: Migrate Linux Blimp client to use BlimpClientContext (Closed)
Patch Set: Move compositor creation into display manager. Pull out BlimpDisplayManagerDelegateMain class from … Created 4 years, 3 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/support/session/blimp_default_identity_provider.h
diff --git a/blimp/client/support/session/blimp_default_identity_provider.h b/blimp/client/support/session/blimp_default_identity_provider.h
new file mode 100644
index 0000000000000000000000000000000000000000..d3a98492a3f2e2dc29c56a1f0ba80e561a3caf43
--- /dev/null
+++ b/blimp/client/support/session/blimp_default_identity_provider.h
@@ -0,0 +1,35 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef BLIMP_CLIENT_SUPPORT_SESSION_BLIMP_DEFAULT_IDENTITY_PROVIDER_H_
+#define BLIMP_CLIENT_SUPPORT_SESSION_BLIMP_DEFAULT_IDENTITY_PROVIDER_H_
+
+#include <string>
+
+#include "base/compiler_specific.h"
+#include "base/macros.h"
+#include "google_apis/gaia/identity_provider.h"
+
+namespace blimp {
+namespace client {
+
+class BlimpDefaultIdentityProvider : public IdentityProvider {
David Trainor- moved to gerrit 2016/09/26 20:54:26 Add a comment describing what this class does (and
steimel 2016/09/27 17:35:01 Done.
+ public:
+ BlimpDefaultIdentityProvider();
+ ~BlimpDefaultIdentityProvider() override;
+
+ // IdentityProvider:
David Trainor- moved to gerrit 2016/09/26 20:54:26 IdentityProvider implementation.
steimel 2016/09/27 17:35:01 Done.
+ std::string GetActiveUsername() override;
+ std::string GetActiveAccountId() override;
+ OAuth2TokenService* GetTokenService() override;
+ bool RequestLogin() override;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(BlimpDefaultIdentityProvider);
+};
+
+} // namespace client
+} // namespace blimp
+
+#endif // BLIMP_CLIENT_SUPPORT_SESSION_BLIMP_DEFAULT_IDENTITY_PROVIDER_H_

Powered by Google App Engine
This is Rietveld 408576698