Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1262)

Unified Diff: ppapi/cpp/private/instance_private.h

Issue 6871040: Rename Instance_Trusted to Instance_Private, wire it up in Chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix up based on review comments. Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/c/trusted/ppp_instance_trusted.h ('k') | ppapi/cpp/private/instance_private.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/private/instance_private.h
diff --git a/ppapi/cpp/private/instance_private.h b/ppapi/cpp/private/instance_private.h
new file mode 100644
index 0000000000000000000000000000000000000000..226494c40c00ae9aa37d91238e9f90dab4209791
--- /dev/null
+++ b/ppapi/cpp/private/instance_private.h
@@ -0,0 +1,60 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef PPAPI_CPP_PRIVATE_INSTANCE_PRIVATE_H_
+#define PPAPI_CPP_PRIVATE_INSTANCE_PRIVATE_H_
+
+/**
+ * @file
+ * Defines the API ...
+ *
+ * @addtogroup CPP
+ * @{
+ */
+
+#include "ppapi/cpp/instance.h"
+
+/** The C++ interface to the Pepper API. */
+namespace pp {
+
+class VarPrivate;
+
+class InstancePrivate : public Instance {
+ public:
+ explicit InstancePrivate(PP_Instance instance);
+ virtual ~InstancePrivate();
+
+ // @{
+ /// @name PPP_Instance_Private methods for the plugin to override:
+
+ /// See PPP_Instance_Private.GetInstanceObject.
+ // TODO(dmichael): Put this virtual function here and remove the
+ // 'Var GetInstanceObject()' version from pp::Instance.
+ //virtual VarPrivate GetInstanceObject();
+
+ // @}
+
+ // @{
+ /// @name PPB_Instance_Private methods for querying the browser:
+
+ /// See PPB_Instance_Private.GetWindowObject.
+ VarPrivate GetWindowObject();
+
+ /// See PPB_Instance_Private.GetOwnerElementObject.
+ VarPrivate GetOwnerElementObject();
+
+ /// See PPB_Instance.ExecuteScript.
+ VarPrivate ExecuteScript(const VarPrivate& script,
+ VarPrivate* exception = NULL);
+
+ // @}
+};
+
+} // namespace pp
+
+/**
+ * @}
+ * End addtogroup CPP
+ */
+#endif // PPAPI_CPP_PRIVATE_INSTANCE_PRIVATE_H_
« no previous file with comments | « ppapi/c/trusted/ppp_instance_trusted.h ('k') | ppapi/cpp/private/instance_private.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698