| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_RENDERER_NPAPI_WEBPLUGIN_DELEGATE_PROXY_H_ | 5 #ifndef CONTENT_RENDERER_NPAPI_WEBPLUGIN_DELEGATE_PROXY_H_ |
| 6 #define CONTENT_RENDERER_NPAPI_WEBPLUGIN_DELEGATE_PROXY_H_ | 6 #define CONTENT_RENDERER_NPAPI_WEBPLUGIN_DELEGATE_PROXY_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 bool Initialize(const GURL& url, | 60 bool Initialize(const GURL& url, |
| 61 const std::vector<std::string>& arg_names, | 61 const std::vector<std::string>& arg_names, |
| 62 const std::vector<std::string>& arg_values, | 62 const std::vector<std::string>& arg_values, |
| 63 bool load_manually) override; | 63 bool load_manually) override; |
| 64 void UpdateGeometry(const gfx::Rect& window_rect, | 64 void UpdateGeometry(const gfx::Rect& window_rect, |
| 65 const gfx::Rect& clip_rect) override; | 65 const gfx::Rect& clip_rect) override; |
| 66 void Paint(SkCanvas* canvas, const gfx::Rect& rect) override; | 66 void Paint(SkCanvas* canvas, const gfx::Rect& rect) override; |
| 67 NPObject* GetPluginScriptableObject() override; | 67 NPObject* GetPluginScriptableObject() override; |
| 68 struct _NPP* GetPluginNPP() override; | 68 struct _NPP* GetPluginNPP() override; |
| 69 bool GetFormValue(base::string16* value) override; | 69 bool GetFormValue(base::string16* value) override; |
| 70 void DidFinishLoadWithReason(const GURL& url, | |
| 71 NPReason reason, | |
| 72 int notify_id) override; | |
| 73 void SetFocus(bool focused) override; | 70 void SetFocus(bool focused) override; |
| 74 bool HandleInputEvent(const blink::WebInputEvent& event, | 71 bool HandleInputEvent(const blink::WebInputEvent& event, |
| 75 WebCursor::CursorInfo* cursor) override; | 72 WebCursor::CursorInfo* cursor) override; |
| 76 int GetProcessId() override; | 73 int GetProcessId() override; |
| 77 | 74 |
| 78 // Informs the plugin that its containing content view has gained or lost | 75 // Informs the plugin that its containing content view has gained or lost |
| 79 // first responder status. | 76 // first responder status. |
| 80 virtual void SetContentAreaFocus(bool has_focus); | 77 virtual void SetContentAreaFocus(bool has_focus); |
| 81 #if defined(OS_WIN) | 78 #if defined(OS_WIN) |
| 82 // Informs the plugin that plugin IME has updated its status. | 79 // Informs the plugin that plugin IME has updated its status. |
| (...skipping 21 matching lines...) Expand all Loading... |
| 104 int plugin_id); | 101 int plugin_id); |
| 105 #endif | 102 #endif |
| 106 | 103 |
| 107 // IPC::Listener implementation: | 104 // IPC::Listener implementation: |
| 108 bool OnMessageReceived(const IPC::Message& msg) override; | 105 bool OnMessageReceived(const IPC::Message& msg) override; |
| 109 void OnChannelError() override; | 106 void OnChannelError() override; |
| 110 | 107 |
| 111 // IPC::Sender implementation: | 108 // IPC::Sender implementation: |
| 112 bool Send(IPC::Message* msg) override; | 109 bool Send(IPC::Message* msg) override; |
| 113 | 110 |
| 114 void SendJavaScriptStream(const GURL& url, | |
| 115 const std::string& result, | |
| 116 bool success, | |
| 117 int notify_id) override; | |
| 118 | |
| 119 void DidReceiveManualResponse(const GURL& url, | |
| 120 const std::string& mime_type, | |
| 121 const std::string& headers, | |
| 122 uint32 expected_length, | |
| 123 uint32 last_modified) override; | |
| 124 void DidReceiveManualData(const char* buffer, int length) override; | |
| 125 void DidFinishManualLoading() override; | |
| 126 void DidManualLoadFail() override; | |
| 127 WebPluginResourceClient* CreateResourceClient(unsigned long resource_id, | |
| 128 const GURL& url, | |
| 129 int notify_id) override; | |
| 130 WebPluginResourceClient* CreateSeekableResourceClient( | |
| 131 unsigned long resource_id, | |
| 132 int range_request_id) override; | |
| 133 void FetchURL(unsigned long resource_id, | |
| 134 int notify_id, | |
| 135 const GURL& url, | |
| 136 const GURL& first_party_for_cookies, | |
| 137 const std::string& method, | |
| 138 const char* buf, | |
| 139 unsigned int len, | |
| 140 const Referrer& referrer, | |
| 141 bool notify_redirects, | |
| 142 bool is_plugin_src_load, | |
| 143 int origin_pid, | |
| 144 int render_frame_id, | |
| 145 int render_view_id) override; | |
| 146 | |
| 147 gfx::PluginWindowHandle GetPluginWindowHandle(); | 111 gfx::PluginWindowHandle GetPluginWindowHandle(); |
| 148 | 112 |
| 149 protected: | 113 protected: |
| 150 friend class base::DeleteHelper<WebPluginDelegateProxy>; | 114 friend class base::DeleteHelper<WebPluginDelegateProxy>; |
| 151 ~WebPluginDelegateProxy() override; | 115 ~WebPluginDelegateProxy() override; |
| 152 | 116 |
| 153 private: | 117 private: |
| 154 struct SharedBitmap { | 118 struct SharedBitmap { |
| 155 SharedBitmap(); | 119 SharedBitmap(); |
| 156 ~SharedBitmap(); | 120 ~SharedBitmap(); |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 309 | 273 |
| 310 // The url of the main frame hosting the plugin. | 274 // The url of the main frame hosting the plugin. |
| 311 GURL page_url_; | 275 GURL page_url_; |
| 312 | 276 |
| 313 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateProxy); | 277 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateProxy); |
| 314 }; | 278 }; |
| 315 | 279 |
| 316 } // namespace content | 280 } // namespace content |
| 317 | 281 |
| 318 #endif // CONTENT_RENDERER_NPAPI_WEBPLUGIN_DELEGATE_PROXY_H_ | 282 #endif // CONTENT_RENDERER_NPAPI_WEBPLUGIN_DELEGATE_PROXY_H_ |
| OLD | NEW |