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

Side by Side Diff: ppapi/proxy/ppb_char_set_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_buffer_proxy.cc ('k') | ppapi/proxy/ppb_char_set_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_CHAR_SET_PROXY_H_ 5 #ifndef PPAPI_PROXY_PPB_CHAR_SET_PROXY_H_
6 #define PPAPI_PROXY_PPB_CHAR_SET_PROXY_H_ 6 #define PPAPI_PROXY_PPB_CHAR_SET_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 12 matching lines...) Expand all
23 PPB_CharSet_Proxy(Dispatcher* dispatcher, const void* target_interface); 23 PPB_CharSet_Proxy(Dispatcher* dispatcher, const void* target_interface);
24 virtual ~PPB_CharSet_Proxy(); 24 virtual ~PPB_CharSet_Proxy();
25 25
26 const PPB_CharSet_Dev* ppb_char_set_target() const { 26 const PPB_CharSet_Dev* ppb_char_set_target() const {
27 return static_cast<const PPB_CharSet_Dev*>(target_interface()); 27 return static_cast<const PPB_CharSet_Dev*>(target_interface());
28 } 28 }
29 29
30 // InterfaceProxy implementation. 30 // InterfaceProxy implementation.
31 virtual const void* GetSourceInterface() const; 31 virtual const void* GetSourceInterface() const;
32 virtual InterfaceID GetInterfaceId() const; 32 virtual InterfaceID GetInterfaceId() const;
33 virtual void OnMessageReceived(const IPC::Message& msg); 33 virtual bool OnMessageReceived(const IPC::Message& msg);
34 34
35 private: 35 private:
36 // Message handlers. 36 // Message handlers.
37 void OnMsgUTF16ToCharSet(const string16& utf16, 37 void OnMsgUTF16ToCharSet(const string16& utf16,
38 const std::string& char_set, 38 const std::string& char_set,
39 int32_t on_error, 39 int32_t on_error,
40 std::string* output, 40 std::string* output,
41 bool* output_is_success); 41 bool* output_is_success);
42 void OnMsgCharSetToUTF16(const std::string& input, 42 void OnMsgCharSetToUTF16(const std::string& input,
43 const std::string& char_set, 43 const std::string& char_set,
44 int32_t on_error, 44 int32_t on_error,
45 string16* output, 45 string16* output,
46 bool* output_is_success); 46 bool* output_is_success);
47 void OnMsgGetDefaultCharSet(PP_Module module, 47 void OnMsgGetDefaultCharSet(PP_Module module,
48 SerializedVarReturnValue result); 48 SerializedVarReturnValue result);
49 49
50 // Returns the local PPB_Core interface for freeing strings. 50 // Returns the local PPB_Core interface for freeing strings.
51 const PPB_Core* GetCoreInterface(); 51 const PPB_Core* GetCoreInterface();
52 52
53 // Possibly NULL, lazily initialized by GetCoreInterface. 53 // Possibly NULL, lazily initialized by GetCoreInterface.
54 const PPB_Core* core_interface_; 54 const PPB_Core* core_interface_;
55 55
56 DISALLOW_COPY_AND_ASSIGN(PPB_CharSet_Proxy); 56 DISALLOW_COPY_AND_ASSIGN(PPB_CharSet_Proxy);
57 }; 57 };
58 58
59 } // namespace proxy 59 } // namespace proxy
60 } // namespace pp 60 } // namespace pp
61 61
62 #endif // PPAPI_PROXY_PPB_CHAR_SET_PROXY_H_ 62 #endif // PPAPI_PROXY_PPB_CHAR_SET_PROXY_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/ppb_buffer_proxy.cc ('k') | ppapi/proxy/ppb_char_set_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698