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

Side by Side Diff: ppapi/proxy/ppb_testing_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_pdf_proxy.cc ('k') | ppapi/proxy/ppb_testing_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_PROXY_PPB_TESTING_PROXY_H_ 5 #ifndef PPAPI_PROXY_PPB_TESTING_PROXY_H_
6 #define PPAPI_PROXY_PPB_TESTING_PROXY_H_ 6 #define PPAPI_PROXY_PPB_TESTING_PROXY_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "ppapi/c/pp_module.h" 9 #include "ppapi/c/pp_module.h"
10 #include "ppapi/c/pp_resource.h" 10 #include "ppapi/c/pp_resource.h"
(...skipping 10 matching lines...) Expand all
21 PPB_Testing_Proxy(Dispatcher* dispatcher, const void* target_interface); 21 PPB_Testing_Proxy(Dispatcher* dispatcher, const void* target_interface);
22 virtual ~PPB_Testing_Proxy(); 22 virtual ~PPB_Testing_Proxy();
23 23
24 const PPB_Testing_Dev* ppb_testing_target() const { 24 const PPB_Testing_Dev* ppb_testing_target() const {
25 return static_cast<const PPB_Testing_Dev*>(target_interface()); 25 return static_cast<const PPB_Testing_Dev*>(target_interface());
26 } 26 }
27 27
28 // InterfaceProxy implementation. 28 // InterfaceProxy implementation.
29 virtual const void* GetSourceInterface() const; 29 virtual const void* GetSourceInterface() const;
30 virtual InterfaceID GetInterfaceId() const; 30 virtual InterfaceID GetInterfaceId() const;
31 virtual void OnMessageReceived(const IPC::Message& msg); 31 virtual bool OnMessageReceived(const IPC::Message& msg);
32 32
33 private: 33 private:
34 // Message handlers. 34 // Message handlers.
35 void OnMsgReadImageData(PP_Resource device_context_2d, 35 void OnMsgReadImageData(PP_Resource device_context_2d,
36 PP_Resource image, 36 PP_Resource image,
37 const PP_Point& top_left, 37 const PP_Point& top_left,
38 PP_Bool* result); 38 PP_Bool* result);
39 void OnMsgRunMessageLoop(bool* dummy); 39 void OnMsgRunMessageLoop(bool* dummy);
40 void OnMsgQuitMessageLoop(); 40 void OnMsgQuitMessageLoop();
41 void OnMsgGetLiveObjectCount(PP_Module module_id, uint32_t* result); 41 void OnMsgGetLiveObjectCount(PP_Module module_id, uint32_t* result);
42 42
43 DISALLOW_COPY_AND_ASSIGN(PPB_Testing_Proxy); 43 DISALLOW_COPY_AND_ASSIGN(PPB_Testing_Proxy);
44 }; 44 };
45 45
46 } // namespace proxy 46 } // namespace proxy
47 } // namespace pp 47 } // namespace pp
48 48
49 #endif // PPAPI_PROXY_PPB_TESTING_PROXY_H_ 49 #endif // PPAPI_PROXY_PPB_TESTING_PROXY_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/ppb_pdf_proxy.cc ('k') | ppapi/proxy/ppb_testing_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698