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

Side by Side Diff: ppapi/proxy/ppb_pdf_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 9 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 | Annotate | Revision Log
« no previous file with comments | « ppapi/proxy/ppb_instance_proxy.cc ('k') | ppapi/proxy/ppb_pdf_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_PDF_PROXY_H_ 5 #ifndef PPAPI_PPB_PDF_PROXY_H_
6 #define PPAPI_PPB_PDF_PROXY_H_ 6 #define PPAPI_PPB_PDF_PROXY_H_
7 7
8 #include "ppapi/c/pp_module.h" 8 #include "ppapi/c/pp_module.h"
9 #include "ppapi/proxy/interface_proxy.h" 9 #include "ppapi/proxy/interface_proxy.h"
10 10
11 struct PPB_PDF; 11 struct PPB_PDF;
12 12
13 namespace pp { 13 namespace pp {
14 namespace proxy { 14 namespace proxy {
15 15
16 struct SerializedFontDescription; 16 struct SerializedFontDescription;
17 17
18 class PPB_PDF_Proxy : public InterfaceProxy { 18 class PPB_PDF_Proxy : public InterfaceProxy {
19 public: 19 public:
20 PPB_PDF_Proxy(Dispatcher* dispatcher, const void* target_interface); 20 PPB_PDF_Proxy(Dispatcher* dispatcher, const void* target_interface);
21 virtual ~PPB_PDF_Proxy(); 21 virtual ~PPB_PDF_Proxy();
22 22
23 const PPB_PDF* ppb_pdf_target() const { 23 const PPB_PDF* ppb_pdf_target() const {
24 return static_cast<const PPB_PDF*>(target_interface()); 24 return static_cast<const PPB_PDF*>(target_interface());
25 } 25 }
26 26
27 // InterfaceProxy implementation. 27 // InterfaceProxy implementation.
28 virtual const void* GetSourceInterface() const; 28 virtual const void* GetSourceInterface() const;
29 virtual InterfaceID GetInterfaceId() const; 29 virtual InterfaceID GetInterfaceId() const;
30 virtual void OnMessageReceived(const IPC::Message& msg); 30 virtual bool OnMessageReceived(const IPC::Message& msg);
31 31
32 private: 32 private:
33 // Message handlers. 33 // Message handlers.
34 void OnMsgGetFontFileWithFallback(PP_Module module, 34 void OnMsgGetFontFileWithFallback(PP_Module module,
35 const SerializedFontDescription& desc, 35 const SerializedFontDescription& desc,
36 int32_t charset, 36 int32_t charset,
37 PP_Resource* result); 37 PP_Resource* result);
38 void OnMsgGetFontTableForPrivateFontFile(PP_Resource font_file, 38 void OnMsgGetFontTableForPrivateFontFile(PP_Resource font_file,
39 uint32_t table, 39 uint32_t table,
40 std::string* result); 40 std::string* result);
41 }; 41 };
42 42
43 } // namespace proxy 43 } // namespace proxy
44 } // namespace pp 44 } // namespace pp
45 45
46 #endif // PPAPI_PPB_PDF_PROXY_H_ 46 #endif // PPAPI_PPB_PDF_PROXY_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/ppb_instance_proxy.cc ('k') | ppapi/proxy/ppb_pdf_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698