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

Side by Side Diff: ppapi/proxy/ppapi_messages.h

Issue 11416363: Implementation of URLLoader using PluginResource/ResourceHost. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 header, no traditional include guard. 5 // Multiply-included message header, no traditional include guard.
6 #include <string> 6 #include <string>
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/file_path.h" 10 #include "base/file_path.h"
(...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after
555 PP_Bool /* result */) 555 PP_Bool /* result */)
556 IPC_SYNC_MESSAGE_ROUTED1_0(PpapiMsg_PPPInstance_DidDestroy, 556 IPC_SYNC_MESSAGE_ROUTED1_0(PpapiMsg_PPPInstance_DidDestroy,
557 PP_Instance /* instance */) 557 PP_Instance /* instance */)
558 IPC_MESSAGE_ROUTED3(PpapiMsg_PPPInstance_DidChangeView, 558 IPC_MESSAGE_ROUTED3(PpapiMsg_PPPInstance_DidChangeView,
559 PP_Instance /* instance */, 559 PP_Instance /* instance */,
560 ppapi::ViewData /* new_data */, 560 ppapi::ViewData /* new_data */,
561 PP_Bool /* flash_fullscreen */) 561 PP_Bool /* flash_fullscreen */)
562 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPInstance_DidChangeFocus, 562 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPInstance_DidChangeFocus,
563 PP_Instance /* instance */, 563 PP_Instance /* instance */,
564 PP_Bool /* has_focus */) 564 PP_Bool /* has_focus */)
565 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiMsg_PPPInstance_HandleDocumentLoad, 565 IPC_MESSAGE_ROUTED3(PpapiMsg_PPPInstance_HandleDocumentLoad,
566 PP_Instance /* instance */, 566 PP_Instance /* instance */,
567 ppapi::HostResource /* url_loader */, 567 int /* pending_loader_host_id */,
568 PP_Bool /* result */) 568 ppapi::URLResponseInfoData /* response */)
569 569
570 // PPP_Messaging. 570 // PPP_Messaging.
571 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPMessaging_HandleMessage, 571 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPMessaging_HandleMessage,
572 PP_Instance /* instance */, 572 PP_Instance /* instance */,
573 ppapi::proxy::SerializedVar /* message */) 573 ppapi::proxy::SerializedVar /* message */)
574 574
575 // PPP_MouseLock. 575 // PPP_MouseLock.
576 IPC_MESSAGE_ROUTED1(PpapiMsg_PPPMouseLock_MouseLockLost, 576 IPC_MESSAGE_ROUTED1(PpapiMsg_PPPMouseLock_MouseLockLost,
577 PP_Instance /* instance */) 577 PP_Instance /* instance */)
578 578
(...skipping 919 matching lines...) Expand 10 before | Expand all | Expand 10 after
1498 PP_Point /* top_left */) 1498 PP_Point /* top_left */)
1499 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Graphics2D_ReadImageDataAck) 1499 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Graphics2D_ReadImageDataAck)
1500 1500
1501 1501
1502 // Printing. 1502 // Printing.
1503 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Printing_Create) 1503 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Printing_Create)
1504 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Printing_GetDefaultPrintSettings) 1504 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Printing_GetDefaultPrintSettings)
1505 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Printing_GetDefaultPrintSettingsReply, 1505 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Printing_GetDefaultPrintSettingsReply,
1506 PP_PrintSettings_Dev /* print_settings */) 1506 PP_PrintSettings_Dev /* print_settings */)
1507 1507
1508 // URLLoader ------------------------------------------------------------------
1509
1510 IPC_MESSAGE_CONTROL0(PpapiHostMsg_URLLoader_Create)
1511
1512 // These messages correspond to PPAPI calls and all should get a
1513 // CallbackComplete message.
1514 IPC_MESSAGE_CONTROL1(PpapiHostMsg_URLLoader_Open,
1515 ppapi::URLRequestInfoData /* request_data */)
1516
1517 // The plugin can tell the host to defer a load to hold off on sending more
1518 // data because the buffer in the plugin is full. When defers_loading is set to
1519 // false, data streaming will resume.
1520 //
1521 // When auditing redirects (no auto follow) the load will be automatically
1522 // deferred each time we get a redirect. The plugin will reset this to false
1523 // by sending this message when it wants to continue following the redirect.
1524 //
1525 // When streaming data, the host may still send more data after this call (for
1526 // example, it could already be in-flight at the time of this request).
1527 IPC_MESSAGE_CONTROL1(PpapiHostMsg_URLLoader_SetDeferLoading,
1528 bool /* defers_loading */)
1529
1530 // Closes the URLLoader. There is no reply.
1531 IPC_MESSAGE_CONTROL0(PpapiHostMsg_URLLoader_Close)
1532
1533 // Requests that cross-site restrictions be ignored. The plugin must have
1534 // the private permission set. Otherwise this message will be ignored by the
1535 // renderer. There is no reply.
1536 IPC_MESSAGE_CONTROL0(PpapiHostMsg_URLLoader_GrantUniversalAccess)
1537
1538 // Push notification that a response is available.
1539 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_URLLoader_ReceivedResponse,
1540 ppapi::URLResponseInfoData /* response */)
1541
1542 // Push notification with load data from the renderer. It is a custom generated
1543 // message with the response data (array of bytes stored via WriteData)
1544 // appended.
1545 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_URLLoader_SendData)
1546
1547 // Push notification indicating that all data has been sent, either via
1548 // SendData or by streaming it to a file. Note that since this is a push
1549 // notification, we don't use the result field of the ResourceMessageReply.
1550 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_URLLoader_FinishedLoading,
1551 int32_t /* result */)
1552
1553 // Push notification from the renderer to the plugin to tell it about download
1554 // and upload progress. This will only be sent if the plugin has requested
1555 // progress updates, and only the fields requested by the plugin will be
1556 // valid.
1557 IPC_MESSAGE_CONTROL4(PpapiPluginMsg_URLLoader_UpdateProgress,
1558 int64_t /* bytes_sent */,
1559 int64_t /* total_bytes_to_be_sent */,
1560 int64_t /* bytes_received */,
1561 int64_t /* total_bytes_to_be_received */)
1562
1508 // WebSocket ------------------------------------------------------------------ 1563 // WebSocket ------------------------------------------------------------------
1564
1509 IPC_MESSAGE_CONTROL0(PpapiHostMsg_WebSocket_Create) 1565 IPC_MESSAGE_CONTROL0(PpapiHostMsg_WebSocket_Create)
1510 1566
1511 // Establishes the connection to a server. This message requires 1567 // Establishes the connection to a server. This message requires
1512 // WebSocket_ConnectReply as a reply message. 1568 // WebSocket_ConnectReply as a reply message.
1513 IPC_MESSAGE_CONTROL2(PpapiHostMsg_WebSocket_Connect, 1569 IPC_MESSAGE_CONTROL2(PpapiHostMsg_WebSocket_Connect,
1514 std::string /* url */, 1570 std::string /* url */,
1515 std::vector<std::string> /* protocols */) 1571 std::vector<std::string> /* protocols */)
1516 1572
1517 // Closes established connection with graceful closing handshake. This message 1573 // Closes established connection with graceful closing handshake. This message
1518 // requires WebSocket_CloseReply as a reply message. 1574 // requires WebSocket_CloseReply as a reply message.
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
1723 std::vector<ppapi::HostResource> /* buffers */, 1779 std::vector<ppapi::HostResource> /* buffers */,
1724 uint32_t /* buffer_size */) 1780 uint32_t /* buffer_size */)
1725 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus, 1781 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus,
1726 uint32_t /* status */) 1782 uint32_t /* status */)
1727 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError, 1783 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError,
1728 uint32_t /* error */) 1784 uint32_t /* error */)
1729 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady, 1785 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady,
1730 uint32_t /* buffer */) 1786 uint32_t /* buffer */)
1731 1787
1732 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) 1788 #endif // !defined(OS_NACL) && !defined(NACL_WIN64)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698