| 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_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_ | 5 #ifndef CONTENT_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_ |
| 6 #define CONTENT_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_ | 6 #define CONTENT_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 12 #include "content/child/npapi/npobject_stub.h" | 12 #include "content/child/npapi/npobject_stub.h" |
| 13 #include "ipc/ipc_listener.h" | 13 #include "ipc/ipc_listener.h" |
| 14 #include "ipc/ipc_sender.h" | 14 #include "ipc/ipc_sender.h" |
| 15 #include "third_party/npapi/bindings/npapi.h" | 15 #include "third_party/npapi/bindings/npapi.h" |
| 16 #include "ui/gfx/native_widget_types.h" | 16 #include "ui/gfx/native_widget_types.h" |
| 17 #include "ui/gfx/rect.h" | 17 #include "ui/gfx/rect.h" |
| 18 #include "url/gurl.h" | 18 #include "url/gurl.h" |
| 19 | 19 |
| 20 struct PluginMsg_Init_Params; | 20 struct PluginMsg_Init_Params; |
| 21 struct PluginMsg_DidReceiveResponseParams; | 21 struct PluginMsg_DidReceiveResponseParams; |
| 22 struct PluginMsg_FetchURL_Params; | 22 struct PluginMsg_FetchURL_Params; |
| 23 struct PluginMsg_UpdateGeometry_Param; | 23 struct PluginMsg_UpdateGeometry_Param; |
| 24 class WebCursor; | 24 class WebCursor; |
| 25 | 25 |
| 26 namespace WebKit { | 26 namespace blink { |
| 27 class WebInputEvent; | 27 class WebInputEvent; |
| 28 } | 28 } |
| 29 | 29 |
| 30 namespace content { | 30 namespace content { |
| 31 class PluginChannel; | 31 class PluginChannel; |
| 32 class WebPluginDelegateImpl; | 32 class WebPluginDelegateImpl; |
| 33 class WebPluginProxy; | 33 class WebPluginProxy; |
| 34 | 34 |
| 35 // Converts the IPC messages from WebPluginDelegateProxy into calls to the | 35 // Converts the IPC messages from WebPluginDelegateProxy into calls to the |
| 36 // actual WebPluginDelegateImpl object. | 36 // actual WebPluginDelegateImpl object. |
| (...skipping 25 matching lines...) Expand all Loading... |
| 62 bool* transparent, | 62 bool* transparent, |
| 63 bool* result); | 63 bool* result); |
| 64 void OnWillSendRequest(int id, const GURL& url, int http_status_code); | 64 void OnWillSendRequest(int id, const GURL& url, int http_status_code); |
| 65 void OnDidReceiveResponse(const PluginMsg_DidReceiveResponseParams& params); | 65 void OnDidReceiveResponse(const PluginMsg_DidReceiveResponseParams& params); |
| 66 void OnDidReceiveData(int id, const std::vector<char>& buffer, | 66 void OnDidReceiveData(int id, const std::vector<char>& buffer, |
| 67 int data_offset); | 67 int data_offset); |
| 68 void OnDidFinishLoading(int id); | 68 void OnDidFinishLoading(int id); |
| 69 void OnDidFail(int id); | 69 void OnDidFail(int id); |
| 70 void OnDidFinishLoadWithReason(const GURL& url, int reason, int notify_id); | 70 void OnDidFinishLoadWithReason(const GURL& url, int reason, int notify_id); |
| 71 void OnSetFocus(bool focused); | 71 void OnSetFocus(bool focused); |
| 72 void OnHandleInputEvent(const WebKit::WebInputEvent* event, | 72 void OnHandleInputEvent(const blink::WebInputEvent* event, |
| 73 bool* handled, WebCursor* cursor); | 73 bool* handled, WebCursor* cursor); |
| 74 void OnPaint(const gfx::Rect& damaged_rect); | 74 void OnPaint(const gfx::Rect& damaged_rect); |
| 75 void OnDidPaint(); | 75 void OnDidPaint(); |
| 76 void OnUpdateGeometry(const PluginMsg_UpdateGeometry_Param& param); | 76 void OnUpdateGeometry(const PluginMsg_UpdateGeometry_Param& param); |
| 77 void OnGetPluginScriptableObject(int* route_id); | 77 void OnGetPluginScriptableObject(int* route_id); |
| 78 void OnSendJavaScriptStream(const GURL& url, | 78 void OnSendJavaScriptStream(const GURL& url, |
| 79 const std::string& result, | 79 const std::string& result, |
| 80 bool success, | 80 bool success, |
| 81 int notify_id); | 81 int notify_id); |
| 82 void OnGetFormValue(string16* value, bool* success); | 82 void OnGetFormValue(string16* value, bool* success); |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 | 123 |
| 124 // The url of the main frame hosting the plugin. | 124 // The url of the main frame hosting the plugin. |
| 125 GURL page_url_; | 125 GURL page_url_; |
| 126 | 126 |
| 127 DISALLOW_IMPLICIT_CONSTRUCTORS(WebPluginDelegateStub); | 127 DISALLOW_IMPLICIT_CONSTRUCTORS(WebPluginDelegateStub); |
| 128 }; | 128 }; |
| 129 | 129 |
| 130 } // namespace content | 130 } // namespace content |
| 131 | 131 |
| 132 #endif // CONTENT_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_ | 132 #endif // CONTENT_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_ |
| OLD | NEW |