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

Side by Side Diff: chromecast/browser/metrics/cast_metrics_service_client.h

Issue 1411593004: Eliminate //chrome dependencies from MetricsServicesManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Response to review Created 5 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 <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 55
56 // Processes all events from shared file. This should be used to consume all 56 // Processes all events from shared file. This should be used to consume all
57 // events in the file before shutdown. This function is safe to call from any 57 // events in the file before shutdown. This function is safe to call from any
58 // thread. 58 // thread.
59 void ProcessExternalEvents(const base::Closure& cb); 59 void ProcessExternalEvents(const base::Closure& cb);
60 60
61 void Initialize(CastService* cast_service); 61 void Initialize(CastService* cast_service);
62 void Finalize(); 62 void Finalize();
63 63
64 // metrics::MetricsServiceClient implementation: 64 // metrics::MetricsServiceClient implementation:
65 ::metrics::MetricsService* GetMetricsService() override;
65 void SetMetricsClientId(const std::string& client_id) override; 66 void SetMetricsClientId(const std::string& client_id) override;
66 void OnRecordingDisabled() override; 67 void OnRecordingDisabled() override;
67 bool IsOffTheRecordSessionActive() override; 68 bool IsOffTheRecordSessionActive() override;
68 int32_t GetProduct() override; 69 int32_t GetProduct() override;
69 std::string GetApplicationLocale() override; 70 std::string GetApplicationLocale() override;
70 bool GetBrand(std::string* brand_code) override; 71 bool GetBrand(std::string* brand_code) override;
71 ::metrics::SystemProfileProto::Channel GetChannel() override; 72 ::metrics::SystemProfileProto::Channel GetChannel() override;
72 std::string GetVersionString() override; 73 std::string GetVersionString() override;
73 void OnLogUploadComplete() override; 74 void OnLogUploadComplete() override;
74 void InitializeSystemProfileMetrics( 75 void InitializeSystemProfileMetrics(
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 scoped_ptr< ::metrics::MetricsService> metrics_service_; 111 scoped_ptr< ::metrics::MetricsService> metrics_service_;
111 net::URLRequestContextGetter* const request_context_; 112 net::URLRequestContextGetter* const request_context_;
112 113
113 DISALLOW_COPY_AND_ASSIGN(CastMetricsServiceClient); 114 DISALLOW_COPY_AND_ASSIGN(CastMetricsServiceClient);
114 }; 115 };
115 116
116 } // namespace metrics 117 } // namespace metrics
117 } // namespace chromecast 118 } // namespace chromecast
118 119
119 #endif // CHROMECAST_BROWSER_METRICS_CAST_METRICS_SERVICE_CLIENT_H_ 120 #endif // CHROMECAST_BROWSER_METRICS_CAST_METRICS_SERVICE_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698