Chromium Code Reviews| 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 IOS_CHROME_BROWSER_METRICS_IOS_CHROME_METRICS_SERVICE_CLIENT_H_ | 5 #ifndef IOS_CHROME_BROWSER_METRICS_IOS_CHROME_METRICS_SERVICE_CLIENT_H_ |
| 6 #define IOS_CHROME_BROWSER_METRICS_IOS_CHROME_METRICS_SERVICE_CLIENT_H_ | 6 #define IOS_CHROME_BROWSER_METRICS_IOS_CHROME_METRICS_SERVICE_CLIENT_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 61 bool GetBrand(std::string* brand_code) override; | 61 bool GetBrand(std::string* brand_code) override; |
| 62 metrics::SystemProfileProto::Channel GetChannel() override; | 62 metrics::SystemProfileProto::Channel GetChannel() override; |
| 63 std::string GetVersionString() override; | 63 std::string GetVersionString() override; |
| 64 void OnLogUploadComplete() override; | 64 void OnLogUploadComplete() override; |
| 65 void InitializeSystemProfileMetrics( | 65 void InitializeSystemProfileMetrics( |
| 66 const base::Closure& done_callback) override; | 66 const base::Closure& done_callback) override; |
| 67 void CollectFinalMetricsForLog(const base::Closure& done_callback) override; | 67 void CollectFinalMetricsForLog(const base::Closure& done_callback) override; |
| 68 std::unique_ptr<metrics::MetricsLogUploader> CreateUploader( | 68 std::unique_ptr<metrics::MetricsLogUploader> CreateUploader( |
| 69 const base::Callback<void(int)>& on_upload_complete) override; | 69 const base::Callback<void(int)>& on_upload_complete) override; |
| 70 base::TimeDelta GetStandardUploadInterval() override; | 70 base::TimeDelta GetStandardUploadInterval() override; |
| 71 scoped_refptr<base::SingleThreadTaskRunner> | |
| 72 GetMainThreadTaskRunner() override; | |
| 71 base::string16 GetRegistryBackupKey() override; | 73 base::string16 GetRegistryBackupKey() override; |
| 72 void OnRendererProcessCrash() override; | 74 void OnRendererProcessCrash() override; |
| 73 | 75 |
| 76 // Returns the task runner for the main thread. | |
|
Ilya Sherman
2016/04/09 07:06:11
?
beaudoin
2016/04/12 18:47:23
Done.
| |
| 77 | |
| 74 // web::GlobalWebStateObserver: | 78 // web::GlobalWebStateObserver: |
| 75 void WebStateDidStartLoading(web::WebState* web_state) override; | 79 void WebStateDidStartLoading(web::WebState* web_state) override; |
| 76 void WebStateDidStopLoading(web::WebState* web_state) override; | 80 void WebStateDidStopLoading(web::WebState* web_state) override; |
| 77 | 81 |
| 78 private: | 82 private: |
| 79 explicit IOSChromeMetricsServiceClient( | 83 explicit IOSChromeMetricsServiceClient( |
| 80 metrics::MetricsStateManager* state_manager); | 84 metrics::MetricsStateManager* state_manager); |
| 81 | 85 |
| 82 // Completes the two-phase initialization of IOSChromeMetricsServiceClient. | 86 // Completes the two-phase initialization of IOSChromeMetricsServiceClient. |
| 83 void Initialize(); | 87 void Initialize(); |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 155 // Whether this client has already uploaded profiler data during this session. | 159 // Whether this client has already uploaded profiler data during this session. |
| 156 // Profiler data is uploaded at most once per session. | 160 // Profiler data is uploaded at most once per session. |
| 157 bool has_uploaded_profiler_data_; | 161 bool has_uploaded_profiler_data_; |
| 158 | 162 |
| 159 base::WeakPtrFactory<IOSChromeMetricsServiceClient> weak_ptr_factory_; | 163 base::WeakPtrFactory<IOSChromeMetricsServiceClient> weak_ptr_factory_; |
| 160 | 164 |
| 161 DISALLOW_COPY_AND_ASSIGN(IOSChromeMetricsServiceClient); | 165 DISALLOW_COPY_AND_ASSIGN(IOSChromeMetricsServiceClient); |
| 162 }; | 166 }; |
| 163 | 167 |
| 164 #endif // IOS_CHROME_BROWSER_METRICS_IOS_CHROME_METRICS_SERVICE_CLIENT_H_ | 168 #endif // IOS_CHROME_BROWSER_METRICS_IOS_CHROME_METRICS_SERVICE_CLIENT_H_ |
| OLD | NEW |