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

Side by Side Diff: net/dns/notify_watcher_mac.cc

Issue 11366229: Move eintr_wrapper.h from base to base/posix (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/dns/address_sorter_posix.cc ('k') | net/socket/tcp_client_socket_libevent.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 #include "net/dns/notify_watcher_mac.h" 5 #include "net/dns/notify_watcher_mac.h"
6 6
7 #include <notify.h> 7 #include <notify.h>
8 8
9 #include "base/eintr_wrapper.h"
10 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/posix/eintr_wrapper.h"
11 11
12 namespace net { 12 namespace net {
13 13
14 NotifyWatcherMac::NotifyWatcherMac() : notify_fd_(-1), notify_token_(-1) {} 14 NotifyWatcherMac::NotifyWatcherMac() : notify_fd_(-1), notify_token_(-1) {}
15 15
16 NotifyWatcherMac::~NotifyWatcherMac() { 16 NotifyWatcherMac::~NotifyWatcherMac() {
17 Cancel(); 17 Cancel();
18 } 18 }
19 19
20 bool NotifyWatcherMac::Watch(const char* key, const CallbackType& callback) { 20 bool NotifyWatcherMac::Watch(const char* key, const CallbackType& callback) {
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 Cancel(); 55 Cancel();
56 callback_.Run(false); 56 callback_.Run(false);
57 return; 57 return;
58 } 58 }
59 // Ignoring |token| value to avoid possible endianness mismatch: 59 // Ignoring |token| value to avoid possible endianness mismatch:
60 // http://openradar.appspot.com/8821081 60 // http://openradar.appspot.com/8821081
61 callback_.Run(true); 61 callback_.Run(true);
62 } 62 }
63 63
64 } // namespace net 64 } // namespace net
OLDNEW
« no previous file with comments | « net/dns/address_sorter_posix.cc ('k') | net/socket/tcp_client_socket_libevent.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698