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

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

Issue 2735443003: Use StringPiece for CreateUploader/NetMetricsLogUploader params. (Closed)
Patch Set: Nit and Rebase Created 3 years, 9 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 int32_t GetProduct() override; 73 int32_t GetProduct() override;
74 std::string GetApplicationLocale() override; 74 std::string GetApplicationLocale() override;
75 bool GetBrand(std::string* brand_code) override; 75 bool GetBrand(std::string* brand_code) override;
76 ::metrics::SystemProfileProto::Channel GetChannel() override; 76 ::metrics::SystemProfileProto::Channel GetChannel() override;
77 std::string GetVersionString() override; 77 std::string GetVersionString() override;
78 void InitializeSystemProfileMetrics( 78 void InitializeSystemProfileMetrics(
79 const base::Closure& done_callback) override; 79 const base::Closure& done_callback) override;
80 void CollectFinalMetricsForLog(const base::Closure& done_callback) override; 80 void CollectFinalMetricsForLog(const base::Closure& done_callback) override;
81 std::string GetMetricsServerUrl() override; 81 std::string GetMetricsServerUrl() override;
82 std::unique_ptr<::metrics::MetricsLogUploader> CreateUploader( 82 std::unique_ptr<::metrics::MetricsLogUploader> CreateUploader(
83 const std::string& server_url, 83 base::StringPiece server_url,
84 const std::string& mime_type, 84 base::StringPiece mime_type,
85 ::metrics::MetricsLogUploader::MetricServiceType service_type, 85 ::metrics::MetricsLogUploader::MetricServiceType service_type,
86 const base::Callback<void(int)>& on_upload_complete) override; 86 const base::Callback<void(int)>& on_upload_complete) override;
87 base::TimeDelta GetStandardUploadInterval() override; 87 base::TimeDelta GetStandardUploadInterval() override;
88 88
89 // ::metrics::EnabledStateProvider: 89 // ::metrics::EnabledStateProvider:
90 bool IsConsentGiven() override; 90 bool IsConsentGiven() override;
91 91
92 // Starts/stops the metrics service. 92 // Starts/stops the metrics service.
93 void EnableMetricsService(bool enabled); 93 void EnableMetricsService(bool enabled);
94 94
(...skipping 24 matching lines...) Expand all
119 std::unique_ptr<::metrics::EnabledStateProvider> enabled_state_provider_; 119 std::unique_ptr<::metrics::EnabledStateProvider> enabled_state_provider_;
120 net::URLRequestContextGetter* const request_context_; 120 net::URLRequestContextGetter* const request_context_;
121 121
122 DISALLOW_COPY_AND_ASSIGN(CastMetricsServiceClient); 122 DISALLOW_COPY_AND_ASSIGN(CastMetricsServiceClient);
123 }; 123 };
124 124
125 } // namespace metrics 125 } // namespace metrics
126 } // namespace chromecast 126 } // namespace chromecast
127 127
128 #endif // CHROMECAST_BROWSER_METRICS_CAST_METRICS_SERVICE_CLIENT_H_ 128 #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