Pepper_47_C++_interfaces
extension_system_samsung.h
Go to the documentation of this file.
1 // Copyright 2016 Samsung Electronics. 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.
4 
5 #ifndef PPAPI_CPP_SAMSUNG_EXTENSION_SYSTEM_SAMSUNG_H_
6 #define PPAPI_CPP_SAMSUNG_EXTENSION_SYSTEM_SAMSUNG_H_
7 
8 #include <string>
9 
11 #include "ppapi/cpp/var.h"
12 
13 /// @file
14 /// This file defines APIs related to extension system provided by the browser.
15 
16 namespace pp {
17 
19  public:
20  /// GetEmbedderName() returns name of the extension system provider.
21  std::string GetEmbedderName() const;
22 
23  /// GetCurrentExtensionInfo() returns information about current extension.
24  /// If browser does not support extension system, it will return undefined
25  /// value.
27 
28  /// GenericSyncCall() communicates synchronously with extension system.
29  /// The extension system will execute operation |operation_name| with provided
30  /// arguments |operation_data|. See embedder documentation to know what
31  /// operations are possible.
32  ///
33  /// @param[in] operation_name The name of operation to execute.
34  /// @param[in] operation_data Additional arguments for operation execution.
35  Var GenericSyncCall(const Var& operation_name, const Var& operation_data);
36 
37  protected:
38  /// A constructor for creating a <code>ExtensionSystemSamsung</code>.
39  ///
40  /// @param[in] instance The instance with which this resource will be
41  /// associated.
42  explicit ExtensionSystemSamsung(const InstanceHandle& instance);
43 
44  /// Destructor.
46 
47  private:
48  InstanceHandle instance_;
49 };
50 
51 } // namespace pp
52 
53 #endif // PPAPI_CPP_SAMSUNG_EXTENSION_SYSTEM_SAMSUNG_H_
std::string GetEmbedderName() const
GetEmbedderName() returns name of the extension system provider.
ExtensionSystemSamsung(const InstanceHandle &instance)
Var GenericSyncCall(const Var &operation_name, const Var &operation_data)
A generic type used for passing data types between the module and the page.
Definition: var.h:21