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

Side by Side Diff: chrome/renderer/renderer_glue.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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file provides the embedder's side of random webkit glue functions. 5 // This file provides the embedder's side of random webkit glue functions.
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 228
229 // static factory function 229 // static factory function
230 ResourceLoaderBridge* ResourceLoaderBridge::Create( 230 ResourceLoaderBridge* ResourceLoaderBridge::Create(
231 const std::string& method, 231 const std::string& method,
232 const GURL& url, 232 const GURL& url,
233 const GURL& policy_url, 233 const GURL& policy_url,
234 const GURL& referrer, 234 const GURL& referrer,
235 const std::string& frame_origin, 235 const std::string& frame_origin,
236 const std::string& main_frame_origin, 236 const std::string& main_frame_origin,
237 const std::string& headers, 237 const std::string& headers,
238 const std::string& default_mime_type,
238 int load_flags, 239 int load_flags,
239 int origin_pid, 240 int origin_pid,
240 ResourceType::Type resource_type, 241 ResourceType::Type resource_type,
241 int routing_id) { 242 int routing_id) {
242 ResourceDispatcher* dispatch = RenderThread::current()->resource_dispatcher(); 243 ResourceDispatcher* dispatch = RenderThread::current()->resource_dispatcher();
243 return dispatch->CreateBridge(method, url, policy_url, referrer, 244 return dispatch->CreateBridge(method, url, policy_url, referrer,
244 frame_origin, main_frame_origin, headers, 245 frame_origin, main_frame_origin, headers,
245 load_flags, origin_pid, resource_type, 246 default_mime_type, load_flags, origin_pid,
246 0, routing_id); 247 resource_type, 0, routing_id);
247 } 248 }
248 249
249 void NotifyCacheStats() { 250 void NotifyCacheStats() {
250 // Update the browser about our cache 251 // Update the browser about our cache
251 // NOTE: Since this can be called from the plugin process, we might not have 252 // NOTE: Since this can be called from the plugin process, we might not have
252 // a RenderThread. Do nothing in that case. 253 // a RenderThread. Do nothing in that case.
253 if (!IsPluginProcess()) 254 if (!IsPluginProcess())
254 RenderThread::current()->InformHostOfCacheStatsLater(); 255 RenderThread::current()->InformHostOfCacheStatsLater();
255 } 256 }
256 257
257 258
258 } // namespace webkit_glue 259 } // namespace webkit_glue
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698