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

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

Issue 5978003: Make IPC::Channel::Listener:OnMessageReceived have a return value indicating ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 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 | « ppapi/proxy/ppb_graphics_2d_proxy.cc ('k') | ppapi/proxy/ppb_image_data_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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_PPB_IMAGE_DATA_PROXY_H_ 5 #ifndef PPAPI_PPB_IMAGE_DATA_PROXY_H_
6 #define PPAPI_PPB_IMAGE_DATA_PROXY_H_ 6 #define PPAPI_PPB_IMAGE_DATA_PROXY_H_
7 7
8 #include "ppapi/c/pp_bool.h" 8 #include "ppapi/c/pp_bool.h"
9 #include "ppapi/c/pp_completion_callback.h" 9 #include "ppapi/c/pp_completion_callback.h"
10 #include "ppapi/c/pp_module.h" 10 #include "ppapi/c/pp_module.h"
(...skipping 14 matching lines...) Expand all
25 PPB_ImageData_Proxy(Dispatcher* dispatcher, const void* target_interface); 25 PPB_ImageData_Proxy(Dispatcher* dispatcher, const void* target_interface);
26 virtual ~PPB_ImageData_Proxy(); 26 virtual ~PPB_ImageData_Proxy();
27 27
28 const PPB_ImageData* ppb_image_data_target() const { 28 const PPB_ImageData* ppb_image_data_target() const {
29 return static_cast<const PPB_ImageData*>(target_interface()); 29 return static_cast<const PPB_ImageData*>(target_interface());
30 } 30 }
31 31
32 // InterfaceProxy implementation. 32 // InterfaceProxy implementation.
33 virtual const void* GetSourceInterface() const; 33 virtual const void* GetSourceInterface() const;
34 virtual InterfaceID GetInterfaceId() const; 34 virtual InterfaceID GetInterfaceId() const;
35 virtual void OnMessageReceived(const IPC::Message& msg); 35 virtual bool OnMessageReceived(const IPC::Message& msg);
36 36
37 private: 37 private:
38 // Message handlers. 38 // Message handlers.
39 void OnMsgGetNativeImageDataFormat(int32* result); 39 void OnMsgGetNativeImageDataFormat(int32* result);
40 void OnMsgIsImageDataFormatSupported(int32 format, PP_Bool* result); 40 void OnMsgIsImageDataFormatSupported(int32 format, PP_Bool* result);
41 void OnMsgCreate(PP_Module module, 41 void OnMsgCreate(PP_Module module,
42 int32_t format, 42 int32_t format,
43 const PP_Size& size, 43 const PP_Size& size,
44 PP_Bool init_to_zero, 44 PP_Bool init_to_zero,
45 PP_Resource* result, 45 PP_Resource* result,
46 std::string* image_data_desc, 46 std::string* image_data_desc,
47 ImageHandle* result_image_handle); 47 ImageHandle* result_image_handle);
48 }; 48 };
49 49
50 } // namespace proxy 50 } // namespace proxy
51 } // namespace pp 51 } // namespace pp
52 52
53 #endif // PPAPI_PPB_IMAGE_DATA_PROXY_H_ 53 #endif // PPAPI_PPB_IMAGE_DATA_PROXY_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/ppb_graphics_2d_proxy.cc ('k') | ppapi/proxy/ppb_image_data_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698