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

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

Issue 813133003: New Profile metric for Auth Errors. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Headers cleanup Created 5 years, 11 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
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/signin_error_controller.h"
12 #include "components/signin/core/browser/webdata/token_web_data.h" 13 #include "components/signin/core/browser/webdata/token_web_data.h"
13 #include "net/cookies/cookie_store.h" 14 #include "net/cookies/cookie_store.h"
14 #include "url/gurl.h" 15 #include "url/gurl.h"
15 16
16 class PrefService; 17 class PrefService;
17 class SigninManagerBase; 18 class SigninManagerBase;
18 class TokenWebData; 19 class TokenWebData;
19 20
20 namespace net { 21 namespace net {
21 class URLRequestContextGetter; 22 class URLRequestContextGetter;
22 } 23 }
23 24
24 #if defined(OS_IOS) 25 #if defined(OS_IOS)
25 namespace ios { 26 namespace ios {
26 // TODO(msarda): http://crbug.com/358544 Remove this iOS specific code from the 27 // TODO(msarda): http://crbug.com/358544 Remove this iOS specific code from the
27 // core SigninClient. 28 // core SigninClient.
28 class ProfileOAuth2TokenServiceIOSProvider; 29 class ProfileOAuth2TokenServiceIOSProvider;
29 } 30 }
30 #endif 31 #endif
31 32
32 // An interface that needs to be supplied to the Signin component by its 33 // An interface that needs to be supplied to the Signin component by its
33 // embedder. 34 // embedder.
34 class SigninClient : public KeyedService { 35 class SigninClient : public KeyedService,
36 public SigninErrorController::Observer {
Roger Tawa OOO till Jul 10th 2015/01/06 22:32:42 ChromeSigninClient should implement this interface
35 public: 37 public:
36 // The subcription for cookie changed notifications. 38 // The subcription for cookie changed notifications.
37 class CookieChangedSubscription { 39 class CookieChangedSubscription {
38 public: 40 public:
39 virtual ~CookieChangedSubscription() {}; 41 virtual ~CookieChangedSubscription() {};
40 }; 42 };
41 43
42 ~SigninClient() override {} 44 ~SigninClient() override {}
43 45
44 // Gets the preferences associated with the client. 46 // Gets the preferences associated with the client.
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 virtual base::Time GetInstallDate() = 0; 101 virtual base::Time GetInstallDate() = 0;
100 102
101 #if defined(OS_IOS) 103 #if defined(OS_IOS)
102 // TODO(msarda): http://crbug.com/358544 Remove this iOS specific code from 104 // TODO(msarda): http://crbug.com/358544 Remove this iOS specific code from
103 // the core SigninClient. 105 // the core SigninClient.
104 virtual ios::ProfileOAuth2TokenServiceIOSProvider* GetIOSProvider() = 0; 106 virtual ios::ProfileOAuth2TokenServiceIOSProvider* GetIOSProvider() = 0;
105 #endif 107 #endif
106 }; 108 };
107 109
108 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_CLIENT_H_ 110 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698