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

Unified Diff: chrome/browser/performance_monitor/performance_monitor.h

Issue 10837003: CPM Refactor and Cleanup (Closed) Base URL: http://git.chromium.org/chromium/src.git@dc_startup_times
Patch Set: Created 8 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/performance_monitor/performance_monitor.h
diff --git a/chrome/browser/performance_monitor/performance_monitor.h b/chrome/browser/performance_monitor/performance_monitor.h
index c74ee7ae6921319716efbbd2e195f44cbdfcee94..e7d7b29f98ce3ea64dbcdae1c1b2c26eac7926c6 100644
--- a/chrome/browser/performance_monitor/performance_monitor.h
+++ b/chrome/browser/performance_monitor/performance_monitor.h
@@ -18,6 +18,11 @@
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
#include "content/public/browser/notification_source.h"
+#include "content/public/browser/render_process_host.h"
+
+namespace extensions {
+class Extension;
+}
namespace performance_monitor {
class Database;
@@ -107,6 +112,16 @@ class PerformanceMonitor : public content::NotificationObserver {
// Perform any collections that are done on a timed basis.
void DoTimedCollections();
+ // Generate an appropriate ExtensionEvent for an extension-related occurrance
+ // and insert it in the database.
+ void HandleExtensionEvent(EventType type,
Yoyo Zhou 2012/08/02 08:39:01 Why "Handle" and not "Add" for these names?
+ const extensions::Extension* extension);
+
+ // Generate an appropriate CrashEvent for a renderer crash and insert it in
+ // the database.
+ void HandleCrashEvent(
+ const content::RenderProcessHost::RendererClosedDetails& details);
+
// The location at which the database files are stored; if empty, the database
// will default to '<user_data_dir>/performance_monitor_dbs'.
FilePath database_path_;

Powered by Google App Engine
This is Rietveld 408576698