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

Unified Diff: webkit/glue/plugins/pepper_var.cc

Issue 2822031: File API boilerplate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/glue/plugins/pepper_var.h ('k') | webkit/glue/webkit_glue.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/plugins/pepper_var.cc
===================================================================
--- webkit/glue/plugins/pepper_var.cc (revision 50938)
+++ webkit/glue/plugins/pepper_var.cc (working copy)
@@ -839,6 +839,11 @@
return GetNPObjectUnchecked(var);
}
+PP_Var StringToPPVar(const std::string& str) {
+ DCHECK(IsStringUTF8(str));
+ return VarFromUtf8(str.data(), str.size());
+}
+
String* GetString(PP_Var var) {
if (var.type != PP_VarType_String)
return NULL;
« no previous file with comments | « webkit/glue/plugins/pepper_var.h ('k') | webkit/glue/webkit_glue.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698