summaryrefslogtreecommitdiffstats
path: root/webkit/glue/resource_loader_bridge.cc
diff options
context:
space:
mode:
authorjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-19 00:46:33 +0000
committerjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-19 00:46:33 +0000
commit46b0d4aacbf25108badc143e09f91064fc0b0472 (patch)
treed1ec74ba60c5c7ae6fd683ad7b685095434e6f03 /webkit/glue/resource_loader_bridge.cc
parent08ae5f310a475f73807df520fa0b50cf7138c4f5 (diff)
downloadchromium_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/resource_loader_bridge.cc')
-rw-r--r--webkit/glue/resource_loader_bridge.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/webkit/glue/resource_loader_bridge.cc b/webkit/glue/resource_loader_bridge.cc
index fd8eee3..8b22508 100644
--- a/webkit/glue/resource_loader_bridge.cc
+++ b/webkit/glue/resource_loader_bridge.cc
@@ -9,6 +9,18 @@
namespace webkit_glue {
+ResourceLoaderBridge::RequestInfo::RequestInfo()
+ : load_flags(0),
+ requestor_pid(0),
+ request_type(ResourceType::MAIN_FRAME),
+ request_context(0),
+ appcache_host_id(0),
+ routing_id(0) {
+}
+
+ResourceLoaderBridge::RequestInfo::~RequestInfo() {
+}
+
ResourceLoaderBridge::ResponseInfo::ResponseInfo() {
content_length = -1;
appcache_id = appcache::kNoCacheId;