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

Side by Side Diff: device/udev_linux/udev1_loader.h

Issue 1874313002: Convert device to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 8 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/udev_linux/udev0_loader.h ('k') | device/udev_linux/udev_linux.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_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
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_
OLDNEW
« no previous file with comments | « device/udev_linux/udev0_loader.h ('k') | device/udev_linux/udev_linux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698