Pepper_37_C++_interfaces
sef_client_samsung.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015 Samsung Electronics, Visual Display Division.
3  * All Rights Reserved.
4  *
5  * @author Pawel Panek <p.panek@samsung.com>
6  *
7  * Use of this source code is governed by a BSD-style license that can be
8  * found in the Chromium-LICENSE file.
9  */
10 
11 #ifndef PPAPI_CPP_SAMSUNG_SEF_CLIENT_SAMSUNG_H_
12 #define PPAPI_CPP_SAMSUNG_SEF_CLIENT_SAMSUNG_H_
13 
14 #include "ppapi/c/samsung/ppb_sef_client_samsung.h"
15 #include "ppapi/cpp/completion_callback.h"
16 #include "ppapi/cpp/resource.h"
17 
18 namespace pp {
19 
20 class InstanceHandle;
21 
22 class SefClientSamsung : public Resource {
23 public:
24  explicit SefClientSamsung(const InstanceHandle& instance,
25  PPB_SefClient_Samsung_Callback callback,
26  void* user_data);
27 
28  static bool IsAvailable();
29 
30  int32_t Open(const char* name,
31  const char* version,
32  const char* credential,
33  const CompletionCallback& cc);
34 
35  int32_t Execute(const std::vector<Var>& params,
37 };
38 
39 } // namespace pp
40 
41 #endif // PPAPI_CPP_SAMSUNG_SEF_CLIENT_SAMSUNG_H_
static bool IsAvailable()
SefClientSamsung(const InstanceHandle &instance, PPB_SefClient_Samsung_Callback callback, void *user_data)
int32_t Execute(const std::vector< Var > &params, const CompletionCallbackWithOutput< Var > &cc)
int32_t Open(const char *name, const char *version, const char *credential, const CompletionCallback &cc)
A reference counted module resource.
Definition: resource.h:20