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

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

Issue 291153013: Make MetricsService upload logs through an interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Casts for win64 compile Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | 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 30 matching lines...) Expand all
41 virtual bool IsOffTheRecordSessionActive() OVERRIDE; 41 virtual bool IsOffTheRecordSessionActive() OVERRIDE;
42 virtual std::string GetApplicationLocale() OVERRIDE; 42 virtual std::string GetApplicationLocale() OVERRIDE;
43 virtual bool GetBrand(std::string* brand_code) OVERRIDE; 43 virtual bool GetBrand(std::string* brand_code) OVERRIDE;
44 virtual metrics::SystemProfileProto::Channel GetChannel() OVERRIDE; 44 virtual metrics::SystemProfileProto::Channel GetChannel() OVERRIDE;
45 virtual std::string GetVersionString() OVERRIDE; 45 virtual std::string GetVersionString() OVERRIDE;
46 virtual void OnLogUploadComplete() OVERRIDE; 46 virtual void OnLogUploadComplete() OVERRIDE;
47 virtual void StartGatheringMetrics( 47 virtual void StartGatheringMetrics(
48 const base::Closure& done_callback) OVERRIDE; 48 const base::Closure& done_callback) OVERRIDE;
49 virtual void CollectFinalMetrics(const base::Closure& done_callback) 49 virtual void CollectFinalMetrics(const base::Closure& done_callback)
50 OVERRIDE; 50 OVERRIDE;
51 virtual scoped_ptr<metrics::MetricsLogUploader> CreateUploader(
52 const std::string& server_url,
53 const std::string& mime_type,
54 const base::Callback<void(int)>& on_upload_complete) OVERRIDE;
51 55
52 MetricsService* metrics_service() { return metrics_service_.get(); } 56 MetricsService* metrics_service() { return metrics_service_.get(); }
53 57
54 private: 58 private:
55 explicit ChromeMetricsServiceClient( 59 explicit ChromeMetricsServiceClient(
56 metrics::MetricsStateManager* state_manager); 60 metrics::MetricsStateManager* state_manager);
57 61
58 // Completes the two-phase initialization of ChromeMetricsServiceClient. 62 // Completes the two-phase initialization of ChromeMetricsServiceClient.
59 void Initialize(); 63 void Initialize();
60 64
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 111
108 // Number of async histogram fetch requests in progress. 112 // Number of async histogram fetch requests in progress.
109 int num_async_histogram_fetches_in_progress_; 113 int num_async_histogram_fetches_in_progress_;
110 114
111 base::WeakPtrFactory<ChromeMetricsServiceClient> weak_ptr_factory_; 115 base::WeakPtrFactory<ChromeMetricsServiceClient> weak_ptr_factory_;
112 116
113 DISALLOW_COPY_AND_ASSIGN(ChromeMetricsServiceClient); 117 DISALLOW_COPY_AND_ASSIGN(ChromeMetricsServiceClient);
114 }; 118 };
115 119
116 #endif // CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_ 120 #endif // CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/metrics/chrome_metrics_service_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698