Pepper_56_C++_interfaces
Pepper_56_C++_interfaces
 All Classes Namespaces Files Functions Typedefs Enumerations Macros Groups
instance_handle.h
Go to the documentation of this file.
1 // Copyright (c) 2012 The Chromium Authors. 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_INSTANCE_HANDLE_H_
6 #define PPAPI_CPP_INSTANCE_HANDLE_H_
7 
8 #include "ppapi/c/pp_instance.h"
9 
10 
14 namespace pp {
15 
16 class Instance;
17 
45  public:
51  InstanceHandle(Instance* instance);
52 
61  explicit InstanceHandle(PP_Instance pp_instance)
62  : pp_instance_(pp_instance) {}
63 
67  PP_Instance pp_instance() const { return pp_instance_; }
68 
69  private:
70  PP_Instance pp_instance_;
71 };
72 
73 } // namespace pp
74 
75 #endif // PPAPI_CPP_INSTANCE_HANDLE_H_
Definition: instance_handle.h:44
InstanceHandle(Instance *instance)
InstanceHandle(PP_Instance pp_instance)
Definition: instance_handle.h:61
PP_Instance pp_instance() const
Definition: instance_handle.h:67
Definition: instance.h:42