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

Side by Side Diff: device/hid/device_monitor_linux.h

Issue 628873002: replace OVERRIDE and FINAL with override and final in device/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 DEVICE_HID_DEVICE_MONITOR_LINUX_H_ 5 #ifndef DEVICE_HID_DEVICE_MONITOR_LINUX_H_
6 #define DEVICE_HID_DEVICE_MONITOR_LINUX_H_ 6 #define DEVICE_HID_DEVICE_MONITOR_LINUX_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 29 matching lines...) Expand all
40 static DeviceMonitorLinux* GetInstance(); 40 static DeviceMonitorLinux* GetInstance();
41 static bool HasInstance(); 41 static bool HasInstance();
42 42
43 void AddObserver(Observer* observer); 43 void AddObserver(Observer* observer);
44 void RemoveObserver(Observer* observer); 44 void RemoveObserver(Observer* observer);
45 45
46 ScopedUdevDevicePtr GetDeviceFromPath(const std::string& path); 46 ScopedUdevDevicePtr GetDeviceFromPath(const std::string& path);
47 void Enumerate(const EnumerateCallback& callback); 47 void Enumerate(const EnumerateCallback& callback);
48 48
49 // Implements base::MessageLoop::DestructionObserver 49 // Implements base::MessageLoop::DestructionObserver
50 virtual void WillDestroyCurrentMessageLoop() OVERRIDE; 50 virtual void WillDestroyCurrentMessageLoop() override;
51 51
52 // Implements base::MessagePumpLibevent::Watcher 52 // Implements base::MessagePumpLibevent::Watcher
53 virtual void OnFileCanReadWithoutBlocking(int fd) OVERRIDE; 53 virtual void OnFileCanReadWithoutBlocking(int fd) override;
54 virtual void OnFileCanWriteWithoutBlocking(int fd) OVERRIDE; 54 virtual void OnFileCanWriteWithoutBlocking(int fd) override;
55 55
56 private: 56 private:
57 friend struct base::DefaultDeleter<DeviceMonitorLinux>; 57 friend struct base::DefaultDeleter<DeviceMonitorLinux>;
58 58
59 virtual ~DeviceMonitorLinux(); 59 virtual ~DeviceMonitorLinux();
60 60
61 ScopedUdevPtr udev_; 61 ScopedUdevPtr udev_;
62 ScopedUdevMonitorPtr monitor_; 62 ScopedUdevMonitorPtr monitor_;
63 int monitor_fd_; 63 int monitor_fd_;
64 base::MessagePumpLibevent::FileDescriptorWatcher monitor_watcher_; 64 base::MessagePumpLibevent::FileDescriptorWatcher monitor_watcher_;
65 65
66 ObserverList<Observer> observers_; 66 ObserverList<Observer> observers_;
67 67
68 base::ThreadChecker thread_checker_; 68 base::ThreadChecker thread_checker_;
69 69
70 DISALLOW_COPY_AND_ASSIGN(DeviceMonitorLinux); 70 DISALLOW_COPY_AND_ASSIGN(DeviceMonitorLinux);
71 }; 71 };
72 72
73 } // namespace device 73 } // namespace device
74 74
75 #endif // DEVICE_HID_DEVICE_MONITOR_LINUX_H_ 75 #endif // DEVICE_HID_DEVICE_MONITOR_LINUX_H_
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_task_manager_win_unittest.cc ('k') | device/hid/hid_connection_linux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698