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

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

Issue 8515027: Define the public version of the browser side RenderProcessHost interface. This interface is not ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 15 matching lines...) Expand all
26 26
27 #if defined(OS_CHROMEOS) 27 #if defined(OS_CHROMEOS)
28 #include "chrome/browser/chromeos/external_metrics.h" 28 #include "chrome/browser/chromeos/external_metrics.h"
29 #endif 29 #endif
30 30
31 class BookmarkModel; 31 class BookmarkModel;
32 class BookmarkNode; 32 class BookmarkNode;
33 class MetricsReportingScheduler; 33 class MetricsReportingScheduler;
34 class PrefService; 34 class PrefService;
35 class Profile; 35 class Profile;
36 class RenderProcessHost;
37 class TemplateURLService; 36 class TemplateURLService;
38 37
39 namespace base { 38 namespace base {
40 class DictionaryValue; 39 class DictionaryValue;
41 class MessageLoopProxy; 40 class MessageLoopProxy;
42 } 41 }
43 42
43 namespace content {
44 class RenderProcessHost;
45 }
46
44 namespace prerender { 47 namespace prerender {
45 bool IsOmniboxEnabled(Profile* profile); 48 bool IsOmniboxEnabled(Profile* profile);
46 } 49 }
47 50
48 namespace webkit { 51 namespace webkit {
49 struct WebPluginInfo; 52 struct WebPluginInfo;
50 } 53 }
51 54
52 55
53 class MetricsService : public content::NotificationObserver, 56 class MetricsService : public content::NotificationObserver,
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 const content::NotificationDetails& details); 245 const content::NotificationDetails& details);
243 246
244 // Reads, increments and then sets the specified integer preference. 247 // Reads, increments and then sets the specified integer preference.
245 void IncrementPrefValue(const char* path); 248 void IncrementPrefValue(const char* path);
246 249
247 // Reads, increments and then sets the specified long preference that is 250 // Reads, increments and then sets the specified long preference that is
248 // stored as a string. 251 // stored as a string.
249 void IncrementLongPrefsValue(const char* path); 252 void IncrementLongPrefsValue(const char* path);
250 253
251 // Records a renderer process crash. 254 // Records a renderer process crash.
252 void LogRendererCrash(RenderProcessHost* host, 255 void LogRendererCrash(content::RenderProcessHost* host,
253 base::TerminationStatus status, 256 base::TerminationStatus status,
254 bool was_alive); 257 bool was_alive);
255 258
256 // Records a renderer process hang. 259 // Records a renderer process hang.
257 void LogRendererHang(); 260 void LogRendererHang();
258 261
259 // Records that the browser was shut down cleanly. 262 // Records that the browser was shut down cleanly.
260 void LogCleanShutdown(); 263 void LogCleanShutdown();
261 264
262 // Set the value in preferences for the number of bookmarks and folders 265 // Set the value in preferences for the number of bookmarks and folders
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 friend class InstantFieldTrial; 405 friend class InstantFieldTrial;
403 friend bool prerender::IsOmniboxEnabled(Profile* profile); 406 friend bool prerender::IsOmniboxEnabled(Profile* profile);
404 407
405 // Returns true if prefs::kMetricsReportingEnabled is set. 408 // Returns true if prefs::kMetricsReportingEnabled is set.
406 static bool IsMetricsReportingEnabled(); 409 static bool IsMetricsReportingEnabled();
407 410
408 DISALLOW_IMPLICIT_CONSTRUCTORS(MetricsServiceHelper); 411 DISALLOW_IMPLICIT_CONSTRUCTORS(MetricsServiceHelper);
409 }; 412 };
410 413
411 #endif // CHROME_BROWSER_METRICS_METRICS_SERVICE_H_ 414 #endif // CHROME_BROWSER_METRICS_METRICS_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/metrics/histogram_synchronizer.cc ('k') | chrome/browser/metrics/metrics_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698