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

Unified Diff: base/message_loop/message_pump_io_ios.h

Issue 2695593009: Use the location where FileDescriptorWatcher is created to track the libevent handlers (Closed)
Patch Set: fix mac. Created 3 years, 10 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
« no previous file with comments | « base/message_loop/message_loop_unittest.cc ('k') | base/message_loop/message_pump_io_ios.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/message_loop/message_pump_io_ios.h
diff --git a/base/message_loop/message_pump_io_ios.h b/base/message_loop/message_pump_io_ios.h
index bb6cd504d1627588ac502a92d4adaaed042d1f80..f48e957365588962362b39382f7b85531675fc0f 100644
--- a/base/message_loop/message_pump_io_ios.h
+++ b/base/message_loop/message_pump_io_ios.h
@@ -6,6 +6,7 @@
#define BASE_MESSAGE_LOOP_MESSAGE_PUMP_IO_IOS_H_
#include "base/base_export.h"
+#include "base/location.h"
#include "base/mac/scoped_cffiledescriptorref.h"
#include "base/mac/scoped_cftyperef.h"
#include "base/macros.h"
@@ -36,7 +37,7 @@ class BASE_EXPORT MessagePumpIOSForIO : public MessagePumpNSRunLoop {
// Object returned by WatchFileDescriptor to manage further watching.
class FileDescriptorWatcher {
public:
- FileDescriptorWatcher();
+ explicit FileDescriptorWatcher(const tracked_objects::Location& from_here);
~FileDescriptorWatcher(); // Implicitly calls StopWatchingFileDescriptor.
// NOTE: These methods aren't called StartWatching()/StopWatching() to
@@ -46,6 +47,10 @@ class BASE_EXPORT MessagePumpIOSForIO : public MessagePumpNSRunLoop {
// to do.
bool StopWatchingFileDescriptor();
+ const tracked_objects::Location& created_from_location() {
+ return created_from_location_;
+ }
+
private:
friend class MessagePumpIOSForIO;
friend class MessagePumpIOSForIOTest;
@@ -72,6 +77,8 @@ class BASE_EXPORT MessagePumpIOSForIO : public MessagePumpNSRunLoop {
base::WeakPtr<MessagePumpIOSForIO> pump_;
Watcher* watcher_;
+ tracked_objects::Location created_from_location_;
+
DISALLOW_COPY_AND_ASSIGN(FileDescriptorWatcher);
};
« no previous file with comments | « base/message_loop/message_loop_unittest.cc ('k') | base/message_loop/message_pump_io_ios.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698