diff options
author | jcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-19 00:46:33 +0000 |
---|---|---|
committer | jcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-19 00:46:33 +0000 |
commit | 46b0d4aacbf25108badc143e09f91064fc0b0472 (patch) | |
tree | d1ec74ba60c5c7ae6fd683ad7b685095434e6f03 /webkit/glue/media | |
parent | 08ae5f310a475f73807df520fa0b50cf7138c4f5 (diff) | |
download | chromium_src-46b0d4aacbf25108badc143e09f91064fc0b0472.zip chromium_src-46b0d4aacbf25108badc143e09f91064fc0b0472.tar.gz chromium_src-46b0d4aacbf25108badc143e09f91064fc0b0472.tar.bz2 |
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
Diffstat (limited to 'webkit/glue/media')
-rw-r--r-- | webkit/glue/media/media_resource_loader_bridge_factory.cc | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/webkit/glue/media/media_resource_loader_bridge_factory.cc b/webkit/glue/media/media_resource_loader_bridge_factory.cc index 0c3d6ab..1961bcc 100644 --- a/webkit/glue/media/media_resource_loader_bridge_factory.cc +++ b/webkit/glue/media/media_resource_loader_bridge_factory.cc @@ -36,19 +36,21 @@ ResourceLoaderBridge* MediaResourceLoaderBridgeFactory::CreateBridge( int load_flags, int64 first_byte_position, int64 last_byte_position) { - return webkit_glue::ResourceLoaderBridge::Create( - "GET", - url, - url, - referrer_, - frame_origin_, - main_frame_origin_, - GenerateHeaders(first_byte_position, last_byte_position), - load_flags, - origin_pid_, - ResourceType::MEDIA, - appcache_host_id_, - routing_id_); + webkit_glue::ResourceLoaderBridge::RequestInfo request_info; + request_info.method = "GET"; + request_info.url = url; + request_info.first_party_for_cookies = url; + request_info.referrer = referrer_; + request_info.frame_origin = frame_origin_; + request_info.main_frame_origin = main_frame_origin_; + request_info.headers = GenerateHeaders(first_byte_position, + last_byte_position); + request_info.load_flags = load_flags; + request_info.requestor_pid = origin_pid_; + request_info.request_type = ResourceType::MEDIA; + request_info.appcache_host_id = appcache_host_id_; + request_info.routing_id = routing_id_; + return webkit_glue::ResourceLoaderBridge::Create(request_info); } // static |