OLD | NEW |
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_UDEV_LINUX_UDEV1_LOADER_H_ | 5 #ifndef DEVICE_UDEV_LINUX_UDEV1_LOADER_H_ |
6 #define DEVICE_UDEV_LINUX_UDEV1_LOADER_H_ | 6 #define DEVICE_UDEV_LINUX_UDEV1_LOADER_H_ |
7 | 7 |
| 8 #include <memory> |
| 9 |
8 #include "base/macros.h" | 10 #include "base/macros.h" |
9 #include "base/memory/scoped_ptr.h" | |
10 #include "device/udev_linux/udev_loader.h" | 11 #include "device/udev_linux/udev_loader.h" |
11 | 12 |
12 class LibUdev1Loader; | 13 class LibUdev1Loader; |
13 | 14 |
14 namespace device { | 15 namespace device { |
15 | 16 |
16 class Udev1Loader : public UdevLoader { | 17 class Udev1Loader : public UdevLoader { |
17 public: | 18 public: |
18 Udev1Loader(); | 19 Udev1Loader(); |
19 ~Udev1Loader() override; | 20 ~Udev1Loader() override; |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 udev* udev_new() override; | 68 udev* udev_new() override; |
68 void udev_set_log_fn( | 69 void udev_set_log_fn( |
69 struct udev* udev, | 70 struct udev* udev, |
70 void (*log_fn)(struct udev* udev, int priority, | 71 void (*log_fn)(struct udev* udev, int priority, |
71 const char* file, int line, | 72 const char* file, int line, |
72 const char* fn, const char* format, | 73 const char* fn, const char* format, |
73 va_list args)) override; | 74 va_list args)) override; |
74 void udev_set_log_priority(struct udev* udev, int priority) override; | 75 void udev_set_log_priority(struct udev* udev, int priority) override; |
75 void udev_unref(udev* udev) override; | 76 void udev_unref(udev* udev) override; |
76 | 77 |
77 scoped_ptr<LibUdev1Loader> lib_loader_; | 78 std::unique_ptr<LibUdev1Loader> lib_loader_; |
78 | 79 |
79 DISALLOW_COPY_AND_ASSIGN(Udev1Loader); | 80 DISALLOW_COPY_AND_ASSIGN(Udev1Loader); |
80 }; | 81 }; |
81 | 82 |
82 } // namespace device | 83 } // namespace device |
83 | 84 |
84 #endif // DEVICE_UDEV_LINUX_UDEV1_LOADER_H_ | 85 #endif // DEVICE_UDEV_LINUX_UDEV1_LOADER_H_ |
OLD | NEW |