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

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

Issue 1418763002: Revert of Eliminate //chrome dependencies from MetricsServicesManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | chromecast/browser/metrics/cast_metrics_service_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
66 void SetMetricsClientId(const std::string& client_id) override; 65 void SetMetricsClientId(const std::string& client_id) override;
67 void OnRecordingDisabled() override; 66 void OnRecordingDisabled() override;
68 bool IsOffTheRecordSessionActive() override; 67 bool IsOffTheRecordSessionActive() override;
69 int32_t GetProduct() override; 68 int32_t GetProduct() override;
70 std::string GetApplicationLocale() override; 69 std::string GetApplicationLocale() override;
71 bool GetBrand(std::string* brand_code) override; 70 bool GetBrand(std::string* brand_code) override;
72 ::metrics::SystemProfileProto::Channel GetChannel() override; 71 ::metrics::SystemProfileProto::Channel GetChannel() override;
73 std::string GetVersionString() override; 72 std::string GetVersionString() override;
74 void OnLogUploadComplete() override; 73 void OnLogUploadComplete() override;
75 void InitializeSystemProfileMetrics( 74 void InitializeSystemProfileMetrics(
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 scoped_ptr< ::metrics::MetricsService> metrics_service_; 110 scoped_ptr< ::metrics::MetricsService> metrics_service_;
112 net::URLRequestContextGetter* const request_context_; 111 net::URLRequestContextGetter* const request_context_;
113 112
114 DISALLOW_COPY_AND_ASSIGN(CastMetricsServiceClient); 113 DISALLOW_COPY_AND_ASSIGN(CastMetricsServiceClient);
115 }; 114 };
116 115
117 } // namespace metrics 116 } // namespace metrics
118 } // namespace chromecast 117 } // namespace chromecast
119 118
120 #endif // CHROMECAST_BROWSER_METRICS_CAST_METRICS_SERVICE_CLIENT_H_ 119 #endif // CHROMECAST_BROWSER_METRICS_CAST_METRICS_SERVICE_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | chromecast/browser/metrics/cast_metrics_service_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698