| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 int instance_id() { return instance_id_; } | 42 int instance_id() { return instance_id_; } |
| 43 | 43 |
| 44 private: | 44 private: |
| 45 // Message handlers for the WebPluginDelegate calls that are proxied from the | 45 // Message handlers for the WebPluginDelegate calls that are proxied from the |
| 46 // renderer over the IPC channel. | 46 // renderer over the IPC channel. |
| 47 void OnInit(const PluginMsg_Init_Params& params, bool* result); | 47 void OnInit(const PluginMsg_Init_Params& params, bool* result); |
| 48 | 48 |
| 49 void OnWillSendRequest(int id, const GURL& url); | 49 void OnWillSendRequest(int id, const GURL& url); |
| 50 void OnDidReceiveResponse(const PluginMsg_DidReceiveResponseParams& params, | 50 void OnDidReceiveResponse(const PluginMsg_DidReceiveResponseParams& params, |
| 51 bool* cancel); | 51 bool* cancel); |
| 52 void OnDidReceiveData(int id, const std::vector<char>& buffer); | 52 void OnDidReceiveData(int id, const std::vector<char>& buffer, |
| 53 int data_offset); |
| 53 void OnDidFinishLoading(int id); | 54 void OnDidFinishLoading(int id); |
| 54 void OnDidFail(int id); | 55 void OnDidFail(int id); |
| 55 | 56 |
| 56 void OnDidFinishLoadWithReason(int reason); | 57 void OnDidFinishLoadWithReason(int reason); |
| 57 void OnSetFocus(); | 58 void OnSetFocus(); |
| 58 void OnHandleEvent(const NPEvent& event, bool* handled, | 59 void OnHandleEvent(const NPEvent& event, bool* handled, |
| 59 WebCursor* cursor); | 60 WebCursor* cursor); |
| 60 | 61 |
| 61 void OnPaint(const PluginMsg_Paint_Params& params); | 62 void OnPaint(const PluginMsg_Paint_Params& params); |
| 62 | 63 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 scoped_refptr<PluginChannel> channel_; | 105 scoped_refptr<PluginChannel> channel_; |
| 105 | 106 |
| 106 WebPluginDelegateImpl* delegate_; | 107 WebPluginDelegateImpl* delegate_; |
| 107 WebPluginProxy* webplugin_; | 108 WebPluginProxy* webplugin_; |
| 108 | 109 |
| 109 DISALLOW_EVIL_CONSTRUCTORS(WebPluginDelegateStub); | 110 DISALLOW_EVIL_CONSTRUCTORS(WebPluginDelegateStub); |
| 110 }; | 111 }; |
| 111 | 112 |
| 112 #endif // CHROME_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H__ | 113 #endif // CHROME_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H__ |
| 113 | 114 |
| OLD | NEW |