| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef BLIMP_CLIENT_SUPPORT_SESSION_BLIMP_DEFAULT_IDENTITY_PROVIDER_H_ |
| 6 #define BLIMP_CLIENT_SUPPORT_SESSION_BLIMP_DEFAULT_IDENTITY_PROVIDER_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "base/compiler_specific.h" |
| 11 #include "base/macros.h" |
| 12 #include "google_apis/gaia/identity_provider.h" |
| 13 |
| 14 namespace blimp { |
| 15 namespace client { |
| 16 |
| 17 // Provides a dummy identity provider with a null token service that doesn't |
| 18 // actually log in. Useful when using command-line switches to get the |
| 19 // assignment. |
| 20 class BlimpDefaultIdentityProvider : public IdentityProvider { |
| 21 public: |
| 22 BlimpDefaultIdentityProvider(); |
| 23 ~BlimpDefaultIdentityProvider() override; |
| 24 |
| 25 // IdentityProvider implementation. |
| 26 std::string GetActiveUsername() override; |
| 27 std::string GetActiveAccountId() override; |
| 28 OAuth2TokenService* GetTokenService() override; |
| 29 bool RequestLogin() override; |
| 30 |
| 31 private: |
| 32 DISALLOW_COPY_AND_ASSIGN(BlimpDefaultIdentityProvider); |
| 33 }; |
| 34 |
| 35 } // namespace client |
| 36 } // namespace blimp |
| 37 |
| 38 #endif // BLIMP_CLIENT_SUPPORT_SESSION_BLIMP_DEFAULT_IDENTITY_PROVIDER_H_ |
| OLD | NEW |