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

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

Issue 886173002: Allow server endpoint to be injected into the NetMetricsLogUploader from chrome/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed GN build Created 5 years, 10 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 | « AUTHORS ('k') | chrome/browser/metrics/chrome_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 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 <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 bool IsOffTheRecordSessionActive() override; 60 bool IsOffTheRecordSessionActive() override;
61 int32 GetProduct() override; 61 int32 GetProduct() override;
62 std::string GetApplicationLocale() override; 62 std::string GetApplicationLocale() override;
63 bool GetBrand(std::string* brand_code) override; 63 bool GetBrand(std::string* brand_code) override;
64 metrics::SystemProfileProto::Channel GetChannel() override; 64 metrics::SystemProfileProto::Channel GetChannel() override;
65 std::string GetVersionString() override; 65 std::string GetVersionString() override;
66 void OnLogUploadComplete() override; 66 void OnLogUploadComplete() override;
67 void StartGatheringMetrics(const base::Closure& done_callback) override; 67 void StartGatheringMetrics(const base::Closure& done_callback) override;
68 void CollectFinalMetrics(const base::Closure& done_callback) override; 68 void CollectFinalMetrics(const base::Closure& done_callback) override;
69 scoped_ptr<metrics::MetricsLogUploader> CreateUploader( 69 scoped_ptr<metrics::MetricsLogUploader> CreateUploader(
70 const std::string& server_url,
71 const std::string& mime_type,
72 const base::Callback<void(int)>& on_upload_complete) override; 70 const base::Callback<void(int)>& on_upload_complete) override;
73 base::string16 GetRegistryBackupKey() override; 71 base::string16 GetRegistryBackupKey() override;
74 72
75 metrics::MetricsService* metrics_service() { return metrics_service_.get(); } 73 metrics::MetricsService* metrics_service() { return metrics_service_.get(); }
76 74
77 void LogPluginLoadingError(const base::FilePath& plugin_path); 75 void LogPluginLoadingError(const base::FilePath& plugin_path);
78 76
79 private: 77 private:
80 explicit ChromeMetricsServiceClient( 78 explicit ChromeMetricsServiceClient(
81 metrics::MetricsStateManager* state_manager); 79 metrics::MetricsStateManager* state_manager);
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 // The MemoryGrowthTracker instance that tracks memory usage growth in 170 // The MemoryGrowthTracker instance that tracks memory usage growth in
173 // MemoryDetails. 171 // MemoryDetails.
174 MemoryGrowthTracker memory_growth_tracker_; 172 MemoryGrowthTracker memory_growth_tracker_;
175 173
176 base::WeakPtrFactory<ChromeMetricsServiceClient> weak_ptr_factory_; 174 base::WeakPtrFactory<ChromeMetricsServiceClient> weak_ptr_factory_;
177 175
178 DISALLOW_COPY_AND_ASSIGN(ChromeMetricsServiceClient); 176 DISALLOW_COPY_AND_ASSIGN(ChromeMetricsServiceClient);
179 }; 177 };
180 178
181 #endif // CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_ 179 #endif // CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_
OLDNEW
« no previous file with comments | « AUTHORS ('k') | chrome/browser/metrics/chrome_metrics_service_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698