Index: content/renderer/browser_plugin/browser_plugin_bindings.cc |
diff --git a/content/renderer/browser_plugin/browser_plugin_bindings.cc b/content/renderer/browser_plugin/browser_plugin_bindings.cc |
index d331cf6973f6859685bdbeb42930be790e97700b..4afe3372fcb3bb21369777c4314c88d59e131b25 100644 |
--- a/content/renderer/browser_plugin/browser_plugin_bindings.cc |
+++ b/content/renderer/browser_plugin/browser_plugin_bindings.cc |
@@ -222,22 +222,6 @@ class BrowserPluginMethodBindingImpl : public BrowserPluginMethodBinding { |
DISALLOW_COPY_AND_ASSIGN(BrowserPluginMethodBindingImpl); |
}; |
-class BrowserPluginBindingBack : public BrowserPluginMethodBindingImpl { |
- public: |
- BrowserPluginBindingBack(BrowserPluginImpl* browser_plugin) |
- : BrowserPluginMethodBindingImpl(browser_plugin, |
- browser_plugin::kMethodBack, 0) { |
- } |
- |
- virtual bool Invoke(const NPVariant* args, NPVariant* result) OVERRIDE { |
- browser_plugin()->Back(); |
- return true; |
- } |
- |
- private: |
- DISALLOW_COPY_AND_ASSIGN(BrowserPluginBindingBack); |
-}; |
- |
class BrowserPluginBindingCanGoBack : public BrowserPluginMethodBindingImpl { |
public: |
BrowserPluginBindingCanGoBack(BrowserPluginImpl* browser_plugin) |
@@ -270,22 +254,6 @@ class BrowserPluginBindingCanGoForward : public BrowserPluginMethodBindingImpl { |
DISALLOW_COPY_AND_ASSIGN(BrowserPluginBindingCanGoForward); |
}; |
-class BrowserPluginBindingForward : public BrowserPluginMethodBindingImpl { |
- public: |
- BrowserPluginBindingForward(BrowserPluginImpl* browser_plugin) |
- : BrowserPluginMethodBindingImpl(browser_plugin, |
- browser_plugin::kMethodForward, 0) { |
- } |
- |
- virtual bool Invoke(const NPVariant* args, NPVariant* result) OVERRIDE { |
- browser_plugin()->Forward(); |
- return true; |
- } |
- |
- private: |
- DISALLOW_COPY_AND_ASSIGN(BrowserPluginBindingForward); |
-}; |
- |
// Note: This is a method that is used internally by the <webview> shim only. |
// This should not be exposed to developers. |
class BrowserPluginBindingGetRouteID : public BrowserPluginMethodBindingImpl { |
@@ -321,22 +289,6 @@ class BrowserPluginBindingGetProcessID : |
DISALLOW_COPY_AND_ASSIGN(BrowserPluginBindingGetProcessID); |
}; |
-class BrowserPluginBindingGo : public BrowserPluginMethodBindingImpl { |
- public: |
- BrowserPluginBindingGo(BrowserPluginImpl* browser_plugin) |
- : BrowserPluginMethodBindingImpl(browser_plugin, |
- browser_plugin::kMethodGo, 1) { |
- } |
- |
- virtual bool Invoke(const NPVariant* args, NPVariant* result) OVERRIDE { |
- browser_plugin()->Go(Int32FromNPVariant(args[0])); |
- return true; |
- } |
- |
- private: |
- DISALLOW_COPY_AND_ASSIGN(BrowserPluginBindingGo); |
-}; |
- |
// Note: This is a method that is used internally by the <webview> shim only. |
// This should not be exposed to developers. |
class BrowserPluginBindingPersistRequestObject |
@@ -780,13 +732,10 @@ BrowserPluginBindings::BrowserPluginBindings(BrowserPluginImpl* instance) |
np_object_ = static_cast<BrowserPluginBindings::BrowserPluginNPObject*>(obj); |
np_object_->message_channel = weak_ptr_factory_.GetWeakPtr(); |
- method_bindings_.push_back(new BrowserPluginBindingBack(instance)); |
method_bindings_.push_back(new BrowserPluginBindingCanGoBack(instance)); |
method_bindings_.push_back(new BrowserPluginBindingCanGoForward(instance)); |
- method_bindings_.push_back(new BrowserPluginBindingForward(instance)); |
method_bindings_.push_back(new BrowserPluginBindingGetProcessID(instance)); |
method_bindings_.push_back(new BrowserPluginBindingGetRouteID(instance)); |
- method_bindings_.push_back(new BrowserPluginBindingGo(instance)); |
method_bindings_.push_back( |
new BrowserPluginBindingPersistRequestObject(instance)); |
method_bindings_.push_back(new BrowserPluginBindingReload(instance)); |