OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 CHROMEOS_BINDER_DRIVER_H_ | 5 #ifndef CHROMEOS_BINDER_DRIVER_H_ |
6 #define CHROMEOS_BINDER_DRIVER_H_ | 6 #define CHROMEOS_BINDER_DRIVER_H_ |
7 | 7 |
| 8 #include <stddef.h> |
| 9 |
8 #include "base/files/scoped_file.h" | 10 #include "base/files/scoped_file.h" |
9 #include "base/macros.h" | 11 #include "base/macros.h" |
10 #include "chromeos/chromeos_export.h" | 12 #include "chromeos/chromeos_export.h" |
11 | 13 |
12 namespace binder { | 14 namespace binder { |
13 | 15 |
14 // Use this class to communicate with the binder driver provided by the kernel. | 16 // Use this class to communicate with the binder driver provided by the kernel. |
15 // This class is stateless and it's safe to access this class from multiple | 17 // This class is stateless and it's safe to access this class from multiple |
16 // threads. | 18 // threads. |
17 class CHROMEOS_EXPORT Driver { | 19 class CHROMEOS_EXPORT Driver { |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 | 56 |
55 base::ScopedFD fd_; | 57 base::ScopedFD fd_; |
56 void* mmap_address_; | 58 void* mmap_address_; |
57 | 59 |
58 DISALLOW_COPY_AND_ASSIGN(Driver); | 60 DISALLOW_COPY_AND_ASSIGN(Driver); |
59 }; | 61 }; |
60 | 62 |
61 } // namespace binder | 63 } // namespace binder |
62 | 64 |
63 #endif // CHROMEOS_BINDER_DRIVER_H_ | 65 #endif // CHROMEOS_BINDER_DRIVER_H_ |
OLD | NEW |