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

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

Issue 1548813002: Switch to standard integer types in ppapi/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixes Created 4 years, 12 months 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 | « ppapi/proxy/ppb_var_unittest.cc ('k') | ppapi/proxy/ppb_video_decoder_proxy.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) 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 #ifndef PPAPI_PROXY_PPB_VIDEO_DECODER_PROXY_H_ 5 #ifndef PPAPI_PROXY_PPB_VIDEO_DECODER_PROXY_H_
6 #define PPAPI_PROXY_PPB_VIDEO_DECODER_PROXY_H_ 6 #define PPAPI_PROXY_PPB_VIDEO_DECODER_PROXY_H_
7 7
8 #include <stdint.h>
9
10 #include "base/macros.h"
8 #include "ppapi/c/pp_instance.h" 11 #include "ppapi/c/pp_instance.h"
9 #include "ppapi/proxy/interface_proxy.h" 12 #include "ppapi/proxy/interface_proxy.h"
10 #include "ppapi/proxy/proxy_completion_callback_factory.h" 13 #include "ppapi/proxy/proxy_completion_callback_factory.h"
11 #include "ppapi/shared_impl/ppb_video_decoder_shared.h" 14 #include "ppapi/shared_impl/ppb_video_decoder_shared.h"
12 #include "ppapi/thunk/ppb_video_decoder_dev_api.h" 15 #include "ppapi/thunk/ppb_video_decoder_dev_api.h"
13 #include "ppapi/utility/completion_callback_factory.h" 16 #include "ppapi/utility/completion_callback_factory.h"
14 17
15 namespace ppapi { 18 namespace ppapi {
16 namespace proxy { 19 namespace proxy {
17 20
(...skipping 13 matching lines...) Expand all
31 34
32 static const ApiID kApiID = API_ID_PPB_VIDEO_DECODER_DEV; 35 static const ApiID kApiID = API_ID_PPB_VIDEO_DECODER_DEV;
33 36
34 private: 37 private:
35 // Message handlers in the renderer process to receive messages from the 38 // Message handlers in the renderer process to receive messages from the
36 // plugin process. 39 // plugin process.
37 void OnMsgCreate(PP_Instance instance, 40 void OnMsgCreate(PP_Instance instance,
38 const ppapi::HostResource& graphics_context, 41 const ppapi::HostResource& graphics_context,
39 PP_VideoDecoder_Profile profile, 42 PP_VideoDecoder_Profile profile,
40 ppapi::HostResource* result); 43 ppapi::HostResource* result);
41 void OnMsgDecode( 44 void OnMsgDecode(const ppapi::HostResource& decoder,
42 const ppapi::HostResource& decoder, 45 const ppapi::HostResource& buffer,
43 const ppapi::HostResource& buffer, int32 id, uint32 size); 46 int32_t id,
47 uint32_t size);
44 void OnMsgAssignPictureBuffers( 48 void OnMsgAssignPictureBuffers(
45 const ppapi::HostResource& decoder, 49 const ppapi::HostResource& decoder,
46 const std::vector<PP_PictureBuffer_Dev>& buffers); 50 const std::vector<PP_PictureBuffer_Dev>& buffers);
47 void OnMsgReusePictureBuffer( 51 void OnMsgReusePictureBuffer(const ppapi::HostResource& decoder,
48 const ppapi::HostResource& decoder, 52 int32_t picture_buffer_id);
49 int32 picture_buffer_id);
50 void OnMsgFlush(const ppapi::HostResource& decoder); 53 void OnMsgFlush(const ppapi::HostResource& decoder);
51 void OnMsgReset(const ppapi::HostResource& decoder); 54 void OnMsgReset(const ppapi::HostResource& decoder);
52 void OnMsgDestroy(const ppapi::HostResource& decoder); 55 void OnMsgDestroy(const ppapi::HostResource& decoder);
53 56
54 // Send a message from the renderer process to the plugin process to tell it 57 // Send a message from the renderer process to the plugin process to tell it
55 // to run its callback. 58 // to run its callback.
56 void SendMsgEndOfBitstreamACKToPlugin( 59 void SendMsgEndOfBitstreamACKToPlugin(int32_t result,
57 int32_t result, const ppapi::HostResource& decoder, int32 id); 60 const ppapi::HostResource& decoder,
61 int32_t id);
58 void SendMsgFlushACKToPlugin( 62 void SendMsgFlushACKToPlugin(
59 int32_t result, const ppapi::HostResource& decoder); 63 int32_t result, const ppapi::HostResource& decoder);
60 void SendMsgResetACKToPlugin( 64 void SendMsgResetACKToPlugin(
61 int32_t result, const ppapi::HostResource& decoder); 65 int32_t result, const ppapi::HostResource& decoder);
62 66
63 // Message handlers in the plugin process to receive messages from the 67 // Message handlers in the plugin process to receive messages from the
64 // renderer process. 68 // renderer process.
65 void OnMsgEndOfBitstreamACK(const ppapi::HostResource& decoder, 69 void OnMsgEndOfBitstreamACK(const ppapi::HostResource& decoder,
66 int32_t id, int32_t result); 70 int32_t id, int32_t result);
67 void OnMsgFlushACK(const ppapi::HostResource& decoder, int32_t result); 71 void OnMsgFlushACK(const ppapi::HostResource& decoder, int32_t result);
68 void OnMsgResetACK(const ppapi::HostResource& decoder, int32_t result); 72 void OnMsgResetACK(const ppapi::HostResource& decoder, int32_t result);
69 73
70 ProxyCompletionCallbackFactory<PPB_VideoDecoder_Proxy> callback_factory_; 74 ProxyCompletionCallbackFactory<PPB_VideoDecoder_Proxy> callback_factory_;
71 75
72 DISALLOW_COPY_AND_ASSIGN(PPB_VideoDecoder_Proxy); 76 DISALLOW_COPY_AND_ASSIGN(PPB_VideoDecoder_Proxy);
73 }; 77 };
74 78
75 } // namespace proxy 79 } // namespace proxy
76 } // namespace ppapi 80 } // namespace ppapi
77 81
78 #endif // PPAPI_PROXY_PPB_VIDEO_DECODER_PROXY_H_ 82 #endif // PPAPI_PROXY_PPB_VIDEO_DECODER_PROXY_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/ppb_var_unittest.cc ('k') | ppapi/proxy/ppb_video_decoder_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698