| Index: ui/ozone/platform/drm/host/drm_device_handle.h
|
| diff --git a/ui/ozone/platform/drm/host/drm_device_handle.h b/ui/ozone/platform/drm/host/drm_device_handle.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..4bb0237ab2e24ea2193710d3e990118e235eaf14
|
| --- /dev/null
|
| +++ b/ui/ozone/platform/drm/host/drm_device_handle.h
|
| @@ -0,0 +1,31 @@
|
| +// Copyright 2015 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef UI_OZONE_PLATFORM_DRM_HOST_DRM_DEVICE_HANDLE_H_
|
| +#define UI_OZONE_PLATFORM_DRM_HOST_DRM_DEVICE_HANDLE_H_
|
| +
|
| +#include "base/files/file.h"
|
| +
|
| +namespace ui {
|
| +
|
| +class DrmDeviceHandle {
|
| + public:
|
| + DrmDeviceHandle();
|
| + ~DrmDeviceHandle();
|
| +
|
| + bool Initialize(const base::FilePath& path);
|
| + void Shutdown();
|
| +
|
| + bool IsValid() const;
|
| + base::File DuplicateFile();
|
| +
|
| + private:
|
| + base::File file_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(DrmDeviceHandle);
|
| +};
|
| +
|
| +} // namespace ui
|
| +
|
| +#endif // UI_OZONE_PLATFORM_DRM_HOST_DRM_DEVICE_HANDLE_H_
|
|
|