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

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

Issue 14367029: Introduce SigninManagerDelegate and use to eliminate CookieSettings dependency. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge LKGR Created 7 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/signin/DEPS ('k') | chrome/browser/signin/chrome_signin_manager_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_SIGNIN_CHROME_SIGNIN_MANAGER_DELEGATE_H_
6 #define CHROME_BROWSER_SIGNIN_CHROME_SIGNIN_MANAGER_DELEGATE_H_
7
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "chrome/browser/signin/signin_manager_delegate.h"
11
12 class CookieSettings;
13 class Profile;
14
15 class ChromeSigninManagerDelegate : public SigninManagerDelegate {
16 public:
17 explicit ChromeSigninManagerDelegate(Profile* profile);
18 virtual ~ChromeSigninManagerDelegate();
19
20 // Utility methods.
21 static bool ProfileAllowsSigninCookies(Profile* profile);
22 static bool SettingsAllowSigninCookies(CookieSettings* cookie_settings);
23
24 // SigninManagerDelegate implementation.
25 virtual bool AreSigninCookiesAllowed() OVERRIDE;
26
27 private:
28 // Non-owning; this object is owned by the SigninManager, which is
29 // outlived by Profile.
30 Profile* profile_;
31
32 DISALLOW_COPY_AND_ASSIGN(ChromeSigninManagerDelegate);
33 };
34
35 #endif // CHROME_BROWSER_SIGNIN_CHROME_SIGNIN_MANAGER_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/signin/DEPS ('k') | chrome/browser/signin/chrome_signin_manager_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698