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

Side by Side Diff: chrome/browser/metrics/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 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 CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_ 5 #ifndef CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_
6 #define CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_ 6 #define CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 // Factory function. 52 // Factory function.
53 static std::unique_ptr<ChromeMetricsServiceClient> Create( 53 static std::unique_ptr<ChromeMetricsServiceClient> Create(
54 metrics::MetricsStateManager* state_manager); 54 metrics::MetricsStateManager* state_manager);
55 55
56 // Registers local state prefs used by this class. 56 // Registers local state prefs used by this class.
57 static void RegisterPrefs(PrefRegistrySimple* registry); 57 static void RegisterPrefs(PrefRegistrySimple* registry);
58 58
59 // metrics::MetricsServiceClient: 59 // metrics::MetricsServiceClient:
60 metrics::MetricsService* GetMetricsService() override; 60 metrics::MetricsService* GetMetricsService() override;
61 void SetMetricsClientId(const std::string& client_id) override; 61 void SetMetricsClientId(const std::string& client_id) override;
62 bool IsOffTheRecordSessionActive() override;
63 int32_t GetProduct() override; 62 int32_t GetProduct() override;
64 std::string GetApplicationLocale() override; 63 std::string GetApplicationLocale() override;
65 bool GetBrand(std::string* brand_code) override; 64 bool GetBrand(std::string* brand_code) override;
66 metrics::SystemProfileProto::Channel GetChannel() override; 65 metrics::SystemProfileProto::Channel GetChannel() override;
67 std::string GetVersionString() override; 66 std::string GetVersionString() override;
68 void OnLogUploadComplete() override; 67 void OnLogUploadComplete() override;
69 void InitializeSystemProfileMetrics( 68 void InitializeSystemProfileMetrics(
70 const base::Closure& done_callback) override; 69 const base::Closure& done_callback) override;
71 void CollectFinalMetricsForLog(const base::Closure& done_callback) override; 70 void CollectFinalMetricsForLog(const base::Closure& done_callback) override;
72 std::unique_ptr<metrics::MetricsLogUploader> CreateUploader( 71 std::unique_ptr<metrics::MetricsLogUploader> CreateUploader(
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 // Whether this client has already uploaded profiler data during this session. 225 // Whether this client has already uploaded profiler data during this session.
227 // Profiler data is uploaded at most once per session. 226 // Profiler data is uploaded at most once per session.
228 bool has_uploaded_profiler_data_; 227 bool has_uploaded_profiler_data_;
229 228
230 base::WeakPtrFactory<ChromeMetricsServiceClient> weak_ptr_factory_; 229 base::WeakPtrFactory<ChromeMetricsServiceClient> weak_ptr_factory_;
231 230
232 DISALLOW_COPY_AND_ASSIGN(ChromeMetricsServiceClient); 231 DISALLOW_COPY_AND_ASSIGN(ChromeMetricsServiceClient);
233 }; 232 };
234 233
235 #endif // CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_ 234 #endif // CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_
OLDNEW
« no previous file with comments | « blimp/engine/app/blimp_metrics_service_client.cc ('k') | chrome/browser/metrics/chrome_metrics_service_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698