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

Unified Diff: content/public/browser/profiler_subscriber.h

Issue 8588023: Collect profiler stats from browser child processes. (Closed) Base URL: svn://chrome-svn/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 side-by-side diff with in-line comments
Download patch
Index: content/public/browser/profiler_subscriber.h
===================================================================
--- content/public/browser/profiler_subscriber.h (revision 0)
+++ content/public/browser/profiler_subscriber.h (revision 0)
@@ -0,0 +1,29 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_PUBLIC_BROWSER_PROFILER_SUBSCRIBER_H_
+#define CONTENT_PUBLIC_BROWSER_PROFILER_SUBSCRIBER_H_
+
+#include "content/common/content_export.h"
+
+namespace base {
+class DictionaryValue;
+}
+
+// Objects interested in receiving profiler data derive from ProfilerSubscriber.
+// See also: profiler_message_filter.h
+// See also: child_profiler_message_filter.h
jam 2011/11/28 15:17:34 nit: these two comments aren't necessary, someone
ramant (doing other things) 2011/11/29 01:32:20 Done.
+class CONTENT_EXPORT ProfilerSubscriber {
jam 2011/11/28 15:17:34 all classes in content/public have to be in the co
ramant (doing other things) 2011/11/29 01:32:20 Done.
+ public:
+ virtual ~ProfilerSubscriber() {}
+
+ virtual void OnPendingProcesses(int sequence_number,
jam 2011/11/28 15:17:34 nit: here and below, please add comments for the m
ramant (doing other things) 2011/11/29 01:32:20 Done.
+ int pending_processes) = 0;
+
+ virtual void OnProfilerDataCollected(
+ int sequence_number,
+ const base::DictionaryValue& profiler_data) = 0;
+};
+
+#endif // CONTENT_PUBLIC_BROWSER_PROFILER_SUBSCRIBER_H_
Property changes on: content\public\browser\profiler_subscriber.h
___________________________________________________________________
Added: svn:executable
+ *

Powered by Google App Engine
This is Rietveld 408576698