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

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

Issue 10386063: Move URLFetcherDelegate to net/ and split URLFetcher between net/ and content/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync to head, fix win component build Created 8 years, 7 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 | « chrome/browser/intranet_redirect_detector.cc ('k') | chrome/browser/metrics/metrics_service.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 (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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/intranet_redirect_detector.cc ('k') | chrome/browser/metrics/metrics_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698