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

Side by Side Diff: webkit/plugins/ppapi/ppb_char_set_impl.h

Issue 7105013: Convert more interfaces to the new thunk system. This goes up to and including (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 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 | « webkit/plugins/ppapi/ppb_buffer_impl.cc ('k') | webkit/plugins/ppapi/ppb_char_set_impl.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 WEBKIT_PLUGINS_PPAPI_PPB_CHAR_SET_IMPL_H_ 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_CHAR_SET_IMPL_H_
6 #define WEBKIT_PLUGINS_PPAPI_PPB_CHAR_SET_IMPL_H_ 6 #define WEBKIT_PLUGINS_PPAPI_PPB_CHAR_SET_IMPL_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "ppapi/shared_impl/function_group_base.h" 10 #include "ppapi/shared_impl/function_group_base.h"
11 #include "ppapi/thunk/ppb_char_set_api.h" 11 #include "ppapi/thunk/ppb_char_set_api.h"
12 12
13 namespace webkit { 13 namespace webkit {
14 namespace ppapi { 14 namespace ppapi {
15 15
16 class PluginInstance; 16 class PluginInstance;
17 17
18 class PPB_CharSet_Impl : public ::ppapi::FunctionGroupBase, 18 class PPB_CharSet_Impl : public ::ppapi::FunctionGroupBase,
19 public ::ppapi::thunk::PPB_CharSet_FunctionAPI { 19 public ::ppapi::thunk::PPB_CharSet_FunctionAPI {
20 public: 20 public:
21 PPB_CharSet_Impl(PluginInstance* instance); 21 PPB_CharSet_Impl(PluginInstance* instance);
22 virtual ~PPB_CharSet_Impl(); 22 virtual ~PPB_CharSet_Impl();
23 23
24 // FunctionGroupBase overrides. 24 // FunctionGroupBase overrides.
25 virtual ::ppapi::thunk::PPB_CharSet_FunctionAPI* AsCharSet_FunctionAPI(); 25 virtual ::ppapi::thunk::PPB_CharSet_FunctionAPI* AsPPB_CharSet_FunctionAPI();
26 26
27 // PPB_CharSet_FunctionAPI implementation. 27 // PPB_CharSet_FunctionAPI implementation.
28 virtual char* UTF16ToCharSet(PP_Instance instance, 28 virtual char* UTF16ToCharSet(PP_Instance instance,
29 const uint16_t* utf16, uint32_t utf16_len, 29 const uint16_t* utf16, uint32_t utf16_len,
30 const char* output_char_set, 30 const char* output_char_set,
31 PP_CharSet_ConversionError on_error, 31 PP_CharSet_ConversionError on_error,
32 uint32_t* output_length) OVERRIDE; 32 uint32_t* output_length) OVERRIDE;
33 virtual uint16_t* CharSetToUTF16(PP_Instance instance, 33 virtual uint16_t* CharSetToUTF16(PP_Instance instance,
34 const char* input, uint32_t input_len, 34 const char* input, uint32_t input_len,
35 const char* input_char_set, 35 const char* input_char_set,
36 PP_CharSet_ConversionError on_error, 36 PP_CharSet_ConversionError on_error,
37 uint32_t* output_length) OVERRIDE; 37 uint32_t* output_length) OVERRIDE;
38 virtual PP_Var GetDefaultCharSet(PP_Instance instance) OVERRIDE; 38 virtual PP_Var GetDefaultCharSet(PP_Instance instance) OVERRIDE;
39 39
40 private: 40 private:
41 PluginInstance* instance_; 41 PluginInstance* instance_;
42 42
43 DISALLOW_COPY_AND_ASSIGN(PPB_CharSet_Impl); 43 DISALLOW_COPY_AND_ASSIGN(PPB_CharSet_Impl);
44 }; 44 };
45 45
46 } // namespace ppapi 46 } // namespace ppapi
47 } // namespace webkit 47 } // namespace webkit
48 48
49 #endif // WEBKIT_PLUGINS_PPAPI_PPB_CHAR_SET_IMPL_H_ 49 #endif // WEBKIT_PLUGINS_PPAPI_PPB_CHAR_SET_IMPL_H_
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/ppb_buffer_impl.cc ('k') | webkit/plugins/ppapi/ppb_char_set_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698