Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 305 | 305 |
| 306 // PPB_URLLoader | 306 // PPB_URLLoader |
| 307 // (Messages from browser to plugin to notify it of changes in state.) | 307 // (Messages from browser to plugin to notify it of changes in state.) |
| 308 IPC_MESSAGE_ROUTED1(PpapiMsg_PPBURLLoader_UpdateProgress, | 308 IPC_MESSAGE_ROUTED1(PpapiMsg_PPBURLLoader_UpdateProgress, |
| 309 pp::proxy::PPBURLLoader_UpdateProgress_Params /* params */) | 309 pp::proxy::PPBURLLoader_UpdateProgress_Params /* params */) |
| 310 IPC_MESSAGE_ROUTED3(PpapiMsg_PPBURLLoader_ReadResponseBody_Ack, | 310 IPC_MESSAGE_ROUTED3(PpapiMsg_PPBURLLoader_ReadResponseBody_Ack, |
| 311 pp::proxy::HostResource /* loader */, | 311 pp::proxy::HostResource /* loader */, |
| 312 int32 /* result */, | 312 int32 /* result */, |
| 313 std::string /* data */) | 313 std::string /* data */) |
| 314 | 314 |
| 315 // PPB_VideoDecoder_Dev. | |
| 316 // (Messages from renderer to plugin to notify it to run callbacks.) | |
| 317 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBVideoDecoder_EndOfBitstreamACK, | |
| 318 pp::proxy::HostResource /* video_decoder */, | |
| 319 int32_t /* pp_error */) | |
| 320 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBVideoDecoder_FlushACK, | |
| 321 pp::proxy::HostResource /* video_decoder */, | |
| 322 int32_t /* pp_error */) | |
| 323 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBVideoDecoder_ResetACK, | |
| 324 pp::proxy::HostResource /* video_decoder */, | |
| 325 int32_t /* pp_error */) | |
| 326 | |
| 327 // PPP_VideoDecoder_Dev. | |
| 328 IPC_MESSAGE_ROUTED4(PpapiMsg_PPPVideoDecoder_ProvidePictureBuffers, | |
| 329 PP_Instance /* instance */, | |
|
piman
2011/08/01 20:57:48
Instance is already encoded in the HostResource, s
vrk (LEFT CHROMIUM)
2011/08/01 23:40:04
Done.
| |
| 330 pp::proxy::HostResource /* video_decoder */, | |
| 331 uint32_t /* requested number of buffers */, | |
| 332 PP_Size /* dimensions of buffer */) | |
| 333 IPC_MESSAGE_ROUTED3(PpapiMsg_PPPVideoDecoder_DismissPictureBuffer, | |
| 334 PP_Instance /* instance */, | |
| 335 pp::proxy::HostResource /* video_decoder */, | |
| 336 int32_t /* picture id */) | |
| 337 IPC_MESSAGE_ROUTED4(PpapiMsg_PPPVideoDecoder_PictureReady, | |
| 338 PP_Instance /* instance */, | |
| 339 pp::proxy::HostResource /* video_decoder */, | |
| 340 int32_t /* picture id */, | |
| 341 int32_t /* bitstream id */) | |
| 342 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPVideoDecoder_NotifyEndOfStream, | |
| 343 PP_Instance /* instance */, | |
| 344 pp::proxy::HostResource /* video_decoder */) | |
| 345 IPC_MESSAGE_ROUTED3(PpapiMsg_PPPVideoDecoder_NotifyError, | |
| 346 PP_Instance /* instance */, | |
| 347 pp::proxy::HostResource /* video_decoder */, | |
| 348 uint32_t /* error id */) | |
| 349 | |
| 315 // ----------------------------------------------------------------------------- | 350 // ----------------------------------------------------------------------------- |
| 316 // These are from the plugin to the renderer. | 351 // These are from the plugin to the renderer. |
| 317 | 352 |
| 318 // Reply to PpapiMsg_CreateChannel. The handle will be NULL if the channel | 353 // Reply to PpapiMsg_CreateChannel. The handle will be NULL if the channel |
| 319 // could not be established. This could be because the IPC could not be created | 354 // could not be established. This could be because the IPC could not be created |
| 320 // for some weird reason, but more likely that the plugin failed to load or | 355 // for some weird reason, but more likely that the plugin failed to load or |
| 321 // initialize properly. | 356 // initialize properly. |
| 322 IPC_MESSAGE_CONTROL1(PpapiHostMsg_ChannelCreated, | 357 IPC_MESSAGE_CONTROL1(PpapiHostMsg_ChannelCreated, |
| 323 IPC::ChannelHandle /* handle */) | 358 IPC::ChannelHandle /* handle */) |
| 324 | 359 |
| (...skipping 569 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 894 PP_Bool /* is_always_opaque */, | 929 PP_Bool /* is_always_opaque */, |
| 895 pp::proxy::HostResource /* result */) | 930 pp::proxy::HostResource /* result */) |
| 896 IPC_SYNC_MESSAGE_ROUTED4_3(PpapiHostMsg_ResourceCreation_ImageData, | 931 IPC_SYNC_MESSAGE_ROUTED4_3(PpapiHostMsg_ResourceCreation_ImageData, |
| 897 PP_Instance /* instance */, | 932 PP_Instance /* instance */, |
| 898 int32 /* format */, | 933 int32 /* format */, |
| 899 PP_Size /* size */, | 934 PP_Size /* size */, |
| 900 PP_Bool /* init_to_zero */, | 935 PP_Bool /* init_to_zero */, |
| 901 pp::proxy::HostResource /* result_resource */, | 936 pp::proxy::HostResource /* result_resource */, |
| 902 std::string /* image_data_desc */, | 937 std::string /* image_data_desc */, |
| 903 pp::proxy::ImageHandle /* result */) | 938 pp::proxy::ImageHandle /* result */) |
| 939 // PPB_VideoDecoder. | |
| 940 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBVideoDecoder_Create, | |
| 941 PP_Instance /* instance */, | |
| 942 pp::proxy::HostResource /* context */, | |
| 943 std::vector<int32_t> /* config */, | |
| 944 pp::proxy::HostResource /* result */) | |
| 945 IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBVideoDecoder_Decode, | |
| 946 pp::proxy::HostResource /* video_decoder */, | |
| 947 pp::proxy::HostResource /* bitstream buffer */, | |
| 948 int32 /* bitstream buffer id */, | |
| 949 int32 /* size of buffer */) | |
| 950 IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBVideoDecoder_AssignPictureBuffers, | |
| 951 pp::proxy::HostResource /* video_decoder */, | |
| 952 std::vector<int32_t> /* buffer_ids */, | |
| 953 std::vector<uint32_t> /* texture_ids */, | |
| 954 std::vector<PP_Size> /* buffer sizes */) | |
|
piman
2011/08/01 20:57:48
How about a std::vector<PP_PictureBuffer_Dev> inst
vrk (LEFT CHROMIUM)
2011/08/01 23:40:04
Done.
| |
| 955 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBVideoDecoder_ReusePictureBuffer, | |
| 956 pp::proxy::HostResource /* video_decoder */, | |
| 957 int32_t /* picture buffer id */) | |
| 958 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoDecoder_Flush, | |
| 959 pp::proxy::HostResource /* video_decoder */) | |
| 960 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoDecoder_Reset, | |
| 961 pp::proxy::HostResource /* video_decoder */) | |
| 962 IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBVideoDecoder_Destroy, | |
|
piman
2011/08/01 20:57:48
Does this need to be sync ?
vrk (LEFT CHROMIUM)
2011/08/01 23:40:04
Yes, the pepper -> renderer -> gpu path for this m
| |
| 963 pp::proxy::HostResource /* video_decoder */) | |
| OLD | NEW |