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

Side by Side Diff: device/hid/hid_connection_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
« no previous file with comments | « device/hid/device_monitor_linux.h ('k') | device/hid/hid_connection_mac.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) 2014 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_HID_CONNECTION_LINUX_H_ 5 #ifndef DEVICE_HID_HID_CONNECTION_LINUX_H_
6 #define DEVICE_HID_HID_CONNECTION_LINUX_H_ 6 #define DEVICE_HID_HID_CONNECTION_LINUX_H_
7 7
8 #include <queue> 8 #include <queue>
9 9
10 #include "base/files/file.h" 10 #include "base/files/file.h"
11 #include "base/message_loop/message_pump_libevent.h" 11 #include "base/message_loop/message_pump_libevent.h"
12 #include "device/hid/hid_connection.h" 12 #include "device/hid/hid_connection.h"
13 13
14 namespace device { 14 namespace device {
15 15
16 class HidConnectionLinux : public HidConnection, 16 class HidConnectionLinux : public HidConnection,
17 public base::MessagePumpLibevent::Watcher { 17 public base::MessagePumpLibevent::Watcher {
18 public: 18 public:
19 HidConnectionLinux(HidDeviceInfo device_info, std::string dev_node); 19 HidConnectionLinux(HidDeviceInfo device_info, std::string dev_node);
20 20
21 private: 21 private:
22 friend class base::RefCountedThreadSafe<HidConnectionLinux>; 22 friend class base::RefCountedThreadSafe<HidConnectionLinux>;
23 virtual ~HidConnectionLinux(); 23 virtual ~HidConnectionLinux();
24 24
25 // HidConnection implementation. 25 // HidConnection implementation.
26 virtual void PlatformRead(const ReadCallback& callback) OVERRIDE; 26 virtual void PlatformRead(const ReadCallback& callback) override;
27 virtual void PlatformWrite(scoped_refptr<net::IOBuffer> buffer, 27 virtual void PlatformWrite(scoped_refptr<net::IOBuffer> buffer,
28 size_t size, 28 size_t size,
29 const WriteCallback& callback) OVERRIDE; 29 const WriteCallback& callback) override;
30 virtual void PlatformGetFeatureReport(uint8_t report_id, 30 virtual void PlatformGetFeatureReport(uint8_t report_id,
31 const ReadCallback& callback) OVERRIDE; 31 const ReadCallback& callback) override;
32 virtual void PlatformSendFeatureReport( 32 virtual void PlatformSendFeatureReport(
33 scoped_refptr<net::IOBuffer> buffer, 33 scoped_refptr<net::IOBuffer> buffer,
34 size_t size, 34 size_t size,
35 const WriteCallback& callback) OVERRIDE; 35 const WriteCallback& callback) override;
36 36
37 // base::MessagePumpLibevent::Watcher implementation. 37 // base::MessagePumpLibevent::Watcher implementation.
38 virtual void OnFileCanReadWithoutBlocking(int fd) OVERRIDE; 38 virtual void OnFileCanReadWithoutBlocking(int fd) override;
39 virtual void OnFileCanWriteWithoutBlocking(int fd) OVERRIDE; 39 virtual void OnFileCanWriteWithoutBlocking(int fd) override;
40 40
41 void Disconnect(); 41 void Disconnect();
42 42
43 void Flush(); 43 void Flush();
44 void ProcessInputReport(scoped_refptr<net::IOBuffer> buffer, size_t size); 44 void ProcessInputReport(scoped_refptr<net::IOBuffer> buffer, size_t size);
45 void ProcessReadQueue(); 45 void ProcessReadQueue();
46 46
47 base::File device_file_; 47 base::File device_file_;
48 base::MessagePumpLibevent::FileDescriptorWatcher device_file_watcher_; 48 base::MessagePumpLibevent::FileDescriptorWatcher device_file_watcher_;
49 49
50 std::queue<PendingHidReport> pending_reports_; 50 std::queue<PendingHidReport> pending_reports_;
51 std::queue<PendingHidRead> pending_reads_; 51 std::queue<PendingHidRead> pending_reads_;
52 52
53 DISALLOW_COPY_AND_ASSIGN(HidConnectionLinux); 53 DISALLOW_COPY_AND_ASSIGN(HidConnectionLinux);
54 }; 54 };
55 55
56 } // namespace device 56 } // namespace device
57 57
58 #endif // DEVICE_HID_HID_CONNECTION_LINUX_H_ 58 #endif // DEVICE_HID_HID_CONNECTION_LINUX_H_
OLDNEW
« no previous file with comments | « device/hid/device_monitor_linux.h ('k') | device/hid/hid_connection_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698