| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_SIGNIN_CHROME_SIGNIN_CLIENT_H_ | 5 #ifndef CHROME_BROWSER_SIGNIN_CHROME_SIGNIN_CLIENT_H_ |
| 6 #define CHROME_BROWSER_SIGNIN_CHROME_SIGNIN_CLIENT_H_ | 6 #define CHROME_BROWSER_SIGNIN_CHROME_SIGNIN_CLIENT_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 #if !defined(OS_CHROMEOS) | 98 #if !defined(OS_CHROMEOS) |
| 99 // net::NetworkChangeController::NetworkChangeObserver implementation. | 99 // net::NetworkChangeController::NetworkChangeObserver implementation. |
| 100 void OnNetworkChanged(net::NetworkChangeNotifier::ConnectionType type) | 100 void OnNetworkChanged(net::NetworkChangeNotifier::ConnectionType type) |
| 101 override; | 101 override; |
| 102 #endif | 102 #endif |
| 103 | 103 |
| 104 void AfterCredentialsCopied() override; | 104 void AfterCredentialsCopied() override; |
| 105 | 105 |
| 106 protected: | 106 protected: |
| 107 virtual void ShowUserManager(const base::FilePath& profile_path); | 107 virtual void ShowUserManager(const base::FilePath& profile_path); |
| 108 virtual void LockProfile(const base::FilePath& profile_path); | 108 virtual void LockForceSigninProfile(const base::FilePath& profile_path); |
| 109 | 109 |
| 110 private: | 110 private: |
| 111 void MaybeFetchSigninTokenHandle(); | 111 void MaybeFetchSigninTokenHandle(); |
| 112 void OnCloseBrowsersSuccess(const base::Callback<void()>& sign_out, | 112 void OnCloseBrowsersSuccess(const base::Callback<void()>& sign_out, |
| 113 const base::FilePath& profile_path); | 113 const base::FilePath& profile_path); |
| 114 void OnCloseBrowsersAborted(const base::FilePath& profile_path); | 114 void OnCloseBrowsersAborted(const base::FilePath& profile_path); |
| 115 Profile* profile_; | 115 Profile* profile_; |
| 116 | 116 |
| 117 SigninErrorController* signin_error_controller_; | 117 SigninErrorController* signin_error_controller_; |
| 118 #if !defined(OS_CHROMEOS) | 118 #if !defined(OS_CHROMEOS) |
| 119 std::list<base::Closure> delayed_callbacks_; | 119 std::list<base::Closure> delayed_callbacks_; |
| 120 #endif | 120 #endif |
| 121 | 121 |
| 122 bool is_force_signin_enabled_; | 122 bool is_force_signin_enabled_; |
| 123 bool should_display_user_manager_ = true; | 123 bool should_display_user_manager_ = true; |
| 124 | 124 |
| 125 std::unique_ptr<gaia::GaiaOAuthClient> oauth_client_; | 125 std::unique_ptr<gaia::GaiaOAuthClient> oauth_client_; |
| 126 std::unique_ptr<OAuth2TokenService::Request> oauth_request_; | 126 std::unique_ptr<OAuth2TokenService::Request> oauth_request_; |
| 127 | 127 |
| 128 DISALLOW_COPY_AND_ASSIGN(ChromeSigninClient); | 128 DISALLOW_COPY_AND_ASSIGN(ChromeSigninClient); |
| 129 }; | 129 }; |
| 130 | 130 |
| 131 #endif // CHROME_BROWSER_SIGNIN_CHROME_SIGNIN_CLIENT_H_ | 131 #endif // CHROME_BROWSER_SIGNIN_CHROME_SIGNIN_CLIENT_H_ |
| OLD | NEW |