From 46b0d4aacbf25108badc143e09f91064fc0b0472 Mon Sep 17 00:00:00 2001 From: "jcampan@chromium.org" Date: Sat, 19 Dec 2009 00:46:33 +0000 Subject: Add a CreateBridge method to the ChildThread. The intent is to allow unit-tests that use render view to override ChildThread::CreateBridge() to provide their own resource loading. This is used by the upcoming translate unit-test. BUG=None TEST=None Review URL: http://codereview.chromium.org/503032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35014 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/renderer/renderer_glue.cc | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) (limited to 'chrome/renderer') diff --git a/chrome/renderer/renderer_glue.cc b/chrome/renderer/renderer_glue.cc index 012a249..1f306db 100644 --- a/chrome/renderer/renderer_glue.cc +++ b/chrome/renderer/renderer_glue.cc @@ -218,23 +218,8 @@ bool IsProtocolSupportedForMedia(const GURL& url) { // static factory function ResourceLoaderBridge* ResourceLoaderBridge::Create( - const std::string& method, - const GURL& url, - const GURL& first_party_for_cookies, - const GURL& referrer, - const std::string& frame_origin, - const std::string& main_frame_origin, - const std::string& headers, - int load_flags, - int origin_pid, - ResourceType::Type resource_type, - int appcache_host_id, - int routing_id) { - ResourceDispatcher* dispatch = ChildThread::current()->resource_dispatcher(); - return dispatch->CreateBridge(method, url, first_party_for_cookies, referrer, - frame_origin, main_frame_origin, headers, - load_flags, origin_pid, resource_type, 0, - appcache_host_id, routing_id, -1 , -1); + const ResourceLoaderBridge::RequestInfo& request_info) { + return ChildThread::current()->CreateBridge(request_info, -1, -1); } // static factory function -- cgit v1.1