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

Side by Side Diff: base/message_loop/message_pump_io_ios.h

Issue 20163004: base: Re-apply WeakPtr support for SequencedWorkerPools, fixing deadlock (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add back death test threadsafe mode flag that got lost. 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 unified diff | Download patch
« no previous file with comments | « base/memory/weak_ptr.cc ('k') | base/sequence_checker.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef BASE_MESSAGE_LOOP_MESSAGE_PUMP_IO_IOS_H_ 5 #ifndef BASE_MESSAGE_LOOP_MESSAGE_PUMP_IO_IOS_H_
6 #define BASE_MESSAGE_LOOP_MESSAGE_PUMP_IO_IOS_H_ 6 #define BASE_MESSAGE_LOOP_MESSAGE_PUMP_IO_IOS_H_
7 7
8 #include "base/base_export.h" 8 #include "base/base_export.h"
9 #include "base/mac/scoped_cffiledescriptorref.h" 9 #include "base/mac/scoped_cffiledescriptorref.h"
10 #include "base/mac/scoped_cftyperef.h" 10 #include "base/mac/scoped_cftyperef.h"
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/memory/weak_ptr.h" 12 #include "base/memory/weak_ptr.h"
13 #include "base/message_loop/message_pump_mac.h" 13 #include "base/message_loop/message_pump_mac.h"
14 #include "base/observer_list.h" 14 #include "base/observer_list.h"
15 #include "base/threading/thread_checker.h"
15 16
16 namespace base { 17 namespace base {
17 18
18 // This file introduces a class to monitor sockets and issue callbacks when 19 // This file introduces a class to monitor sockets and issue callbacks when
19 // sockets are ready for I/O on iOS. 20 // sockets are ready for I/O on iOS.
20 class BASE_EXPORT MessagePumpIOSForIO : public MessagePumpNSRunLoop { 21 class BASE_EXPORT MessagePumpIOSForIO : public MessagePumpNSRunLoop {
21 public: 22 public:
22 class IOObserver { 23 class IOObserver {
23 public: 24 public:
24 IOObserver() {} 25 IOObserver() {}
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 ThreadChecker watch_file_descriptor_caller_checker_; 135 ThreadChecker watch_file_descriptor_caller_checker_;
135 136
136 base::WeakPtrFactory<MessagePumpIOSForIO> weak_factory_; 137 base::WeakPtrFactory<MessagePumpIOSForIO> weak_factory_;
137 138
138 DISALLOW_COPY_AND_ASSIGN(MessagePumpIOSForIO); 139 DISALLOW_COPY_AND_ASSIGN(MessagePumpIOSForIO);
139 }; 140 };
140 141
141 } // namespace base 142 } // namespace base
142 143
143 #endif // BASE_MESSAGE_LOOP_MESSAGE_PUMP_IO_IOS_H_ 144 #endif // BASE_MESSAGE_LOOP_MESSAGE_PUMP_IO_IOS_H_
OLDNEW
« no previous file with comments | « base/memory/weak_ptr.cc ('k') | base/sequence_checker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698