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

Side by Side Diff: ios/chrome/browser/metrics/ios_chrome_metrics_service_client.h

Issue 2383533002: Make logging of user actions consistent with histograms for OTR. (Closed)
Patch Set: Also change the cast client. Created 4 years, 2 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 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 // Factory function. 46 // Factory function.
47 static std::unique_ptr<IOSChromeMetricsServiceClient> Create( 47 static std::unique_ptr<IOSChromeMetricsServiceClient> Create(
48 metrics::MetricsStateManager* state_manager); 48 metrics::MetricsStateManager* state_manager);
49 49
50 // Registers local state prefs used by this class. 50 // Registers local state prefs used by this class.
51 static void RegisterPrefs(PrefRegistrySimple* registry); 51 static void RegisterPrefs(PrefRegistrySimple* registry);
52 52
53 // metrics::MetricsServiceClient: 53 // metrics::MetricsServiceClient:
54 metrics::MetricsService* GetMetricsService() override; 54 metrics::MetricsService* GetMetricsService() override;
55 void SetMetricsClientId(const std::string& client_id) override; 55 void SetMetricsClientId(const std::string& client_id) override;
56 bool IsOffTheRecordSessionActive() override;
57 int32_t GetProduct() override; 56 int32_t GetProduct() override;
58 std::string GetApplicationLocale() override; 57 std::string GetApplicationLocale() override;
59 bool GetBrand(std::string* brand_code) override; 58 bool GetBrand(std::string* brand_code) override;
60 metrics::SystemProfileProto::Channel GetChannel() override; 59 metrics::SystemProfileProto::Channel GetChannel() override;
61 std::string GetVersionString() override; 60 std::string GetVersionString() override;
62 void OnLogUploadComplete() override; 61 void OnLogUploadComplete() override;
63 void InitializeSystemProfileMetrics( 62 void InitializeSystemProfileMetrics(
64 const base::Closure& done_callback) override; 63 const base::Closure& done_callback) override;
65 void CollectFinalMetricsForLog(const base::Closure& done_callback) override; 64 void CollectFinalMetricsForLog(const base::Closure& done_callback) override;
66 std::unique_ptr<metrics::MetricsLogUploader> CreateUploader( 65 std::unique_ptr<metrics::MetricsLogUploader> CreateUploader(
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 // Whether this client has already uploaded profiler data during this session. 154 // Whether this client has already uploaded profiler data during this session.
156 // Profiler data is uploaded at most once per session. 155 // Profiler data is uploaded at most once per session.
157 bool has_uploaded_profiler_data_; 156 bool has_uploaded_profiler_data_;
158 157
159 base::WeakPtrFactory<IOSChromeMetricsServiceClient> weak_ptr_factory_; 158 base::WeakPtrFactory<IOSChromeMetricsServiceClient> weak_ptr_factory_;
160 159
161 DISALLOW_COPY_AND_ASSIGN(IOSChromeMetricsServiceClient); 160 DISALLOW_COPY_AND_ASSIGN(IOSChromeMetricsServiceClient);
162 }; 161 };
163 162
164 #endif // IOS_CHROME_BROWSER_METRICS_IOS_CHROME_METRICS_SERVICE_CLIENT_H_ 163 #endif // IOS_CHROME_BROWSER_METRICS_IOS_CHROME_METRICS_SERVICE_CLIENT_H_
OLDNEW
« no previous file with comments | « components/metrics/test_metrics_service_client.cc ('k') | ios/chrome/browser/metrics/ios_chrome_metrics_service_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698