Fix infinite recursion on hiding panel when created during fullscreen mode.
[chromium-blink-merge.git] / components / signin / core / browser / signin_client.h
bloba6a5ac80ce1698e22c72b1122fa5eea5296433f6
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
3 // found in the LICENSE file.
5 #ifndef COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_CLIENT_H_
6 #define COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_CLIENT_H_
8 #include "components/signin/core/browser/webdata/token_web_data.h"
10 class PrefService;
11 class TokenWebData;
13 namespace net {
14 class URLRequestContextGetter;
17 // An interface that needs to be supplied to the Signin component by its
18 // embedder.
19 class SigninClient {
20 public:
21 virtual ~SigninClient() {}
23 // Gets the preferences associated with the client.
24 virtual PrefService* GetPrefs() = 0;
26 // Gets the TokenWebData instance associated with the client.
27 virtual scoped_refptr<TokenWebData> GetDatabase() = 0;
29 // Returns whether it is possible to revoke credentials.
30 virtual bool CanRevokeCredentials() = 0;
32 // Returns the URL request context information associated with the client.
33 virtual net::URLRequestContextGetter* GetURLRequestContext() = 0;
36 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_CLIENT_H_