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

Unified Diff: chrome/common/resource_dispatcher.cc

Issue 55049: Add the ability to specify a default MIME type when loading a resource. We'l... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/resource_dispatcher.cc
===================================================================
--- chrome/common/resource_dispatcher.cc (revision 12710)
+++ chrome/common/resource_dispatcher.cc (working copy)
@@ -50,6 +50,7 @@
const std::string& frame_origin,
const std::string& main_frame_origin,
const std::string& headers,
+ const std::string& default_mime_type,
int load_flags,
int origin_pid,
ResourceType::Type resource_type,
@@ -103,6 +104,7 @@
const std::string& frame_origin,
const std::string& main_frame_origin,
const std::string& headers,
+ const std::string& default_mime_type,
int load_flags,
int origin_pid,
ResourceType::Type resource_type,
@@ -120,6 +122,7 @@
request_.frame_origin = frame_origin;
request_.main_frame_origin = main_frame_origin;
request_.headers = headers;
+ request_.default_mime_type = default_mime_type;
request_.load_flags = load_flags;
request_.origin_pid = origin_pid;
request_.resource_type = resource_type;
@@ -522,6 +525,7 @@
const std::string& frame_origin,
const std::string& main_frame_origin,
const std::string& headers,
+ const std::string& default_mime_type,
int flags,
int origin_pid,
ResourceType::Type resource_type,
@@ -530,6 +534,7 @@
return new webkit_glue::IPCResourceLoaderBridge(this, method, url, policy_url,
referrer, frame_origin,
main_frame_origin, headers,
+ default_mime_type,
flags, origin_pid,
resource_type,
request_context, route_id);

Powered by Google App Engine
This is Rietveld 408576698