Chromium Code Reviews| Index: webkit/tools/test_shell/test_shell_request_context.cc |
| diff --git a/webkit/tools/test_shell/test_shell_request_context.cc b/webkit/tools/test_shell/test_shell_request_context.cc |
| index 43914c95c32c4aa2ecf2d77d86518525be1aede6..79bb79855ac722467d00753e84f1fd78a03a62a2 100644 |
| --- a/webkit/tools/test_shell/test_shell_request_context.cc |
| +++ b/webkit/tools/test_shell/test_shell_request_context.cc |
| @@ -17,10 +17,13 @@ |
| #include "net/proxy/proxy_config_service.h" |
| #include "net/proxy/proxy_config_service_fixed.h" |
| #include "net/proxy/proxy_service.h" |
| +#include "net/url_request/url_request_job_factory.h" |
| #include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h" |
| #include "third_party/WebKit/Source/WebKit/chromium/public/WebKitClient.h" |
| #include "webkit/blob/blob_storage_controller.h" |
| +#include "webkit/blob/blob_url_request_job_factory.h" |
| #include "webkit/fileapi/file_system_context.h" |
| +#include "webkit/fileapi/file_system_url_request_job_factory.h" |
| #include "webkit/glue/webkit_glue.h" |
| #include "webkit/tools/test_shell/simple_file_system.h" |
| #include "webkit/tools/test_shell/simple_resource_loader_bridge.h" |
| @@ -95,6 +98,18 @@ void TestShellRequestContext::Init( |
| blob_storage_controller_.reset(new webkit_blob::BlobStorageController()); |
| file_system_context_ = static_cast<SimpleFileSystem*>( |
| WebKit::webKitClient()->fileSystem())->file_system_context(); |
| + |
| + net::URLRequestJobFactory* job_factory = new net::URLRequestJobFactory; |
|
tony
2011/05/17 17:01:00
Do we need to do something with this job_factory?
willchan no longer on Chromium
2011/05/17 18:09:50
Oops, yeah. I've set it now.
|
| + job_factory->SetProtocolHandler( |
| + "blob", |
| + new webkit_blob::BlobProtocolHandler( |
| + blob_storage_controller_.get(), |
| + SimpleResourceLoaderBridge::GetIoThread())); |
| + job_factory->SetProtocolHandler( |
| + "filesystem", |
| + fileapi::CreateFileSystemProtocolHandler( |
| + file_system_context_.get(), |
| + SimpleResourceLoaderBridge::GetIoThread())); |
| } |
| TestShellRequestContext::~TestShellRequestContext() { |