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

Side by Side Diff: chrome/browser/signin/chrome_signin_client.h

Issue 2802373002: Add ForceSigninVerifier. (Closed)
Patch Set: rogers' comments Created 3 years, 8 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/signin/chrome_signin_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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"
11 #include "components/signin/core/browser/signin_client.h" 11 #include "components/signin/core/browser/signin_client.h"
12 #include "components/signin/core/browser/signin_error_controller.h" 12 #include "components/signin/core/browser/signin_error_controller.h"
13 #include "google_apis/gaia/gaia_oauth_client.h" 13 #include "google_apis/gaia/gaia_oauth_client.h"
14 #include "google_apis/gaia/oauth2_token_service.h" 14 #include "google_apis/gaia/oauth2_token_service.h"
15 15
16 #if !defined(OS_CHROMEOS) 16 #if !defined(OS_CHROMEOS)
17 #include "net/base/network_change_notifier.h" 17 #include "net/base/network_change_notifier.h"
18 #endif 18 #endif
19 19
20 #if !defined(OS_ANDROID) && !defined(OS_CHROMEOS)
21 class ForceSigninVerifier;
22 #endif
20 class Profile; 23 class Profile;
21 24
22 class ChromeSigninClient 25 class ChromeSigninClient
23 : public SigninClient, 26 : public SigninClient,
24 #if !defined(OS_CHROMEOS) 27 #if !defined(OS_CHROMEOS)
25 public net::NetworkChangeNotifier::NetworkChangeObserver, 28 public net::NetworkChangeNotifier::NetworkChangeObserver,
26 #endif 29 #endif
27 public SigninErrorController::Observer, 30 public SigninErrorController::Observer,
28 public gaia::GaiaOAuthClient::Delegate, 31 public gaia::GaiaOAuthClient::Delegate,
29 public OAuth2TokenService::Consumer { 32 public OAuth2TokenService::Consumer {
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 #endif 103 #endif
101 104
102 void AfterCredentialsCopied() override; 105 void AfterCredentialsCopied() override;
103 106
104 protected: 107 protected:
105 virtual void ShowUserManager(const base::FilePath& profile_path); 108 virtual void ShowUserManager(const base::FilePath& profile_path);
106 virtual void LockForceSigninProfile(const base::FilePath& profile_path); 109 virtual void LockForceSigninProfile(const base::FilePath& profile_path);
107 110
108 private: 111 private:
109 void MaybeFetchSigninTokenHandle(); 112 void MaybeFetchSigninTokenHandle();
113 void VerifySyncToken();
110 void OnCloseBrowsersSuccess( 114 void OnCloseBrowsersSuccess(
111 const base::Callback<void()>& sign_out, 115 const base::Callback<void()>& sign_out,
112 const signin_metrics::ProfileSignout signout_source_metric, 116 const signin_metrics::ProfileSignout signout_source_metric,
113 const base::FilePath& profile_path); 117 const base::FilePath& profile_path);
114 void OnCloseBrowsersAborted(const base::FilePath& profile_path); 118 void OnCloseBrowsersAborted(const base::FilePath& profile_path);
115 119
116 Profile* profile_; 120 Profile* profile_;
117 121
118 SigninErrorController* signin_error_controller_; 122 SigninErrorController* signin_error_controller_;
119 #if !defined(OS_CHROMEOS) 123 #if !defined(OS_CHROMEOS)
120 std::list<base::Closure> delayed_callbacks_; 124 std::list<base::Closure> delayed_callbacks_;
121 #endif 125 #endif
122 126
123 bool is_force_signin_enabled_;
124 bool should_display_user_manager_ = true; 127 bool should_display_user_manager_ = true;
128 #if !defined(OS_ANDROID) && !defined(OS_CHROMEOS)
129 std::unique_ptr<ForceSigninVerifier> force_signin_verifier_;
130 #endif
125 131
126 std::unique_ptr<gaia::GaiaOAuthClient> oauth_client_; 132 std::unique_ptr<gaia::GaiaOAuthClient> oauth_client_;
127 std::unique_ptr<OAuth2TokenService::Request> oauth_request_; 133 std::unique_ptr<OAuth2TokenService::Request> oauth_request_;
128 134
129 DISALLOW_COPY_AND_ASSIGN(ChromeSigninClient); 135 DISALLOW_COPY_AND_ASSIGN(ChromeSigninClient);
130 }; 136 };
131 137
132 #endif // CHROME_BROWSER_SIGNIN_CHROME_SIGNIN_CLIENT_H_ 138 #endif // CHROME_BROWSER_SIGNIN_CHROME_SIGNIN_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/signin/chrome_signin_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698