1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
ash / components / arc / video_accelerator / protected_buffer_manager_proxy.h [blame]
// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef ASH_COMPONENTS_ARC_VIDEO_ACCELERATOR_PROTECTED_BUFFER_MANAGER_PROXY_H_
#define ASH_COMPONENTS_ARC_VIDEO_ACCELERATOR_PROTECTED_BUFFER_MANAGER_PROXY_H_
#include "ash/components/arc/mojom/protected_buffer_manager.mojom.h"
namespace arc {
class ProtectedBufferManager;
// Manages mojo IPC translation for arc::ProtectedBufferManager.
class GpuArcProtectedBufferManagerProxy
: public ::arc::mojom::ProtectedBufferManager {
public:
explicit GpuArcProtectedBufferManagerProxy(
scoped_refptr<arc::ProtectedBufferManager> protected_buffer_manager);
GpuArcProtectedBufferManagerProxy(const GpuArcProtectedBufferManagerProxy&) =
delete;
GpuArcProtectedBufferManagerProxy& operator=(
const GpuArcProtectedBufferManagerProxy&) = delete;
~GpuArcProtectedBufferManagerProxy() override;
// arc::mojom::ProtectedBufferManager implementation.
void DeprecatedGetProtectedSharedMemoryFromHandle(
mojo::ScopedHandle dummy_handle,
DeprecatedGetProtectedSharedMemoryFromHandleCallback callback) override;
void GetProtectedSharedMemoryFromHandle(
mojo::ScopedHandle dummy_handle,
GetProtectedSharedMemoryFromHandleCallback callback) override;
void GetProtectedNativePixmapHandleFromHandle(
mojo::ScopedHandle dummy_handle,
GetProtectedNativePixmapHandleFromHandleCallback callback) override;
void IsProtectedNativePixmapHandle(
mojo::ScopedHandle dummy_handle,
IsProtectedNativePixmapHandleCallback callback) override;
private:
scoped_refptr<arc::ProtectedBufferManager> protected_buffer_manager_;
};
} // namespace arc
#endif // ASH_COMPONENTS_ARC_VIDEO_ACCELERATOR_PROTECTED_BUFFER_MANAGER_PROXY_H_