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

Unified Diff: base/message_loop/message_pump_mac.h

Issue 22911026: Add instrumentation to the MessagePumpMac family of classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: iOS compile Created 7 years, 4 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: base/message_loop/message_pump_mac.h
diff --git a/base/message_loop/message_pump_mac.h b/base/message_loop/message_pump_mac.h
index 748b26591f0403baaaa88fc9ad070135c8565f3b..61ac7038003470c874684ff41cbf8f43ff6186c6 100644
--- a/base/message_loop/message_pump_mac.h
+++ b/base/message_loop/message_pump_mac.h
@@ -36,6 +36,8 @@
#include <CoreFoundation/CoreFoundation.h>
+#include "base/memory/weak_ptr.h"
+
#if !defined(__OBJC__)
class NSAutoreleasePool;
#else // !defined(__OBJC__)
@@ -57,6 +59,7 @@ class NSAutoreleasePool;
namespace base {
+class MessagePumpInstrumentation;
class RunLoop;
class TimeTicks;
@@ -93,6 +96,11 @@ class MessagePumpCFRunLoopBase : public MessagePump {
// objects autoreleased by work to fall into the current autorelease pool.
virtual NSAutoreleasePool* CreateAutoreleasePool();
+ // Enables instrumentation of the MessagePump. See MessagePumpInstrumentation
+ // in the implementation for details.
+ void EnableInstrumentation();
+ WeakPtr<MessagePumpInstrumentation> instrumentation_;
+
private:
// Timer callback scheduled by ScheduleDelayedWork. This does not do any
// work, but it signals work_source_ so that delayed work can be performed

Powered by Google App Engine
This is Rietveld 408576698