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

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

Issue 16917011: mac: Replace base::mac::ScopedCFTypeRef with base::ScopedCFTypeRef. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: with fixed off-by-1 in git-clang-format Created 7 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « base/mac/launch_services_util.cc ('k') | base/message_loop/message_pump_io_ios.cc » ('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"
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 MessagePumpIOSForIO* pump() const { return pump_; } 74 MessagePumpIOSForIO* pump() const { return pump_; }
75 75
76 void set_watcher(Watcher* watcher) { watcher_ = watcher; } 76 void set_watcher(Watcher* watcher) { watcher_ = watcher; }
77 77
78 void OnFileCanReadWithoutBlocking(int fd, MessagePumpIOSForIO* pump); 78 void OnFileCanReadWithoutBlocking(int fd, MessagePumpIOSForIO* pump);
79 void OnFileCanWriteWithoutBlocking(int fd, MessagePumpIOSForIO* pump); 79 void OnFileCanWriteWithoutBlocking(int fd, MessagePumpIOSForIO* pump);
80 80
81 bool is_persistent_; // false if this event is one-shot. 81 bool is_persistent_; // false if this event is one-shot.
82 base::mac::ScopedCFFileDescriptorRef fdref_; 82 base::mac::ScopedCFFileDescriptorRef fdref_;
83 CFOptionFlags callback_types_; 83 CFOptionFlags callback_types_;
84 base::mac::ScopedCFTypeRef<CFRunLoopSourceRef> fd_source_; 84 base::ScopedCFTypeRef<CFRunLoopSourceRef> fd_source_;
85 scoped_refptr<MessagePumpIOSForIO> pump_; 85 scoped_refptr<MessagePumpIOSForIO> pump_;
86 Watcher* watcher_; 86 Watcher* watcher_;
87 87
88 DISALLOW_COPY_AND_ASSIGN(FileDescriptorWatcher); 88 DISALLOW_COPY_AND_ASSIGN(FileDescriptorWatcher);
89 }; 89 };
90 90
91 enum Mode { 91 enum Mode {
92 WATCH_READ = 1 << 0, 92 WATCH_READ = 1 << 0,
93 WATCH_WRITE = 1 << 1, 93 WATCH_WRITE = 1 << 1,
94 WATCH_READ_WRITE = WATCH_READ | WATCH_WRITE 94 WATCH_READ_WRITE = WATCH_READ | WATCH_WRITE
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 133
134 ObserverList<IOObserver> io_observers_; 134 ObserverList<IOObserver> io_observers_;
135 ThreadChecker watch_file_descriptor_caller_checker_; 135 ThreadChecker watch_file_descriptor_caller_checker_;
136 136
137 DISALLOW_COPY_AND_ASSIGN(MessagePumpIOSForIO); 137 DISALLOW_COPY_AND_ASSIGN(MessagePumpIOSForIO);
138 }; 138 };
139 139
140 } // namespace base 140 } // namespace base
141 141
142 #endif // BASE_MESSAGE_LOOP_MESSAGE_PUMP_IO_IOS_H_ 142 #endif // BASE_MESSAGE_LOOP_MESSAGE_PUMP_IO_IOS_H_
OLDNEW
« no previous file with comments | « base/mac/launch_services_util.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