OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // This file defines a service that collects information about the user | 5 // This file defines a service that collects information about the user |
6 // experience in order to help improve future versions of the app. | 6 // experience in order to help improve future versions of the app. |
7 | 7 |
8 #ifndef CHROME_BROWSER_METRICS_METRICS_SERVICE_H_ | 8 #ifndef CHROME_BROWSER_METRICS_METRICS_SERVICE_H_ |
9 #define CHROME_BROWSER_METRICS_METRICS_SERVICE_H_ | 9 #define CHROME_BROWSER_METRICS_METRICS_SERVICE_H_ |
10 #pragma once | 10 #pragma once |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 // Uploads the currently staged log (which must be non-null). | 254 // Uploads the currently staged log (which must be non-null). |
255 void SendStagedLog(); | 255 void SendStagedLog(); |
256 | 256 |
257 // Prepared the staged log to be passed to the server. Upon return, | 257 // Prepared the staged log to be passed to the server. Upon return, |
258 // current_fetch_ should be reset with its upload data set to a compressed | 258 // current_fetch_ should be reset with its upload data set to a compressed |
259 // copy of the staged log. | 259 // copy of the staged log. |
260 void PrepareFetchWithStagedLog(); | 260 void PrepareFetchWithStagedLog(); |
261 | 261 |
262 // Implementation of content::URLFetcherDelegate. Called after transmission | 262 // Implementation of content::URLFetcherDelegate. Called after transmission |
263 // completes (either successfully or with failure). | 263 // completes (either successfully or with failure). |
264 virtual void OnURLFetchComplete(const content::URLFetcher* source) OVERRIDE; | 264 virtual void OnURLFetchComplete(const net::URLFetcher* source) OVERRIDE; |
265 | 265 |
266 // Logs debugging details, for the case where the server returns a response | 266 // Logs debugging details, for the case where the server returns a response |
267 // code other than 200. | 267 // code other than 200. |
268 void LogBadResponseCode(); | 268 void LogBadResponseCode(); |
269 | 269 |
270 // Records a window-related notification. | 270 // Records a window-related notification. |
271 void LogWindowChange(int type, | 271 void LogWindowChange(int type, |
272 const content::NotificationSource& source, | 272 const content::NotificationSource& source, |
273 const content::NotificationDetails& details); | 273 const content::NotificationDetails& details); |
274 | 274 |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
447 friend bool prerender::IsOmniboxEnabled(Profile* profile); | 447 friend bool prerender::IsOmniboxEnabled(Profile* profile); |
448 friend class extensions::ExtensionDownloader; | 448 friend class extensions::ExtensionDownloader; |
449 | 449 |
450 // Returns true if prefs::kMetricsReportingEnabled is set. | 450 // Returns true if prefs::kMetricsReportingEnabled is set. |
451 static bool IsMetricsReportingEnabled(); | 451 static bool IsMetricsReportingEnabled(); |
452 | 452 |
453 DISALLOW_IMPLICIT_CONSTRUCTORS(MetricsServiceHelper); | 453 DISALLOW_IMPLICIT_CONSTRUCTORS(MetricsServiceHelper); |
454 }; | 454 }; |
455 | 455 |
456 #endif // CHROME_BROWSER_METRICS_METRICS_SERVICE_H_ | 456 #endif // CHROME_BROWSER_METRICS_METRICS_SERVICE_H_ |
OLD | NEW |