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

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

Issue 8760011: Move the ProcessType enum out to its own file. This is in preparation for getting rid of ChildPro... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac Created 9 years 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/memory_details_win.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) 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
11 11
12 #include <map> 12 #include <map>
13 #include <string> 13 #include <string>
14 #include <vector> 14 #include <vector>
15 15
16 #include "base/basictypes.h" 16 #include "base/basictypes.h"
17 #include "base/gtest_prod_util.h" 17 #include "base/gtest_prod_util.h"
18 #include "base/memory/weak_ptr.h" 18 #include "base/memory/weak_ptr.h"
19 #include "base/memory/scoped_ptr.h" 19 #include "base/memory/scoped_ptr.h"
20 #include "base/memory/weak_ptr.h" 20 #include "base/memory/weak_ptr.h"
21 #include "base/process_util.h" 21 #include "base/process_util.h"
22 #include "chrome/browser/io_thread.h" 22 #include "chrome/browser/io_thread.h"
23 #include "chrome/common/metrics_helpers.h" 23 #include "chrome/common/metrics_helpers.h"
24 #include "content/common/child_process_info.h" 24 #include "content/public/common/process_type.h"
25 #include "content/public/common/url_fetcher_delegate.h" 25 #include "content/public/common/url_fetcher_delegate.h"
26 #include "content/public/browser/notification_observer.h" 26 #include "content/public/browser/notification_observer.h"
27 #include "content/public/browser/notification_registrar.h" 27 #include "content/public/browser/notification_registrar.h"
28 28
29 #if defined(OS_CHROMEOS) 29 #if defined(OS_CHROMEOS)
30 #include "chrome/browser/chromeos/external_metrics.h" 30 #include "chrome/browser/chromeos/external_metrics.h"
31 #endif 31 #endif
32 32
33 class BookmarkModel; 33 class BookmarkModel;
34 class BookmarkNode; 34 class BookmarkNode;
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 // Checks whether a notification can be logged. 304 // Checks whether a notification can be logged.
305 bool CanLogNotification(int type, 305 bool CanLogNotification(int type,
306 const content::NotificationSource& source, 306 const content::NotificationSource& source,
307 const content::NotificationDetails& details); 307 const content::NotificationDetails& details);
308 308
309 // Sets the value of the specified path in prefs and schedules a save. 309 // Sets the value of the specified path in prefs and schedules a save.
310 void RecordBooleanPrefValue(const char* path, bool value); 310 void RecordBooleanPrefValue(const char* path, bool value);
311 311
312 // Returns true if process of type |type| should be counted as a plugin 312 // Returns true if process of type |type| should be counted as a plugin
313 // process, and false otherwise. 313 // process, and false otherwise.
314 static bool IsPluginProcess(ChildProcessInfo::ProcessType type); 314 static bool IsPluginProcess(content::ProcessType type);
315 315
316 content::NotificationRegistrar registrar_; 316 content::NotificationRegistrar registrar_;
317 317
318 // Indicate whether recording and reporting are currently happening. 318 // Indicate whether recording and reporting are currently happening.
319 // These should not be set directly, but by calling SetRecording and 319 // These should not be set directly, but by calling SetRecording and
320 // SetReporting. 320 // SetReporting.
321 bool recording_active_; 321 bool recording_active_;
322 bool reporting_active_; 322 bool reporting_active_;
323 323
324 // The progession of states made by the browser are recorded in the following 324 // The progession of states made by the browser are recorded in the following
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 friend class InstantFieldTrial; 407 friend class InstantFieldTrial;
408 friend bool prerender::IsOmniboxEnabled(Profile* profile); 408 friend bool prerender::IsOmniboxEnabled(Profile* profile);
409 409
410 // Returns true if prefs::kMetricsReportingEnabled is set. 410 // Returns true if prefs::kMetricsReportingEnabled is set.
411 static bool IsMetricsReportingEnabled(); 411 static bool IsMetricsReportingEnabled();
412 412
413 DISALLOW_IMPLICIT_CONSTRUCTORS(MetricsServiceHelper); 413 DISALLOW_IMPLICIT_CONSTRUCTORS(MetricsServiceHelper);
414 }; 414 };
415 415
416 #endif // CHROME_BROWSER_METRICS_METRICS_SERVICE_H_ 416 #endif // CHROME_BROWSER_METRICS_METRICS_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/memory_details_win.cc ('k') | chrome/browser/metrics/metrics_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698