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

Side by Side Diff: chromecast/browser/metrics/cast_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 CHROMECAST_BROWSER_METRICS_CAST_METRICS_SERVICE_CLIENT_H_ 5 #ifndef CHROMECAST_BROWSER_METRICS_CAST_METRICS_SERVICE_CLIENT_H_
6 #define CHROMECAST_BROWSER_METRICS_CAST_METRICS_SERVICE_CLIENT_H_ 6 #define CHROMECAST_BROWSER_METRICS_CAST_METRICS_SERVICE_CLIENT_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 // events in the file before shutdown. This function is safe to call from any 62 // events in the file before shutdown. This function is safe to call from any
63 // thread. 63 // thread.
64 void ProcessExternalEvents(const base::Closure& cb); 64 void ProcessExternalEvents(const base::Closure& cb);
65 65
66 void Initialize(CastService* cast_service); 66 void Initialize(CastService* cast_service);
67 void Finalize(); 67 void Finalize();
68 68
69 // ::metrics::MetricsServiceClient: 69 // ::metrics::MetricsServiceClient:
70 ::metrics::MetricsService* GetMetricsService() override; 70 ::metrics::MetricsService* GetMetricsService() override;
71 void SetMetricsClientId(const std::string& client_id) override; 71 void SetMetricsClientId(const std::string& client_id) override;
72 bool IsOffTheRecordSessionActive() override;
73 int32_t GetProduct() override; 72 int32_t GetProduct() override;
74 std::string GetApplicationLocale() override; 73 std::string GetApplicationLocale() override;
75 bool GetBrand(std::string* brand_code) override; 74 bool GetBrand(std::string* brand_code) override;
76 ::metrics::SystemProfileProto::Channel GetChannel() override; 75 ::metrics::SystemProfileProto::Channel GetChannel() override;
77 std::string GetVersionString() override; 76 std::string GetVersionString() override;
78 void OnLogUploadComplete() override; 77 void OnLogUploadComplete() override;
79 void InitializeSystemProfileMetrics( 78 void InitializeSystemProfileMetrics(
80 const base::Closure& done_callback) override; 79 const base::Closure& done_callback) override;
81 void CollectFinalMetricsForLog(const base::Closure& done_callback) override; 80 void CollectFinalMetricsForLog(const base::Closure& done_callback) override;
82 std::unique_ptr<::metrics::MetricsLogUploader> CreateUploader( 81 std::unique_ptr<::metrics::MetricsLogUploader> CreateUploader(
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 std::unique_ptr<::metrics::EnabledStateProvider> enabled_state_provider_; 115 std::unique_ptr<::metrics::EnabledStateProvider> enabled_state_provider_;
117 net::URLRequestContextGetter* const request_context_; 116 net::URLRequestContextGetter* const request_context_;
118 117
119 DISALLOW_COPY_AND_ASSIGN(CastMetricsServiceClient); 118 DISALLOW_COPY_AND_ASSIGN(CastMetricsServiceClient);
120 }; 119 };
121 120
122 } // namespace metrics 121 } // namespace metrics
123 } // namespace chromecast 122 } // namespace chromecast
124 123
125 #endif // CHROMECAST_BROWSER_METRICS_CAST_METRICS_SERVICE_CLIENT_H_ 124 #endif // CHROMECAST_BROWSER_METRICS_CAST_METRICS_SERVICE_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/browser/metrics/chrome_metrics_service_client.cc ('k') | chromecast/browser/metrics/cast_metrics_service_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698