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

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

Issue 2900003: Chrome side of converting enums to uppercase. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 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
« no previous file with comments | « webkit/glue/plugins/pepper_url_loader.cc ('k') | webkit/glue/plugins/pepper_var.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/plugins/pepper_url_request_info.cc
===================================================================
--- webkit/glue/plugins/pepper_url_request_info.cc (revision 51931)
+++ webkit/glue/plugins/pepper_url_request_info.cc (working copy)
@@ -42,10 +42,10 @@
if (!request.get())
return false;
- if (var.type == PP_VarType_Bool)
+ if (var.type == PP_VARTYPE_BOOL)
return request->SetBooleanProperty(property, var.value.as_bool);
- if (var.type == PP_VarType_String)
+ if (var.type == PP_VARTYPE_STRING)
return request->SetStringProperty(property, GetString(var)->value());
return false;
@@ -117,15 +117,15 @@
const std::string& value) {
// TODO(darin): Validate input. Perhaps at a different layer?
switch (property) {
- case PP_URLRequestProperty_URL:
+ case PP_URLREQUESTPROPERTY_URL:
// Keep the url in a string instead of a URL object because it might not
// be complete yet.
url_ = value;
return true;
- case PP_URLRequestProperty_Method:
+ case PP_URLREQUESTPROPERTY_METHOD:
web_request_.setHTTPMethod(WebString::fromUTF8(value));
return true;
- case PP_URLRequestProperty_Headers:
+ case PP_URLREQUESTPROPERTY_HEADERS:
// TODO(darin): Support extra request headers
NOTIMPLEMENTED();
return false;
« no previous file with comments | « webkit/glue/plugins/pepper_url_loader.cc ('k') | webkit/glue/plugins/pepper_var.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698