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

Side by Side Diff: chrome/common/plugin_messages.h

Issue 14122: Handle HTTP 200 responses received in response to byte range requests issued... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/plugin/webplugin_delegate_stub.cc » ('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 (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 // Defines messages between the browser and plugin process, as well as between 5 // Defines messages between the browser and plugin process, as well as between
6 // the renderer and plugin process. 6 // the renderer and plugin process.
7 // 7 //
8 // See render_message* for information about the multi-pass include of headers. 8 // See render_message* for information about the multi-pass include of headers.
9 9
10 #ifndef CHROME_COMMON_PLUGIN_MESSAGES_H__ 10 #ifndef CHROME_COMMON_PLUGIN_MESSAGES_H__
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 HANDLE shared_memory; 62 HANDLE shared_memory;
63 size_t size; 63 size_t size;
64 }; 64 };
65 65
66 struct PluginMsg_DidReceiveResponseParams { 66 struct PluginMsg_DidReceiveResponseParams {
67 int id; 67 int id;
68 std::string mime_type; 68 std::string mime_type;
69 std::string headers; 69 std::string headers;
70 uint32 expected_length; 70 uint32 expected_length;
71 uint32 last_modified; 71 uint32 last_modified;
72 bool request_is_seekable;
72 }; 73 };
73 74
74 struct NPIdentifier_Param { 75 struct NPIdentifier_Param {
75 NPIdentifier identifier; 76 NPIdentifier identifier;
76 }; 77 };
77 78
78 enum NPVariant_ParamEnum { 79 enum NPVariant_ParamEnum {
79 NPVARIANT_PARAM_VOID, 80 NPVARIANT_PARAM_VOID,
80 NPVARIANT_PARAM_NULL, 81 NPVARIANT_PARAM_NULL,
81 NPVARIANT_PARAM_BOOL, 82 NPVARIANT_PARAM_BOOL,
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 260
260 template <> 261 template <>
261 struct ParamTraits<PluginMsg_DidReceiveResponseParams> { 262 struct ParamTraits<PluginMsg_DidReceiveResponseParams> {
262 typedef PluginMsg_DidReceiveResponseParams param_type; 263 typedef PluginMsg_DidReceiveResponseParams param_type;
263 static void Write(Message* m, const param_type& p) { 264 static void Write(Message* m, const param_type& p) {
264 WriteParam(m, p.id); 265 WriteParam(m, p.id);
265 WriteParam(m, p.mime_type); 266 WriteParam(m, p.mime_type);
266 WriteParam(m, p.headers); 267 WriteParam(m, p.headers);
267 WriteParam(m, p.expected_length); 268 WriteParam(m, p.expected_length);
268 WriteParam(m, p.last_modified); 269 WriteParam(m, p.last_modified);
270 WriteParam(m, p.request_is_seekable);
269 } 271 }
270 static bool Read(const Message* m, void** iter, param_type* r) { 272 static bool Read(const Message* m, void** iter, param_type* r) {
271 return 273 return
272 ReadParam(m, iter, &r->id) && 274 ReadParam(m, iter, &r->id) &&
273 ReadParam(m, iter, &r->mime_type) && 275 ReadParam(m, iter, &r->mime_type) &&
274 ReadParam(m, iter, &r->headers) && 276 ReadParam(m, iter, &r->headers) &&
275 ReadParam(m, iter, &r->expected_length) && 277 ReadParam(m, iter, &r->expected_length) &&
276 ReadParam(m, iter, &r->last_modified); 278 ReadParam(m, iter, &r->last_modified) &&
279 ReadParam(m, iter, &r->request_is_seekable);
277 } 280 }
278 static void Log(const param_type& p, std::wstring* l) { 281 static void Log(const param_type& p, std::wstring* l) {
279 l->append(L"("); 282 l->append(L"(");
280 LogParam(p.id, l); 283 LogParam(p.id, l);
281 l->append(L", "); 284 l->append(L", ");
282 LogParam(p.mime_type, l); 285 LogParam(p.mime_type, l);
283 l->append(L", "); 286 l->append(L", ");
284 LogParam(p.headers, l); 287 LogParam(p.headers, l);
285 l->append(L", "); 288 l->append(L", ");
286 LogParam(p.expected_length, l); 289 LogParam(p.expected_length, l);
287 l->append(L", "); 290 l->append(L", ");
288 LogParam(p.last_modified, l); 291 LogParam(p.last_modified, l);
292 l->append(L", ");
293 LogParam(p.request_is_seekable, l);
289 l->append(L")"); 294 l->append(L")");
290 } 295 }
291 }; 296 };
292 297
293 template <> 298 template <>
294 struct ParamTraits<NPEvent> { 299 struct ParamTraits<NPEvent> {
295 typedef NPEvent param_type; 300 typedef NPEvent param_type;
296 static void Write(Message* m, const param_type& p) { 301 static void Write(Message* m, const param_type& p) {
297 m->WriteData(reinterpret_cast<const char*>(&p), sizeof(NPEvent)); 302 m->WriteData(reinterpret_cast<const char*>(&p), sizeof(NPEvent));
298 } 303 }
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 } else if (p.type == NPVARIANT_PARAM_OBJECT_POINTER) { 470 } else if (p.type == NPVARIANT_PARAM_OBJECT_POINTER) {
466 LogParam(p.npobject_pointer, l); 471 LogParam(p.npobject_pointer, l);
467 } 472 }
468 } 473 }
469 }; 474 };
470 475
471 } // namespace IPC 476 } // namespace IPC
472 477
473 #endif // CHROME_COMMON_PLUGIN_MESSAGES_H__ 478 #endif // CHROME_COMMON_PLUGIN_MESSAGES_H__
474 479
OLDNEW
« no previous file with comments | « no previous file | chrome/plugin/webplugin_delegate_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698