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

Unified Diff: components/signin/core/browser/signin_client.h

Issue 296703011: Change refs from ChromeSigninClient to base SigninClient class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 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 side-by-side diff with in-line comments
Download patch
Index: components/signin/core/browser/signin_client.h
diff --git a/components/signin/core/browser/signin_client.h b/components/signin/core/browser/signin_client.h
index 4187f475cb76139f460ca50c02f86f5de8e8c186..ebee1a67dd5d21f884c2489a74f1d59ff1ad7729 100644
--- a/components/signin/core/browser/signin_client.h
+++ b/components/signin/core/browser/signin_client.h
@@ -6,6 +6,7 @@
#define COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_CLIENT_H_
#include "base/callback.h"
+#include "components/keyed_service/core/keyed_service.h"
#include "components/signin/core/browser/webdata/token_web_data.h"
class PrefService;
@@ -27,7 +28,7 @@ class ProfileOAuth2TokenServiceIOSProvider;
// An interface that needs to be supplied to the Signin component by its
// embedder.
-class SigninClient {
+class SigninClient : public KeyedService {
public:
typedef base::Callback<void(const net::CanonicalCookie* cookie)>
CookieChangedCallback;
@@ -66,6 +67,12 @@ class SigninClient {
virtual void GoogleSigninSucceeded(const std::string& username,
const std::string& password) {}
+ virtual void SetSigninProcess(int host_id) = 0;
+ virtual void ClearSigninProcess() = 0;
+ virtual bool IsSigninProcess(int host_id) const = 0;
+ virtual bool HasSigninProcess() const = 0;
+
+
#if defined(OS_IOS)
// TODO(msarda): http://crbug.com/358544 Remove this iOS specific code from
// the core SigninClient.
« no previous file with comments | « chrome/browser/ui/sync/one_click_signin_helper_unittest.cc ('k') | components/signin/core/browser/test_signin_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698