OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 CHROME_BROWSER_SIGNIN_CHROME_SIGNIN_STATUS_METRICS_PROVIDER_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_SIGNIN_CHROME_SIGNIN_STATUS_METRICS_PROVIDER_DELEGATE_H_ |
6 #define CHROME_BROWSER_SIGNIN_CHROME_SIGNIN_STATUS_METRICS_PROVIDER_DELEGATE_H_ | 6 #define CHROME_BROWSER_SIGNIN_CHROME_SIGNIN_STATUS_METRICS_PROVIDER_DELEGATE_H_ |
7 | 7 |
8 #include "base/gtest_prod_util.h" | 8 #include "base/gtest_prod_util.h" |
| 9 #include "base/macros.h" |
9 #include "chrome/browser/signin/signin_manager_factory.h" | 10 #include "chrome/browser/signin/signin_manager_factory.h" |
10 #include "chrome/browser/ui/browser_list_observer.h" | 11 #include "chrome/browser/ui/browser_list_observer.h" |
11 #include "components/signin/core/browser/signin_status_metrics_provider_delegate
.h" | 12 #include "components/signin/core/browser/signin_status_metrics_provider_delegate
.h" |
12 | 13 |
13 class ChromeSigninStatusMetricsProviderDelegate | 14 class ChromeSigninStatusMetricsProviderDelegate |
14 : public SigninStatusMetricsProviderDelegate, | 15 : public SigninStatusMetricsProviderDelegate, |
15 public chrome::BrowserListObserver, | 16 public chrome::BrowserListObserver, |
16 public SigninManagerFactory::Observer { | 17 public SigninManagerFactory::Observer { |
17 public: | 18 public: |
18 ChromeSigninStatusMetricsProviderDelegate(); | 19 ChromeSigninStatusMetricsProviderDelegate(); |
(...skipping 15 matching lines...) Expand all Loading... |
34 void SigninManagerCreated(SigninManagerBase* manager) override; | 35 void SigninManagerCreated(SigninManagerBase* manager) override; |
35 void SigninManagerShutdown(SigninManagerBase* manager) override; | 36 void SigninManagerShutdown(SigninManagerBase* manager) override; |
36 | 37 |
37 // Updates the sign-in status right after a new browser is opened. | 38 // Updates the sign-in status right after a new browser is opened. |
38 void UpdateStatusWhenBrowserAdded(bool signed_in); | 39 void UpdateStatusWhenBrowserAdded(bool signed_in); |
39 | 40 |
40 DISALLOW_COPY_AND_ASSIGN(ChromeSigninStatusMetricsProviderDelegate); | 41 DISALLOW_COPY_AND_ASSIGN(ChromeSigninStatusMetricsProviderDelegate); |
41 }; | 42 }; |
42 | 43 |
43 #endif // CHROME_BROWSER_SIGNIN_CHROME_SIGNIN_STATUS_METRICS_PROVIDER_DELEGATE_
H_ | 44 #endif // CHROME_BROWSER_SIGNIN_CHROME_SIGNIN_STATUS_METRICS_PROVIDER_DELEGATE_
H_ |
OLD | NEW |