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

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
« no previous file with comments | « content/public/browser/profiler_controller.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,36 @@
+// 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;
+}
+
+namespace content {
+
+// Objects interested in receiving profiler data derive from ProfilerSubscriber.
+class CONTENT_EXPORT ProfilerSubscriber {
+ public:
+ virtual ~ProfilerSubscriber() {}
+
+ // Send number of pending processes to subscriber. |end| is set to true if it
+ // is the last time. This is called on UI thread.
+ virtual void OnPendingProcesses(int sequence_number,
+ int pending_processes,
+ bool end) = 0;
+
+ // Send profiler_data back to subscriber.
+ // This is called on UI thread.
+ virtual void OnProfilerDataCollected(
+ int sequence_number,
+ base::DictionaryValue* profiler_data) = 0;
+};
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_BROWSER_PROFILER_SUBSCRIBER_H_
Property changes on: content\public\browser\profiler_subscriber.h
___________________________________________________________________
Added: svn:executable
+ *
« no previous file with comments | « content/public/browser/profiler_controller.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698