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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 | 60 |
61 void OnPaint(const gfx::Rect& damaged_rect); | 61 void OnPaint(const gfx::Rect& damaged_rect); |
62 void OnDidPaint(); | 62 void OnDidPaint(); |
63 | 63 |
64 void OnPrint(PluginMsg_PrintResponse_Params* params); | 64 void OnPrint(PluginMsg_PrintResponse_Params* params); |
65 | 65 |
66 void OnUpdateGeometry(const gfx::Rect& window_rect, | 66 void OnUpdateGeometry(const gfx::Rect& window_rect, |
67 const gfx::Rect& clip_rect, | 67 const gfx::Rect& clip_rect, |
68 const std::vector<gfx::Rect>& cutout_rects, | 68 const std::vector<gfx::Rect>& cutout_rects, |
69 bool visible, | 69 bool visible, |
70 const SharedMemoryHandle& windowless_buffer, | 70 const base::SharedMemoryHandle& windowless_buffer, |
71 const SharedMemoryHandle& background_buffer); | 71 const base::SharedMemoryHandle& background_buffer); |
72 void OnGetPluginScriptableObject(int* route_id, void** npobject_ptr); | 72 void OnGetPluginScriptableObject(int* route_id, void** npobject_ptr); |
73 void OnSendJavaScriptStream(const std::string& url, | 73 void OnSendJavaScriptStream(const std::string& url, |
74 const std::wstring& result, | 74 const std::wstring& result, |
75 bool success, bool notify_needed, | 75 bool success, bool notify_needed, |
76 int notify_data); | 76 int notify_data); |
77 | 77 |
78 void OnDidReceiveManualResponse( | 78 void OnDidReceiveManualResponse( |
79 const std::string& url, | 79 const std::string& url, |
80 const PluginMsg_DidReceiveResponseParams& params); | 80 const PluginMsg_DidReceiveResponseParams& params); |
81 void OnDidReceiveManualData(const std::vector<char>& buffer); | 81 void OnDidReceiveManualData(const std::vector<char>& buffer); |
82 void OnDidFinishManualLoading(); | 82 void OnDidFinishManualLoading(); |
83 void OnDidManualLoadFail(); | 83 void OnDidManualLoadFail(); |
84 void OnInstallMissingPlugin(); | 84 void OnInstallMissingPlugin(); |
85 | 85 |
86 void OnHandleURLRequestReply( | 86 void OnHandleURLRequestReply( |
87 const PluginMsg_URLRequestReply_Params& params); | 87 const PluginMsg_URLRequestReply_Params& params); |
88 | 88 |
89 void OnURLRequestRouted(const std::string& url, bool notify_needed, | 89 void OnURLRequestRouted(const std::string& url, bool notify_needed, |
90 HANDLE notify_data); | 90 HANDLE notify_data); |
91 | 91 |
92 void CreateSharedBuffer(size_t size, | 92 void CreateSharedBuffer(size_t size, |
93 SharedMemory* shared_buf, | 93 base::SharedMemory* shared_buf, |
94 SharedMemoryHandle* remote_handle); | 94 base::SharedMemoryHandle* remote_handle); |
95 | 95 |
96 int instance_id_; | 96 int instance_id_; |
97 std::string mime_type_; | 97 std::string mime_type_; |
98 | 98 |
99 scoped_refptr<PluginChannel> channel_; | 99 scoped_refptr<PluginChannel> channel_; |
100 | 100 |
101 WebPluginDelegateImpl* delegate_; | 101 WebPluginDelegateImpl* delegate_; |
102 WebPluginProxy* webplugin_; | 102 WebPluginProxy* webplugin_; |
103 | 103 |
104 DISALLOW_EVIL_CONSTRUCTORS(WebPluginDelegateStub); | 104 DISALLOW_EVIL_CONSTRUCTORS(WebPluginDelegateStub); |
105 }; | 105 }; |
106 | 106 |
107 #endif // CHROME_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_ | 107 #endif // CHROME_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_ |
OLD | NEW |