Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(185)

Side by Side Diff: content/child/plugin_messages.h

Issue 1426923007: Remove PluginLoadObserver and related logic, it was only used for NPAPI. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/child/npapi/webplugin_resource_client.h ('k') | content/content_child.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 // Multiply-included message file, hence no include guard. 5 // Multiply-included message file, hence no include guard.
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 #include "content/child/plugin_param_traits.h" 8 #include "content/child/plugin_param_traits.h"
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 #include "content/common/content_param_traits.h" 10 #include "content/common/content_param_traits.h"
(...skipping 16 matching lines...) Expand all
27 27
28 IPC_STRUCT_BEGIN(PluginMsg_Init_Params) 28 IPC_STRUCT_BEGIN(PluginMsg_Init_Params)
29 IPC_STRUCT_MEMBER(GURL, url) 29 IPC_STRUCT_MEMBER(GURL, url)
30 IPC_STRUCT_MEMBER(GURL, page_url) 30 IPC_STRUCT_MEMBER(GURL, page_url)
31 IPC_STRUCT_MEMBER(std::vector<std::string>, arg_names) 31 IPC_STRUCT_MEMBER(std::vector<std::string>, arg_names)
32 IPC_STRUCT_MEMBER(std::vector<std::string>, arg_values) 32 IPC_STRUCT_MEMBER(std::vector<std::string>, arg_values)
33 IPC_STRUCT_MEMBER(bool, load_manually) 33 IPC_STRUCT_MEMBER(bool, load_manually)
34 IPC_STRUCT_MEMBER(int, host_render_view_routing_id) 34 IPC_STRUCT_MEMBER(int, host_render_view_routing_id)
35 IPC_STRUCT_END() 35 IPC_STRUCT_END()
36 36
37 IPC_STRUCT_BEGIN(PluginHostMsg_URLRequest_Params)
38 IPC_STRUCT_MEMBER(std::string, url)
39 IPC_STRUCT_MEMBER(std::string, method)
40 IPC_STRUCT_MEMBER(std::string, target)
41 IPC_STRUCT_MEMBER(std::vector<char>, buffer)
42 IPC_STRUCT_MEMBER(int, notify_id)
43 IPC_STRUCT_MEMBER(bool, popups_allowed)
44 IPC_STRUCT_MEMBER(bool, notify_redirects)
45 IPC_STRUCT_END()
46
47 IPC_STRUCT_BEGIN(PluginMsg_DidReceiveResponseParams) 37 IPC_STRUCT_BEGIN(PluginMsg_DidReceiveResponseParams)
48 IPC_STRUCT_MEMBER(unsigned long, id) 38 IPC_STRUCT_MEMBER(unsigned long, id)
49 IPC_STRUCT_MEMBER(std::string, mime_type) 39 IPC_STRUCT_MEMBER(std::string, mime_type)
50 IPC_STRUCT_MEMBER(std::string, headers) 40 IPC_STRUCT_MEMBER(std::string, headers)
51 IPC_STRUCT_MEMBER(uint32, expected_length) 41 IPC_STRUCT_MEMBER(uint32, expected_length)
52 IPC_STRUCT_MEMBER(uint32, last_modified) 42 IPC_STRUCT_MEMBER(uint32, last_modified)
53 IPC_STRUCT_MEMBER(bool, request_is_seekable) 43 IPC_STRUCT_MEMBER(bool, request_is_seekable)
54 IPC_STRUCT_END() 44 IPC_STRUCT_END()
55 45
56 IPC_STRUCT_BEGIN(PluginMsg_FetchURL_Params) 46 IPC_STRUCT_BEGIN(PluginMsg_FetchURL_Params)
57 IPC_STRUCT_MEMBER(unsigned long, resource_id) 47 IPC_STRUCT_MEMBER(unsigned long, resource_id)
58 IPC_STRUCT_MEMBER(int, notify_id)
59 IPC_STRUCT_MEMBER(GURL, url) 48 IPC_STRUCT_MEMBER(GURL, url)
60 IPC_STRUCT_MEMBER(GURL, first_party_for_cookies) 49 IPC_STRUCT_MEMBER(GURL, first_party_for_cookies)
61 IPC_STRUCT_MEMBER(std::string, method) 50 IPC_STRUCT_MEMBER(std::string, method)
62 IPC_STRUCT_MEMBER(std::vector<char>, post_data) 51 IPC_STRUCT_MEMBER(std::vector<char>, post_data)
63 IPC_STRUCT_MEMBER(GURL, referrer) 52 IPC_STRUCT_MEMBER(GURL, referrer)
64 IPC_STRUCT_MEMBER(blink::WebReferrerPolicy, referrer_policy) 53 IPC_STRUCT_MEMBER(blink::WebReferrerPolicy, referrer_policy)
65 IPC_STRUCT_MEMBER(bool, notify_redirect) 54 IPC_STRUCT_MEMBER(bool, notify_redirect)
66 IPC_STRUCT_MEMBER(bool, is_plugin_src_load) 55 IPC_STRUCT_MEMBER(bool, is_plugin_src_load)
67 IPC_STRUCT_MEMBER(int, render_frame_id) 56 IPC_STRUCT_MEMBER(int, render_frame_id)
68 IPC_STRUCT_END() 57 IPC_STRUCT_END()
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 IPC_MESSAGE_ROUTED0(PluginMsg_DidPaint) 98 IPC_MESSAGE_ROUTED0(PluginMsg_DidPaint)
110 99
111 IPC_SYNC_MESSAGE_ROUTED0_1(PluginMsg_GetPluginScriptableObject, 100 IPC_SYNC_MESSAGE_ROUTED0_1(PluginMsg_GetPluginScriptableObject,
112 int /* route_id */) 101 int /* route_id */)
113 102
114 // Gets the form value of the plugin instance synchronously. 103 // Gets the form value of the plugin instance synchronously.
115 IPC_SYNC_MESSAGE_ROUTED0_2(PluginMsg_GetFormValue, 104 IPC_SYNC_MESSAGE_ROUTED0_2(PluginMsg_GetFormValue,
116 base::string16 /* value */, 105 base::string16 /* value */,
117 bool /* success */) 106 bool /* success */)
118 107
119 IPC_MESSAGE_ROUTED3(PluginMsg_DidFinishLoadWithReason,
120 GURL /* url */,
121 int /* reason */,
122 int /* notify_id */)
123
124 // Updates the plugin location. 108 // Updates the plugin location.
125 IPC_MESSAGE_ROUTED1(PluginMsg_UpdateGeometry, 109 IPC_MESSAGE_ROUTED1(PluginMsg_UpdateGeometry,
126 PluginMsg_UpdateGeometry_Param) 110 PluginMsg_UpdateGeometry_Param)
127 111
128 // A synchronous version of above. 112 // A synchronous version of above.
129 IPC_SYNC_MESSAGE_ROUTED1_0(PluginMsg_UpdateGeometrySync, 113 IPC_SYNC_MESSAGE_ROUTED1_0(PluginMsg_UpdateGeometrySync,
130 PluginMsg_UpdateGeometry_Param) 114 PluginMsg_UpdateGeometry_Param)
131 115
132 IPC_SYNC_MESSAGE_ROUTED1_0(PluginMsg_SetFocus, 116 IPC_SYNC_MESSAGE_ROUTED1_0(PluginMsg_SetFocus,
133 bool /* focused */) 117 bool /* focused */)
(...skipping 18 matching lines...) Expand all
152 unsigned long /* id */, 136 unsigned long /* id */,
153 std::vector<char> /* buffer */, 137 std::vector<char> /* buffer */,
154 int /* data_offset */) 138 int /* data_offset */)
155 139
156 IPC_MESSAGE_ROUTED1(PluginMsg_DidFinishLoading, 140 IPC_MESSAGE_ROUTED1(PluginMsg_DidFinishLoading,
157 unsigned long /* id */) 141 unsigned long /* id */)
158 142
159 IPC_MESSAGE_ROUTED1(PluginMsg_DidFail, 143 IPC_MESSAGE_ROUTED1(PluginMsg_DidFail,
160 unsigned long /* id */) 144 unsigned long /* id */)
161 145
162 IPC_MESSAGE_ROUTED4(PluginMsg_SendJavaScriptStream,
163 GURL /* url */,
164 std::string /* result */,
165 bool /* success */,
166 int /* notify_id */)
167
168 IPC_MESSAGE_ROUTED2(PluginMsg_DidReceiveManualResponse,
169 GURL /* url */,
170 PluginMsg_DidReceiveResponseParams)
171
172 IPC_MESSAGE_ROUTED1(PluginMsg_DidReceiveManualData,
173 std::vector<char> /* buffer */)
174
175 IPC_MESSAGE_ROUTED0(PluginMsg_DidFinishManualLoading)
176
177 IPC_MESSAGE_ROUTED0(PluginMsg_DidManualLoadFail)
178
179 IPC_MESSAGE_ROUTED3(PluginMsg_HandleURLRequestReply,
180 unsigned long /* resource_id */,
181 GURL /* url */,
182 int /* notify_id */)
183
184 IPC_MESSAGE_ROUTED2(PluginMsg_HTTPRangeRequestReply,
185 unsigned long /* resource_id */,
186 int /* range_request_id */)
187
188 IPC_MESSAGE_CONTROL1(PluginMsg_SignalModalDialogEvent, 146 IPC_MESSAGE_CONTROL1(PluginMsg_SignalModalDialogEvent,
189 int /* render_view_id */) 147 int /* render_view_id */)
190 148
191 IPC_MESSAGE_CONTROL1(PluginMsg_ResetModalDialogEvent, 149 IPC_MESSAGE_CONTROL1(PluginMsg_ResetModalDialogEvent,
192 int /* render_view_id */) 150 int /* render_view_id */)
193 151
194 IPC_MESSAGE_ROUTED1(PluginMsg_FetchURL,
195 PluginMsg_FetchURL_Params)
196
197 IPC_MESSAGE_CONTROL1(PluginHostMsg_DidAbortLoading,
198 int /* render_view_id */)
199
200 #if defined(OS_WIN) 152 #if defined(OS_WIN)
201 IPC_MESSAGE_ROUTED4(PluginMsg_ImeCompositionUpdated, 153 IPC_MESSAGE_ROUTED4(PluginMsg_ImeCompositionUpdated,
202 base::string16 /* text */, 154 base::string16 /* text */,
203 std::vector<int> /* clauses */, 155 std::vector<int> /* clauses */,
204 std::vector<int>, /* target */ 156 std::vector<int>, /* target */
205 int /* cursor_position */) 157 int /* cursor_position */)
206 158
207 IPC_MESSAGE_ROUTED1(PluginMsg_ImeCompositionCompleted, 159 IPC_MESSAGE_ROUTED1(PluginMsg_ImeCompositionCompleted,
208 base::string16 /* text */) 160 base::string16 /* text */)
209 #endif 161 #endif
(...skipping 20 matching lines...) Expand all
230 //----------------------------------------------------------------------------- 182 //-----------------------------------------------------------------------------
231 // PluginHost messages 183 // PluginHost messages
232 // These are messages sent from the plugin process to the renderer process. 184 // These are messages sent from the plugin process to the renderer process.
233 // They all map to the corresponding WebPlugin methods. 185 // They all map to the corresponding WebPlugin methods.
234 // Sends the plugin window information to the renderer. 186 // Sends the plugin window information to the renderer.
235 // The window parameter is a handle to the window if the plugin is a windowed 187 // The window parameter is a handle to the window if the plugin is a windowed
236 // plugin. It is NULL for windowless plugins. 188 // plugin. It is NULL for windowless plugins.
237 IPC_SYNC_MESSAGE_ROUTED1_0(PluginHostMsg_SetWindow, 189 IPC_SYNC_MESSAGE_ROUTED1_0(PluginHostMsg_SetWindow,
238 gfx::PluginWindowHandle /* window */) 190 gfx::PluginWindowHandle /* window */)
239 191
240 IPC_MESSAGE_ROUTED1(PluginHostMsg_URLRequest,
241 PluginHostMsg_URLRequest_Params)
242
243 IPC_MESSAGE_ROUTED1(PluginHostMsg_CancelResource, 192 IPC_MESSAGE_ROUTED1(PluginHostMsg_CancelResource,
244 int /* id */) 193 int /* id */)
245 194
246 IPC_MESSAGE_ROUTED1(PluginHostMsg_InvalidateRect, 195 IPC_MESSAGE_ROUTED1(PluginHostMsg_InvalidateRect,
247 gfx::Rect /* rect */) 196 gfx::Rect /* rect */)
248 197
249 IPC_SYNC_MESSAGE_ROUTED1_1(PluginHostMsg_GetWindowScriptNPObject, 198 IPC_SYNC_MESSAGE_ROUTED1_1(PluginHostMsg_GetWindowScriptNPObject,
250 int /* route id */, 199 int /* route id */,
251 bool /* success */) 200 bool /* success */)
252 201
(...skipping 11 matching lines...) Expand all
264 GURL /* first_party_for_cookies */, 213 GURL /* first_party_for_cookies */,
265 std::string /* cookie */) 214 std::string /* cookie */)
266 215
267 IPC_SYNC_MESSAGE_ROUTED2_1(PluginHostMsg_GetCookies, 216 IPC_SYNC_MESSAGE_ROUTED2_1(PluginHostMsg_GetCookies,
268 GURL /* url */, 217 GURL /* url */,
269 GURL /* first_party_for_cookies */, 218 GURL /* first_party_for_cookies */,
270 std::string /* cookies */) 219 std::string /* cookies */)
271 220
272 IPC_MESSAGE_ROUTED0(PluginHostMsg_CancelDocumentLoad) 221 IPC_MESSAGE_ROUTED0(PluginHostMsg_CancelDocumentLoad)
273 222
274 IPC_MESSAGE_ROUTED3(PluginHostMsg_InitiateHTTPRangeRequest,
275 std::string /* url */,
276 std::string /* range_info */,
277 int /* range_request_id */)
278
279 IPC_MESSAGE_ROUTED0(PluginHostMsg_DidStartLoading) 223 IPC_MESSAGE_ROUTED0(PluginHostMsg_DidStartLoading)
280 IPC_MESSAGE_ROUTED0(PluginHostMsg_DidStopLoading) 224 IPC_MESSAGE_ROUTED0(PluginHostMsg_DidStopLoading)
281 225
282 IPC_MESSAGE_ROUTED2(PluginHostMsg_DeferResourceLoading, 226 IPC_MESSAGE_ROUTED2(PluginHostMsg_DeferResourceLoading,
283 unsigned long /* resource_id */, 227 unsigned long /* resource_id */,
284 bool /* defer */) 228 bool /* defer */)
285 229
286 IPC_SYNC_MESSAGE_CONTROL1_0(PluginHostMsg_SetException, 230 IPC_SYNC_MESSAGE_CONTROL1_0(PluginHostMsg_SetException,
287 std::string /* message */) 231 std::string /* message */)
288 232
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 IPC_SYNC_MESSAGE_ROUTED1_2(NPObjectMsg_Construct, 335 IPC_SYNC_MESSAGE_ROUTED1_2(NPObjectMsg_Construct,
392 std::vector<content::NPVariant_Param> /* args */, 336 std::vector<content::NPVariant_Param> /* args */,
393 content::NPVariant_Param /* result_param */, 337 content::NPVariant_Param /* result_param */,
394 bool /* result */) 338 bool /* result */)
395 339
396 IPC_SYNC_MESSAGE_ROUTED2_2(NPObjectMsg_Evaluate, 340 IPC_SYNC_MESSAGE_ROUTED2_2(NPObjectMsg_Evaluate,
397 std::string /* script */, 341 std::string /* script */,
398 bool /* popups_allowed */, 342 bool /* popups_allowed */,
399 content::NPVariant_Param /* result_param */, 343 content::NPVariant_Param /* result_param */,
400 bool /* result */) 344 bool /* result */)
OLDNEW
« no previous file with comments | « content/child/npapi/webplugin_resource_client.h ('k') | content/content_child.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698