Rename content_extractor.cc to content_extractor_browsertest.cc
[chromium-blink-merge.git] / device / udev_linux / udev0_loader.h
blob2e48c7c76a740387bb3781f6d871a931cd95eebe
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
3 // found in the LICENSE file.
5 #ifndef DEVICE_UDEV_LINUX_UDEV0_LOADER_H_
6 #define DEVICE_UDEV_LINUX_UDEV0_LOADER_H_
8 #include "base/memory/scoped_ptr.h"
9 #include "device/udev_linux/udev_loader.h"
11 class LibUdev0Loader;
13 namespace device {
15 class Udev0Loader : public UdevLoader {
16 public:
17 Udev0Loader();
18 ~Udev0Loader() override;
20 private:
21 bool Init() override;
22 const char* udev_device_get_action(udev_device* udev_device) override;
23 const char* udev_device_get_devnode(udev_device* udev_device) override;
24 udev_device* udev_device_get_parent(udev_device* udev_device) override;
25 udev_device* udev_device_get_parent_with_subsystem_devtype(
26 udev_device* udev_device,
27 const char* subsystem,
28 const char* devtype) override;
29 const char* udev_device_get_property_value(udev_device* udev_device,
30 const char* key) override;
31 const char* udev_device_get_subsystem(udev_device* udev_device) override;
32 const char* udev_device_get_sysattr_value(udev_device* udev_device,
33 const char* sysattr) override;
34 const char* udev_device_get_sysname(udev_device* udev_device) override;
35 const char* udev_device_get_syspath(udev_device* udev_device) override;
36 udev_device* udev_device_new_from_devnum(udev* udev,
37 char type,
38 dev_t devnum) override;
39 udev_device* udev_device_new_from_syspath(udev* udev,
40 const char* syspath) override;
41 void udev_device_unref(udev_device* udev_device) override;
42 int udev_enumerate_add_match_subsystem(udev_enumerate* udev_enumerate,
43 const char* subsystem) override;
44 udev_list_entry* udev_enumerate_get_list_entry(
45 udev_enumerate* udev_enumerate) override;
46 udev_enumerate* udev_enumerate_new(udev* udev) override;
47 int udev_enumerate_scan_devices(udev_enumerate* udev_enumerate) override;
48 void udev_enumerate_unref(udev_enumerate* udev_enumerate) override;
49 udev_list_entry* udev_list_entry_get_next(
50 udev_list_entry* list_entry) override;
51 const char* udev_list_entry_get_name(udev_list_entry* list_entry) override;
52 int udev_monitor_enable_receiving(udev_monitor* udev_monitor) override;
53 int udev_monitor_filter_add_match_subsystem_devtype(
54 udev_monitor* udev_monitor,
55 const char* subsystem,
56 const char* devtype) override;
57 int udev_monitor_get_fd(udev_monitor* udev_monitor) override;
58 udev_monitor* udev_monitor_new_from_netlink(udev* udev,
59 const char* name) override;
60 udev_device* udev_monitor_receive_device(udev_monitor* udev_monitor) override;
61 void udev_monitor_unref(udev_monitor* udev_monitor) override;
62 udev* udev_new() override;
63 void udev_set_log_fn(
64 struct udev* udev,
65 void (*log_fn)(struct udev* udev, int priority,
66 const char* file, int line,
67 const char* fn, const char* format,
68 va_list args)) override;
69 void udev_set_log_priority(struct udev* udev, int priority) override;
70 void udev_unref(udev* udev) override;
72 scoped_ptr<LibUdev0Loader> lib_loader_;
74 DISALLOW_COPY_AND_ASSIGN(Udev0Loader);
77 } // namespace device
79 #endif // DEVICE_UDEV_LINUX_UDEV0_LOADER_H_