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

Side by Side Diff: content/browser/udev_linux.h

Issue 637183002: Replace FINAL and OVERRIDE with their C++11 counterparts in content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased the patch Created 6 years, 2 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 | « content/browser/transition_browsertest.cc ('k') | content/browser/utility_process_host_impl.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 (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 // UdevLinux listens for device change notifications from udev and runs 5 // UdevLinux listens for device change notifications from udev and runs
6 // callbacks when notifications occur. 6 // callbacks when notifications occur.
7 // 7 //
8 // UdevLinux must be created on a MessageLoop of TYPE_IO. 8 // UdevLinux must be created on a MessageLoop of TYPE_IO.
9 // UdevLinux is not thread-safe. 9 // UdevLinux is not thread-safe.
10 // 10 //
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 UdevLinux(const std::vector<UdevMonitorFilter>& filters, 71 UdevLinux(const std::vector<UdevMonitorFilter>& filters,
72 const UdevNotificationCallback& callback); 72 const UdevNotificationCallback& callback);
73 virtual ~UdevLinux(); 73 virtual ~UdevLinux();
74 74
75 75
76 // Returns the udev handle to be passed into other udev_*() functions. 76 // Returns the udev handle to be passed into other udev_*() functions.
77 udev* udev_handle(); 77 udev* udev_handle();
78 78
79 private: 79 private:
80 // base::MessagePump:Libevent::Watcher implementation. 80 // base::MessagePump:Libevent::Watcher implementation.
81 virtual void OnFileCanReadWithoutBlocking(int fd) OVERRIDE; 81 virtual void OnFileCanReadWithoutBlocking(int fd) override;
82 virtual void OnFileCanWriteWithoutBlocking(int fd) OVERRIDE; 82 virtual void OnFileCanWriteWithoutBlocking(int fd) override;
83 83
84 // libudev-related items, the main context, and the monitoring context to be 84 // libudev-related items, the main context, and the monitoring context to be
85 // notified about changes to device states. 85 // notified about changes to device states.
86 udev* udev_; 86 udev* udev_;
87 udev_monitor* monitor_; 87 udev_monitor* monitor_;
88 int monitor_fd_; 88 int monitor_fd_;
89 base::MessagePumpLibevent::FileDescriptorWatcher monitor_watcher_; 89 base::MessagePumpLibevent::FileDescriptorWatcher monitor_watcher_;
90 UdevNotificationCallback callback_; 90 UdevNotificationCallback callback_;
91 91
92 DISALLOW_COPY_AND_ASSIGN(UdevLinux); 92 DISALLOW_COPY_AND_ASSIGN(UdevLinux);
93 }; 93 };
94 94
95 } // namespace content 95 } // namespace content
96 96
97 #endif // CONTENT_BROWSER_UDEV_LINUX_H_ 97 #endif // CONTENT_BROWSER_UDEV_LINUX_H_
OLDNEW
« no previous file with comments | « content/browser/transition_browsertest.cc ('k') | content/browser/utility_process_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698