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

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

Issue 2614533002: Add server_url and mime_type params to CreateUploader. (Closed)
Patch Set: Missing Include Created 3 years, 11 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 void SetMetricsClientId(const std::string& client_id) override; 71 void SetMetricsClientId(const std::string& client_id) override;
72 int32_t GetProduct() override; 72 int32_t GetProduct() override;
73 std::string GetApplicationLocale() override; 73 std::string GetApplicationLocale() override;
74 bool GetBrand(std::string* brand_code) override; 74 bool GetBrand(std::string* brand_code) override;
75 ::metrics::SystemProfileProto::Channel GetChannel() override; 75 ::metrics::SystemProfileProto::Channel GetChannel() override;
76 std::string GetVersionString() override; 76 std::string GetVersionString() override;
77 void OnLogUploadComplete() override; 77 void OnLogUploadComplete() 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::unique_ptr<::metrics::MetricsLogUploader> CreateUploader( 82 std::unique_ptr<::metrics::MetricsLogUploader> CreateUploader(
83 const std::string& server_url,
84 const std::string& mime_type,
82 const base::Callback<void(int)>& on_upload_complete) override; 85 const base::Callback<void(int)>& on_upload_complete) override;
83 base::TimeDelta GetStandardUploadInterval() override; 86 base::TimeDelta GetStandardUploadInterval() override;
84 87
85 // ::metrics::EnabledStateProvider: 88 // ::metrics::EnabledStateProvider:
86 bool IsConsentGiven() override; 89 bool IsConsentGiven() override;
87 90
88 // Starts/stops the metrics service. 91 // Starts/stops the metrics service.
89 void EnableMetricsService(bool enabled); 92 void EnableMetricsService(bool enabled);
90 93
91 std::string client_id() const { return client_id_; } 94 std::string client_id() const { return client_id_; }
(...skipping 23 matching lines...) Expand all
115 std::unique_ptr<::metrics::EnabledStateProvider> enabled_state_provider_; 118 std::unique_ptr<::metrics::EnabledStateProvider> enabled_state_provider_;
116 net::URLRequestContextGetter* const request_context_; 119 net::URLRequestContextGetter* const request_context_;
117 120
118 DISALLOW_COPY_AND_ASSIGN(CastMetricsServiceClient); 121 DISALLOW_COPY_AND_ASSIGN(CastMetricsServiceClient);
119 }; 122 };
120 123
121 } // namespace metrics 124 } // namespace metrics
122 } // namespace chromecast 125 } // namespace chromecast
123 126
124 #endif // CHROMECAST_BROWSER_METRICS_CAST_METRICS_SERVICE_CLIENT_H_ 127 #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