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.
5 #ifndef PPAPI_CPP_PRIVATE_INSTANCE_PRIVATE_H_
6 #define PPAPI_CPP_PRIVATE_INSTANCE_PRIVATE_H_
16 #include "ppapi/c/ppb_console.h"
17 #include "ppapi/cpp/instance.h"
19 /** The C++ interface to the Pepper API. */
25 class InstancePrivate
: public Instance
{
27 explicit InstancePrivate(PP_Instance instance
);
28 virtual ~InstancePrivate();
31 /// @name PPP_Instance_Private methods for the plugin to override:
33 /// See PPP_Instance_Private.GetInstanceObject.
34 virtual Var
GetInstanceObject();
39 /// @name PPB_Instance_Private methods for querying the browser:
41 /// See PPB_Instance_Private.GetWindowObject.
42 VarPrivate
GetWindowObject();
44 /// See PPB_Instance_Private.GetOwnerElementObject.
45 VarPrivate
GetOwnerElementObject();
47 /// See PPB_Instance.ExecuteScript.
48 VarPrivate
ExecuteScript(const Var
& script
, Var
* exception
= NULL
);
59 #endif // PPAPI_CPP_PRIVATE_INSTANCE_PRIVATE_H_