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

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

Issue 192313002: Make ChromeSigninClient a BrowserContextKeyedService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nit Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/signin/chrome_signin_client_factory.h » ('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 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_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/browser_context_keyed_service/browser_context_keyed_service .h"
10 #include "components/signin/core/signin_client.h" 11 #include "components/signin/core/signin_client.h"
11 12
12 class CookieSettings; 13 class CookieSettings;
13 class Profile; 14 class Profile;
14 15
15 class ChromeSigninClient : public SigninClient { 16 class ChromeSigninClient : public SigninClient,
17 public BrowserContextKeyedService {
16 public: 18 public:
17 explicit ChromeSigninClient(Profile* profile); 19 explicit ChromeSigninClient(Profile* profile);
18 virtual ~ChromeSigninClient(); 20 virtual ~ChromeSigninClient();
19 21
20 // Utility methods. 22 // Utility methods.
21 static bool ProfileAllowsSigninCookies(Profile* profile); 23 static bool ProfileAllowsSigninCookies(Profile* profile);
22 static bool SettingsAllowSigninCookies(CookieSettings* cookie_settings); 24 static bool SettingsAllowSigninCookies(CookieSettings* cookie_settings);
23 25
24 // SigninClient implementation. 26 // SigninClient implementation.
25 virtual bool AreSigninCookiesAllowed() OVERRIDE; 27 virtual bool AreSigninCookiesAllowed() OVERRIDE;
26 28
27 private: 29 private:
28 // Non-owning; this object is owned by the SigninManager, which is
29 // outlived by Profile.
30 Profile* profile_; 30 Profile* profile_;
31 31
32 DISALLOW_COPY_AND_ASSIGN(ChromeSigninClient); 32 DISALLOW_COPY_AND_ASSIGN(ChromeSigninClient);
33 }; 33 };
34 34
35 #endif // CHROME_BROWSER_SIGNIN_CHROME_SIGNIN_CLIENT_H_ 35 #endif // CHROME_BROWSER_SIGNIN_CHROME_SIGNIN_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/signin/chrome_signin_client_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698