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

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

Issue 466043002: Track when user signs in the profile. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Android doesn't track first run within chrome c++ Created 6 years, 4 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 "components/keyed_service/core/keyed_service.h" 11 #include "components/keyed_service/core/keyed_service.h"
11 #include "components/signin/core/browser/webdata/token_web_data.h" 12 #include "components/signin/core/browser/webdata/token_web_data.h"
12 13
13 class PrefService; 14 class PrefService;
14 class SigninManagerBase; 15 class SigninManagerBase;
15 class TokenWebData; 16 class TokenWebData;
16 17
17 namespace net { 18 namespace net {
18 class CanonicalCookie; 19 class CanonicalCookie;
19 class URLRequestContextGetter; 20 class URLRequestContextGetter;
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 79
79 // Called when Google signin has succeeded. 80 // Called when Google signin has succeeded.
80 virtual void GoogleSigninSucceeded(const std::string& username, 81 virtual void GoogleSigninSucceeded(const std::string& username,
81 const std::string& password) {} 82 const std::string& password) {}
82 83
83 virtual void SetSigninProcess(int host_id) = 0; 84 virtual void SetSigninProcess(int host_id) = 0;
84 virtual void ClearSigninProcess() = 0; 85 virtual void ClearSigninProcess() = 0;
85 virtual bool IsSigninProcess(int host_id) const = 0; 86 virtual bool IsSigninProcess(int host_id) const = 0;
86 virtual bool HasSigninProcess() const = 0; 87 virtual bool HasSigninProcess() const = 0;
87 88
89 virtual bool IsFirstRun() const = 0;
90 virtual base::Time GetInstallDate() = 0;
88 91
89 #if defined(OS_IOS) 92 #if defined(OS_IOS)
90 // TODO(msarda): http://crbug.com/358544 Remove this iOS specific code from 93 // TODO(msarda): http://crbug.com/358544 Remove this iOS specific code from
91 // the core SigninClient. 94 // the core SigninClient.
92 virtual ios::ProfileOAuth2TokenServiceIOSProvider* GetIOSProvider() = 0; 95 virtual ios::ProfileOAuth2TokenServiceIOSProvider* GetIOSProvider() = 0;
93 #endif 96 #endif
94 }; 97 };
95 98
96 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_CLIENT_H_ 99 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/browser/signin/signin_manager_unittest.cc ('k') | components/signin/core/browser/signin_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698