summaryrefslogtreecommitdiffstats
path: root/components/signin
diff options
context:
space:
mode:
authorblundell@chromium.org <blundell@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-12 05:15:52 +0000
committerblundell@chromium.org <blundell@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-12 05:15:52 +0000
commitf97344a1cf31b9d74df15960b5015410e7199665 (patch)
treedf0fa823c6f6b9abac94f05deaf1b382d4425558 /components/signin
parent96282a0c6ef6ceabac242bca230b41a9a3b51188 (diff)
downloadchromium_src-f97344a1cf31b9d74df15960b5015410e7199665.zip
chromium_src-f97344a1cf31b9d74df15960b5015410e7199665.tar.gz
chromium_src-f97344a1cf31b9d74df15960b5015410e7199665.tar.bz2
Remove Profile knowledge from MutableProfileOAuth2TokenService
This CL removes all remaining calls to profile() in MutableProfileOAuth2TokenService, changing them to be calls on the SigninClient. Concretely, it adds the following APIs to SigninClient: - CanRevokeCredentials() - GetURLRequestContext() Note that the latter is a BrowserContext-level API and thus could go in a driver within the Signin component. However, at the current time it does not appear that there will be any other reason that the Signin component should be a layered component; I would like to avoid adding the extra complexity in internal structure until there is a compelling need for introducing the layering. BUG=334184 Review URL: https://codereview.chromium.org/192373010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@256438 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'components/signin')
-rw-r--r--components/signin/core/signin_client.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/components/signin/core/signin_client.h b/components/signin/core/signin_client.h
index 82c5254..779d2f8 100644
--- a/components/signin/core/signin_client.h
+++ b/components/signin/core/signin_client.h
@@ -9,6 +9,10 @@
class TokenWebData;
+namespace net {
+class URLRequestContextGetter;
+}
+
// An interface that needs to be supplied to the Signin component by its
// embedder.
class SigninClient {
@@ -17,6 +21,12 @@ class SigninClient {
// Gets the TokenWebData instance associated with the client.
virtual scoped_refptr<TokenWebData> GetDatabase() = 0;
+
+ // Returns whether it is possible to revoke credentials.
+ virtual bool CanRevokeCredentials() = 0;
+
+ // Returns the URL request context information associated with the client.
+ virtual net::URLRequestContextGetter* GetURLRequestContext() = 0;
};
#endif // COMPONENTS_SIGNIN_CORE_SIGNIN_CLIENT_H_