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

Side by Side Diff: ppapi/shared_impl/char_set_impl.h

Issue 6694011: Run PPB_CharSet_Dev logic directly in the plugin process. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 9 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_char_set_proxy.cc ('k') | ppapi/shared_impl/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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef PPAPI_SHARED_IMPL_CHAR_SET_IMPL_H_
6 #define PPAPI_SHARED_IMPL_CHAR_SET_IMPL_H_
7
8 #include "base/basictypes.h"
9 #include "ppapi/c/dev/ppb_char_set_dev.h"
10
11 struct PPB_Core;
12
13 namespace pp {
14 namespace shared_impl {
15
16 // Contains the implementation of character set conversion that is shared
17 // between the proxy and the renderer.
18 class CharSetImpl {
19 public:
20 static char* UTF16ToCharSet(const PPB_Core* core,
21 const uint16_t* utf16,
22 uint32_t utf16_len,
23 const char* output_char_set,
24 PP_CharSet_ConversionError on_error,
25 uint32_t* output_length);
26
27 static uint16_t* CharSetToUTF16(const PPB_Core* core,
28 const char* input,
29 uint32_t input_len,
30 const char* input_char_set,
31 PP_CharSet_ConversionError on_error,
32 uint32_t* output_length);
33 };
34
35 } // namespace shared_impl
36 } // namespace pp
37
38 #endif // PPAPI_SHARED_IMPL_CHAR_SET_IMPL_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/ppb_char_set_proxy.cc ('k') | ppapi/shared_impl/char_set_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698