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

Side by Side Diff: chrome/browser/metrics/chrome_metrics_service_client.h

Issue 2735443003: Use StringPiece for CreateUploader/NetMetricsLogUploader params. (Closed)
Patch Set: 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 CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_ 5 #ifndef CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_
6 #define CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_ 6 #define CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <deque> 10 #include <deque>
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 std::string GetApplicationLocale() override; 72 std::string GetApplicationLocale() override;
73 bool GetBrand(std::string* brand_code) override; 73 bool GetBrand(std::string* brand_code) override;
74 metrics::SystemProfileProto::Channel GetChannel() override; 74 metrics::SystemProfileProto::Channel GetChannel() override;
75 std::string GetVersionString() override; 75 std::string GetVersionString() override;
76 void OnEnvironmentUpdate(std::string* serialized_environment) override; 76 void OnEnvironmentUpdate(std::string* serialized_environment) override;
77 void OnLogCleanShutdown() override; 77 void OnLogCleanShutdown() 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::unique_ptr<metrics::MetricsLogUploader> CreateUploader( 81 std::unique_ptr<metrics::MetricsLogUploader> CreateUploader(
82 const std::string& server_url, 82 const base::StringPiece& server_url,
83 const std::string& mime_type, 83 const base::StringPiece& mime_type,
84 metrics::MetricsLogUploader::MetricServiceType service_type, 84 metrics::MetricsLogUploader::MetricServiceType service_type,
85 const base::Callback<void(int)>& on_upload_complete) override; 85 const base::Callback<void(int)>& on_upload_complete) override;
86 base::TimeDelta GetStandardUploadInterval() override; 86 base::TimeDelta GetStandardUploadInterval() override;
87 base::string16 GetRegistryBackupKey() override; 87 base::string16 GetRegistryBackupKey() override;
88 void OnPluginLoadingError(const base::FilePath& plugin_path) override; 88 void OnPluginLoadingError(const base::FilePath& plugin_path) override;
89 bool IsReportingPolicyManaged() override; 89 bool IsReportingPolicyManaged() override;
90 metrics::EnableMetricsDefault GetMetricsReportingDefaultState() override; 90 metrics::EnableMetricsDefault GetMetricsReportingDefaultState() override;
91 bool IsUMACellularUploadLogicEnabled() override; 91 bool IsUMACellularUploadLogicEnabled() override;
92 bool IsHistorySyncEnabledOnAllProfiles() override; 92 bool IsHistorySyncEnabledOnAllProfiles() override;
93 93
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 // Whether this client has already uploaded profiler data during this session. 246 // Whether this client has already uploaded profiler data during this session.
247 // Profiler data is uploaded at most once per session. 247 // Profiler data is uploaded at most once per session.
248 bool has_uploaded_profiler_data_; 248 bool has_uploaded_profiler_data_;
249 249
250 base::WeakPtrFactory<ChromeMetricsServiceClient> weak_ptr_factory_; 250 base::WeakPtrFactory<ChromeMetricsServiceClient> weak_ptr_factory_;
251 251
252 DISALLOW_COPY_AND_ASSIGN(ChromeMetricsServiceClient); 252 DISALLOW_COPY_AND_ASSIGN(ChromeMetricsServiceClient);
253 }; 253 };
254 254
255 #endif // CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_ 255 #endif // CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698