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

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

Issue 2542903002: device: Cleanup class/struct forward declarations (Closed)
Patch Set: Created 4 years 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/hid_service_linux.h ('k') | device/hid/hid_service_win.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 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_HID_SERVICE_MAC_H_ 5 #ifndef DEVICE_HID_HID_SERVICE_MAC_H_
6 #define DEVICE_HID_HID_SERVICE_MAC_H_ 6 #define DEVICE_HID_HID_SERVICE_MAC_H_
7 7
8 #include <CoreFoundation/CoreFoundation.h> 8 #include <CoreFoundation/CoreFoundation.h>
9 #include <IOKit/IOKitLib.h> 9 #include <IOKit/IOKitLib.h>
10 10
11 #include <string> 11 #include <string>
12 12
13 #include "base/mac/foundation_util.h" 13 #include "base/mac/foundation_util.h"
14 #include "base/mac/scoped_ionotificationportref.h" 14 #include "base/mac/scoped_ionotificationportref.h"
15 #include "base/mac/scoped_ioobject.h" 15 #include "base/mac/scoped_ioobject.h"
16 #include "base/macros.h" 16 #include "base/macros.h"
17 #include "base/memory/ref_counted.h" 17 #include "base/memory/ref_counted.h"
18 #include "device/hid/hid_service.h" 18 #include "device/hid/hid_service.h"
19 19
20 namespace base { 20 namespace base {
21 class SingleThreadTaskRunner; 21 class SingleThreadTaskRunner;
22 } 22 }
23 23
24 namespace device { 24 namespace device {
25 25
26 class HidConnection;
27
28 class HidServiceMac : public HidService { 26 class HidServiceMac : public HidService {
29 public: 27 public:
30 HidServiceMac(scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner); 28 HidServiceMac(scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner);
31 ~HidServiceMac() override; 29 ~HidServiceMac() override;
32 30
33 void Connect(const HidDeviceId& device_id, 31 void Connect(const HidDeviceId& device_id,
34 const ConnectCallback& connect) override; 32 const ConnectCallback& connect) override;
35 33
36 private: 34 private:
37 // IOService matching callbacks. 35 // IOService matching callbacks.
(...skipping 17 matching lines...) Expand all
55 // The task runner for the FILE thread of the application using this service 53 // The task runner for the FILE thread of the application using this service
56 // on which slow running I/O operations can be performed. 54 // on which slow running I/O operations can be performed.
57 scoped_refptr<base::SingleThreadTaskRunner> file_task_runner_; 55 scoped_refptr<base::SingleThreadTaskRunner> file_task_runner_;
58 56
59 DISALLOW_COPY_AND_ASSIGN(HidServiceMac); 57 DISALLOW_COPY_AND_ASSIGN(HidServiceMac);
60 }; 58 };
61 59
62 } // namespace device 60 } // namespace device
63 61
64 #endif // DEVICE_HID_HID_SERVICE_MAC_H_ 62 #endif // DEVICE_HID_HID_SERVICE_MAC_H_
OLDNEW
« no previous file with comments | « device/hid/hid_service_linux.h ('k') | device/hid/hid_service_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698