blob: 5ac82bc89b4ba39ceaaf03c4baf06cec75d0d73f (
plain)
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
|
// Copyright (c) 2012 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 PPAPI_CPP_PRIVATE_FLASH_DRM_H_
#define PPAPI_CPP_PRIVATE_FLASH_DRM_H_
#include <stdint.h>
#include "ppapi/cpp/completion_callback.h"
#include "ppapi/cpp/file_ref.h"
#include "ppapi/cpp/resource.h"
namespace pp {
class FileRef;
namespace flash {
class DRM : public Resource {
public:
DRM();
explicit DRM(const InstanceHandle& instance);
// On success, returns a string var.
int32_t GetDeviceID(const CompletionCallbackWithOutput<Var>& callback);
// Outputs the HMONITOR associated with the current plugin instance in
// |hmonitor|. True is returned upon success.
bool GetHmonitor(int64_t* hmonitor);
// Returns the voucher file as a FileRef or an invalid resource on failure.
int32_t GetVoucherFile(const CompletionCallbackWithOutput<FileRef>& callback);
// On success, returns a value indicating if the monitor associated with the
// current plugin instance is external.
int32_t MonitorIsExternal(
const CompletionCallbackWithOutput<PP_Bool>& callback);
};
} // namespace flash
} // namespace pp
#endif // PPAPI_CPP_PRIVATE_FLASH_DRM_H_
|