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

Unified Diff: ppapi/cpp/instance.cc

Issue 7362012: Remove untrusted scripting support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merged Created 9 years, 5 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/cpp/instance.h ('k') | ppapi/cpp/module.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/instance.cc
diff --git a/ppapi/cpp/instance.cc b/ppapi/cpp/instance.cc
index ea1e6d5b98819330cf34ae206e5ac27589399dca..5cf4e358045473ec177237b104096dea15d30d0e 100644
--- a/ppapi/cpp/instance.cc
+++ b/ppapi/cpp/instance.cc
@@ -78,37 +78,6 @@ void Instance::HandleMessage(const Var& /*message*/) {
return;
}
-#ifndef PPAPI_INSTANCE_REMOVE_SCRIPTING
-Var Instance::GetWindowObject() {
- if (!has_interface<PPB_Instance>())
- return Var();
- return Var(Var::PassRef(),
- get_interface<PPB_Instance>()->GetWindowObject(pp_instance()));
-}
-
-Var Instance::GetOwnerElementObject() {
- if (!has_interface<PPB_Instance>())
- return Var();
- return Var(Var::PassRef(),
- get_interface<PPB_Instance>()->GetOwnerElementObject(
- pp_instance()));
-}
-
-Var Instance::ExecuteScript(const Var& script, Var* exception) {
- if (!has_interface<PPB_Instance>())
- return Var();
- return Var(Var::PassRef(),
- get_interface<PPB_Instance>()->ExecuteScript(
- pp_instance(),
- script.pp_var(),
- Var::OutException(exception).get()));
-}
-
-Var Instance::GetInstanceObject() {
- return Var();
-}
-#endif
-
bool Instance::BindGraphics(const Graphics2D& graphics) {
if (!has_interface<PPB_Instance>())
return false;
« no previous file with comments | « ppapi/cpp/instance.h ('k') | ppapi/cpp/module.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698