Pepper_47_C++_interfaces
extension_system_samsung_wrt.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_WRT_H_
6 #define PPAPI_CPP_SAMSUNG_EXTENSION_SYSTEM_SAMSUNG_WRT_H_
7 
8 #include <map>
9 #include <string>
10 
12 
13 /// @file
14 /// This file defines APIs related to extension system provided by the WRT.
15 
16 namespace pp {
17 
19  public:
20  /// A constructor for creating a <code>ExtensionSystemSamsung</code>.
21  ///
22  /// @param[in] instance The instance with which this resource will be
23  /// associated.
24  explicit ExtensionSystemSamsungWRT(const InstanceHandle& instance);
25 
26  /// Destructor.
28 
29  /// IsValid() returns true if this object is valid in this context, i.e.
30  /// current extension system is WRT.
31  bool IsValid() const;
32 
33  private:
34  std::map<std::string, bool> privileges_result_;
35 };
36 
37 } // namespace pp
38 
39 #endif // PPAPI_CPP_SAMSUNG_EXTENSION_SYSTEM_SAMSUNG_WRT_H_
ExtensionSystemSamsungWRT(const InstanceHandle &instance)