OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_MANAGER_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_SIGNIN_CHROME_SIGNIN_CLIENT_H_ |
6 #define CHROME_BROWSER_SIGNIN_CHROME_SIGNIN_MANAGER_DELEGATE_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/signin_manager_delegate.h" | 10 #include "components/signin/core/signin_client.h" |
11 | 11 |
12 class CookieSettings; | 12 class CookieSettings; |
13 class Profile; | 13 class Profile; |
14 | 14 |
15 class ChromeSigninManagerDelegate : public SigninManagerDelegate { | 15 class ChromeSigninClient : public SigninClient { |
16 public: | 16 public: |
17 explicit ChromeSigninManagerDelegate(Profile* profile); | 17 explicit ChromeSigninClient(Profile* profile); |
18 virtual ~ChromeSigninManagerDelegate(); | 18 virtual ~ChromeSigninClient(); |
19 | 19 |
20 // Utility methods. | 20 // Utility methods. |
21 static bool ProfileAllowsSigninCookies(Profile* profile); | 21 static bool ProfileAllowsSigninCookies(Profile* profile); |
22 static bool SettingsAllowSigninCookies(CookieSettings* cookie_settings); | 22 static bool SettingsAllowSigninCookies(CookieSettings* cookie_settings); |
23 | 23 |
24 // SigninManagerDelegate implementation. | 24 // SigninClient implementation. |
25 virtual bool AreSigninCookiesAllowed() OVERRIDE; | 25 virtual bool AreSigninCookiesAllowed() OVERRIDE; |
26 | 26 |
27 private: | 27 private: |
28 // Non-owning; this object is owned by the SigninManager, which is | 28 // Non-owning; this object is owned by the SigninManager, which is |
29 // outlived by Profile. | 29 // outlived by Profile. |
30 Profile* profile_; | 30 Profile* profile_; |
31 | 31 |
32 DISALLOW_COPY_AND_ASSIGN(ChromeSigninManagerDelegate); | 32 DISALLOW_COPY_AND_ASSIGN(ChromeSigninClient); |
33 }; | 33 }; |
34 | 34 |
35 #endif // CHROME_BROWSER_SIGNIN_CHROME_SIGNIN_MANAGER_DELEGATE_H_ | 35 #endif // CHROME_BROWSER_SIGNIN_CHROME_SIGNIN_CLIENT_H_ |
OLD | NEW |