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

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

Issue 1138143002: Pass Device ID in the oauth2/token request. Keep Device ID in local state on Chrome OS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added comment. Created 5 years, 7 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
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/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "components/signin/core/browser/signin_client.h" 10 #include "components/signin/core/browser/signin_client.h"
(...skipping 15 matching lines...) Expand all
26 public: 26 public:
27 explicit ChromeSigninClient( 27 explicit ChromeSigninClient(
28 Profile* profile, SigninErrorController* signin_error_controller); 28 Profile* profile, SigninErrorController* signin_error_controller);
29 ~ChromeSigninClient() override; 29 ~ChromeSigninClient() override;
30 void Shutdown() override; 30 void Shutdown() override;
31 31
32 // Utility methods. 32 // Utility methods.
33 static bool ProfileAllowsSigninCookies(Profile* profile); 33 static bool ProfileAllowsSigninCookies(Profile* profile);
34 static bool SettingsAllowSigninCookies(CookieSettings* cookie_settings); 34 static bool SettingsAllowSigninCookies(CookieSettings* cookie_settings);
35 35
36 // If |for_ephemeral| is true, special kind of device ID for ephemeral users
37 // is generated.
38 static std::string GenerateSigninScopedDeviceID(bool for_ephemeral);
39
36 // SigninClient implementation. 40 // SigninClient implementation.
37 PrefService* GetPrefs() override; 41 PrefService* GetPrefs() override;
38 scoped_refptr<TokenWebData> GetDatabase() override; 42 scoped_refptr<TokenWebData> GetDatabase() override;
39 bool CanRevokeCredentials() override; 43 bool CanRevokeCredentials() override;
40 std::string GetSigninScopedDeviceId() override; 44 std::string GetSigninScopedDeviceId() override;
41 void OnSignedOut() override; 45 void OnSignedOut() override;
42 net::URLRequestContextGetter* GetURLRequestContext() override; 46 net::URLRequestContextGetter* GetURLRequestContext() override;
43 bool ShouldMergeSigninCredentialsIntoCookieJar() override; 47 bool ShouldMergeSigninCredentialsIntoCookieJar() override;
44 bool IsFirstRun() const override; 48 bool IsFirstRun() const override;
45 base::Time GetInstallDate() override; 49 base::Time GetInstallDate() override;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 86
83 SigninErrorController* signin_error_controller_; 87 SigninErrorController* signin_error_controller_;
84 #if !defined(OS_CHROMEOS) 88 #if !defined(OS_CHROMEOS)
85 std::list<base::Closure> delayed_callbacks_; 89 std::list<base::Closure> delayed_callbacks_;
86 #endif 90 #endif
87 91
88 DISALLOW_COPY_AND_ASSIGN(ChromeSigninClient); 92 DISALLOW_COPY_AND_ASSIGN(ChromeSigninClient);
89 }; 93 };
90 94
91 #endif // CHROME_BROWSER_SIGNIN_CHROME_SIGNIN_CLIENT_H_ 95 #endif // CHROME_BROWSER_SIGNIN_CHROME_SIGNIN_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/browser/resources/gaia_auth_host/authenticator.js ('k') | chrome/browser/signin/chrome_signin_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698