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

Unified Diff: ppapi/proxy/ppb_char_set_proxy.cc

Issue 7349016: Added versioning for PPB_Core::MemAlloc and MemFree (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Minor cleanup Created 9 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: ppapi/proxy/ppb_char_set_proxy.cc
diff --git a/ppapi/proxy/ppb_char_set_proxy.cc b/ppapi/proxy/ppb_char_set_proxy.cc
index 1887549d20643a0fdb5d56c5552f195aa6578d86..4701ded138550c226a2158c5afe649f297208a10 100644
--- a/ppapi/proxy/ppb_char_set_proxy.cc
+++ b/ppapi/proxy/ppb_char_set_proxy.cc
@@ -6,7 +6,7 @@
#include "base/basictypes.h"
#include "ppapi/c/dev/ppb_char_set_dev.h"
-#include "ppapi/c/ppb_core.h"
+#include "ppapi/c/dev/ppb_memory_dev.h"
#include "ppapi/proxy/plugin_dispatcher.h"
#include "ppapi/proxy/ppapi_messages.h"
#include "ppapi/proxy/serialized_var.h"
@@ -19,9 +19,9 @@ namespace proxy {
namespace {
-const PPB_Core* GetCoreInterface() {
- return static_cast<const PPB_Core*>(
- PluginDispatcher::GetInterfaceFromDispatcher(PPB_CORE_INTERFACE));
+const PPB_Memory_Dev* GetMemoryDevInterface() {
+ return static_cast<const PPB_Memory_Dev*>(
+ PluginDispatcher::GetInterfaceFromDispatcher(PPB_MEMORY_DEV_INTERFACE));
}
InterfaceProxy* CreateCharSetProxy(Dispatcher* dispatcher,
@@ -63,7 +63,7 @@ char* PPB_CharSet_Proxy::UTF16ToCharSet(
PP_CharSet_ConversionError on_error,
uint32_t* output_length) {
return ppapi::CharSetImpl::UTF16ToCharSet(
- GetCoreInterface(), utf16, utf16_len, output_char_set, on_error,
+ GetMemoryDevInterface(), utf16, utf16_len, output_char_set, on_error,
output_length);
}
@@ -74,7 +74,7 @@ uint16_t* PPB_CharSet_Proxy::CharSetToUTF16(
PP_CharSet_ConversionError on_error,
uint32_t* output_length) {
return ppapi::CharSetImpl::CharSetToUTF16(
- GetCoreInterface(), input, input_len, input_char_set, on_error,
+ GetMemoryDevInterface(), input, input_len, input_char_set, on_error,
output_length);
}

Powered by Google App Engine
This is Rietveld 408576698