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

Unified Diff: content/renderer/npapi/webplugin_delegate_proxy.h

Issue 1483733002: Remove support for NPObjects. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years 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
Index: content/renderer/npapi/webplugin_delegate_proxy.h
diff --git a/content/renderer/npapi/webplugin_delegate_proxy.h b/content/renderer/npapi/webplugin_delegate_proxy.h
index 62fa840618d9eda588da43929db75f2a7d22e6c2..8eaab01919609785264f114b2c11c6aa0570a859 100644
--- a/content/renderer/npapi/webplugin_delegate_proxy.h
+++ b/content/renderer/npapi/webplugin_delegate_proxy.h
@@ -39,7 +39,6 @@ class WaitableEvent;
namespace content {
-class NPObjectStub;
class PluginChannelHost;
class RenderFrameImpl;
class RenderViewImpl;
@@ -68,8 +67,6 @@ class WebPluginDelegateProxy
void UpdateGeometry(const gfx::Rect& window_rect,
const gfx::Rect& clip_rect) override;
void Paint(SkCanvas* canvas, const gfx::Rect& rect) override;
- NPObject* GetPluginScriptableObject() override;
- struct _NPP* GetPluginNPP() override;
bool GetFormValue(base::string16* value) override;
void SetFocus(bool focused) override;
bool HandleInputEvent(const blink::WebInputEvent& event,
@@ -135,9 +132,7 @@ class WebPluginDelegateProxy
void OnHandleURLRequest(const PluginHostMsg_URLRequest_Params& params);
void OnCancelResource(int id);
void OnInvalidateRect(const gfx::Rect& rect);
- void OnGetWindowScriptNPObject(int route_id, bool* success);
void OnResolveProxy(const GURL& url, bool* result, std::string* proxy_list);
- void OnGetPluginElement(int route_id, bool* success);
void OnSetCookie(const GURL& url,
const GURL& first_party_for_cookies,
const std::string& cookie);
@@ -245,11 +240,6 @@ class WebPluginDelegateProxy
gfx::Rect plugin_rect_;
gfx::Rect clip_rect_;
- NPObject* npobject_;
-
- // Dummy NPP used to uniquely identify this plugin.
- scoped_ptr<NPP_t> npp_;
-
// Event passed in by the plugin process and is used to decide if messages
// need to be pumped in the NPP_HandleEvent sync call.
scoped_ptr<base::WaitableEvent> modal_loop_pump_messages_event_;

Powered by Google App Engine
This is Rietveld 408576698