| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 CHROME_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_ | 5 #ifndef CHROME_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_ |
| 6 #define CHROME_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_ | 6 #define CHROME_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_ |
| 7 | 7 |
| 8 #include <queue> | 8 #include <queue> |
| 9 | 9 |
| 10 #include "base/gfx/rect.h" | 10 #include "base/gfx/rect.h" |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 virtual bool Send(IPC::Message* msg); | 45 virtual bool Send(IPC::Message* msg); |
| 46 | 46 |
| 47 int instance_id() { return instance_id_; } | 47 int instance_id() { return instance_id_; } |
| 48 | 48 |
| 49 private: | 49 private: |
| 50 // Message handlers for the WebPluginDelegate calls that are proxied from the | 50 // Message handlers for the WebPluginDelegate calls that are proxied from the |
| 51 // renderer over the IPC channel. | 51 // renderer over the IPC channel. |
| 52 void OnInit(const PluginMsg_Init_Params& params, bool* result); | 52 void OnInit(const PluginMsg_Init_Params& params, bool* result); |
| 53 | 53 |
| 54 void OnWillSendRequest(int id, const GURL& url); | 54 void OnWillSendRequest(int id, const GURL& url); |
| 55 void OnDidReceiveResponse(const PluginMsg_DidReceiveResponseParams& params, | 55 void OnDidReceiveResponse(const PluginMsg_DidReceiveResponseParams& params); |
| 56 bool* cancel); | |
| 57 void OnDidReceiveData(int id, const std::vector<char>& buffer, | 56 void OnDidReceiveData(int id, const std::vector<char>& buffer, |
| 58 int data_offset); | 57 int data_offset); |
| 59 void OnDidFinishLoading(int id); | 58 void OnDidFinishLoading(int id); |
| 60 void OnDidFail(int id); | 59 void OnDidFail(int id); |
| 61 | 60 |
| 62 void OnDidFinishLoadWithReason(int reason); | 61 void OnDidFinishLoadWithReason(int reason); |
| 63 void OnSetFocus(); | 62 void OnSetFocus(); |
| 64 void OnHandleInputEvent(const WebKit::WebInputEvent* event, | 63 void OnHandleInputEvent(const WebKit::WebInputEvent* event, |
| 65 bool* handled, WebCursor* cursor); | 64 bool* handled, WebCursor* cursor); |
| 66 | 65 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 WebPluginDelegate* delegate_; | 104 WebPluginDelegate* delegate_; |
| 106 WebPluginProxy* webplugin_; | 105 WebPluginProxy* webplugin_; |
| 107 | 106 |
| 108 // The url of the main frame hosting the plugin. | 107 // The url of the main frame hosting the plugin. |
| 109 GURL page_url_; | 108 GURL page_url_; |
| 110 | 109 |
| 111 DISALLOW_IMPLICIT_CONSTRUCTORS(WebPluginDelegateStub); | 110 DISALLOW_IMPLICIT_CONSTRUCTORS(WebPluginDelegateStub); |
| 112 }; | 111 }; |
| 113 | 112 |
| 114 #endif // CHROME_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_ | 113 #endif // CHROME_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_ |
| OLD | NEW |