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

Side by Side Diff: components/signin/core/browser/signin_client.h

Issue 2712883005: Sign out profile when local_state file has been changed. (Closed)
Patch Set: Merge from master Created 3 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
« no previous file with comments | « chrome/test/BUILD.gn ('k') | components/signin/core/browser/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 COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_CLIENT_H_ 5 #ifndef COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_CLIENT_H_
6 #define COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_CLIENT_H_ 6 #define COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_CLIENT_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/callback_list.h" 9 #include "base/callback_list.h"
10 #include "base/time/time.h" 10 #include "base/time/time.h"
11 #include "components/keyed_service/core/keyed_service.h" 11 #include "components/keyed_service/core/keyed_service.h"
12 #include "components/signin/core/browser/account_info.h" 12 #include "components/signin/core/browser/account_info.h"
13 #include "components/signin/core/browser/signin_metrics.h"
13 #include "components/signin/core/browser/webdata/token_web_data.h" 14 #include "components/signin/core/browser/webdata/token_web_data.h"
14 #include "google_apis/gaia/gaia_auth_fetcher.h" 15 #include "google_apis/gaia/gaia_auth_fetcher.h"
15 #include "net/cookies/cookie_store.h" 16 #include "net/cookies/cookie_store.h"
16 #include "url/gurl.h" 17 #include "url/gurl.h"
17 18
18 class PrefService; 19 class PrefService;
19 class TokenWebData; 20 class TokenWebData;
20 21
21 namespace content_settings { 22 namespace content_settings {
22 class Observer; 23 class Observer;
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 const std::string& username, 92 const std::string& username,
92 const std::string& password) {} 93 const std::string& password) {}
93 94
94 // Called after Google signin has succeeded and GetUserInfo has returned. 95 // Called after Google signin has succeeded and GetUserInfo has returned.
95 virtual void PostSignedIn(const std::string& account_id, 96 virtual void PostSignedIn(const std::string& account_id,
96 const std::string& username, 97 const std::string& username,
97 const std::string& password) {} 98 const std::string& password) {}
98 99
99 // Called before Google signout started, call |sign_out| to start the sign out 100 // Called before Google signout started, call |sign_out| to start the sign out
100 // process. 101 // process.
101 virtual void PreSignOut(const base::Callback<void()>& sign_out); 102 virtual void PreSignOut(const base::Callback<void()>& sign_out,
103 signin_metrics::ProfileSignout signout_source_metric);
102 104
103 virtual bool IsFirstRun() const = 0; 105 virtual bool IsFirstRun() const = 0;
104 virtual base::Time GetInstallDate() = 0; 106 virtual base::Time GetInstallDate() = 0;
105 107
106 // Returns true if GAIA cookies are allowed in the content area. 108 // Returns true if GAIA cookies are allowed in the content area.
107 virtual bool AreSigninCookiesAllowed() = 0; 109 virtual bool AreSigninCookiesAllowed() = 0;
108 110
109 // Adds an observer to listen for changes to the state of sign in cookie 111 // Adds an observer to listen for changes to the state of sign in cookie
110 // settings. 112 // settings.
111 virtual void AddContentSettingsObserver( 113 virtual void AddContentSettingsObserver(
(...skipping 21 matching lines...) Expand all
133 135
134 private: 136 private:
135 // Perform Chrome-specific sign out. This happens when user signs out or about 137 // Perform Chrome-specific sign out. This happens when user signs out or about
136 // to sign in. 138 // to sign in.
137 // This method should not be called from the outside of SigninClient. External 139 // This method should not be called from the outside of SigninClient. External
138 // callers must use SignOut() instead. 140 // callers must use SignOut() instead.
139 virtual void OnSignedOut() = 0; 141 virtual void OnSignedOut() = 0;
140 }; 142 };
141 143
142 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_CLIENT_H_ 144 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/test/BUILD.gn ('k') | components/signin/core/browser/signin_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698