| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "webkit/support/test_shell_request_context.h" | 5 #include "webkit/support/test_shell_request_context.h" |
| 6 | 6 |
| 7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
| 8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 9 #include "base/thread_task_runner_handle.h" | 9 #include "base/thread_task_runner_handle.h" |
| 10 #include "base/threading/worker_pool.h" | 10 #include "base/threading/worker_pool.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 #include "net/url_request/file_protocol_handler.h" | 27 #include "net/url_request/file_protocol_handler.h" |
| 28 #include "net/url_request/http_user_agent_settings.h" | 28 #include "net/url_request/http_user_agent_settings.h" |
| 29 #include "net/url_request/url_request_job_factory_impl.h" | 29 #include "net/url_request/url_request_job_factory_impl.h" |
| 30 #include "third_party/WebKit/public/platform/Platform.h" | 30 #include "third_party/WebKit/public/platform/Platform.h" |
| 31 #include "third_party/WebKit/public/web/WebKit.h" | 31 #include "third_party/WebKit/public/web/WebKit.h" |
| 32 #include "webkit/browser/blob/blob_storage_controller.h" | 32 #include "webkit/browser/blob/blob_storage_controller.h" |
| 33 #include "webkit/browser/blob/blob_url_request_job_factory.h" | 33 #include "webkit/browser/blob/blob_url_request_job_factory.h" |
| 34 #include "webkit/browser/fileapi/file_system_context.h" | 34 #include "webkit/browser/fileapi/file_system_context.h" |
| 35 #include "webkit/browser/fileapi/file_system_url_request_job_factory.h" | 35 #include "webkit/browser/fileapi/file_system_url_request_job_factory.h" |
| 36 #include "webkit/common/user_agent/user_agent.h" | 36 #include "webkit/common/user_agent/user_agent.h" |
| 37 #include "webkit/support/simple_file_system.h" | |
| 38 #include "webkit/support/simple_resource_loader_bridge.h" | |
| 39 | 37 |
| 40 class TestShellHttpUserAgentSettings : public net::HttpUserAgentSettings { | 38 class TestShellHttpUserAgentSettings : public net::HttpUserAgentSettings { |
| 41 public: | 39 public: |
| 42 TestShellHttpUserAgentSettings() {} | 40 TestShellHttpUserAgentSettings() {} |
| 43 virtual ~TestShellHttpUserAgentSettings() {} | 41 virtual ~TestShellHttpUserAgentSettings() {} |
| 44 | 42 |
| 45 // Hard-code Accept-Language for test shells. | 43 // Hard-code Accept-Language for test shells. |
| 46 virtual std::string GetAcceptLanguage() const OVERRIDE { | 44 virtual std::string GetAcceptLanguage() const OVERRIDE { |
| 47 return "en-us,en"; | 45 return "en-us,en"; |
| 48 } | 46 } |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 job_factory->SetProtocolHandler( | 134 job_factory->SetProtocolHandler( |
| 137 "filesystem", | 135 "filesystem", |
| 138 fileapi::CreateFileSystemProtocolHandler(file_system_context_.get())); | 136 fileapi::CreateFileSystemProtocolHandler(file_system_context_.get())); |
| 139 job_factory->SetProtocolHandler("data", new net::DataProtocolHandler); | 137 job_factory->SetProtocolHandler("data", new net::DataProtocolHandler); |
| 140 job_factory->SetProtocolHandler("file", new net::FileProtocolHandler); | 138 job_factory->SetProtocolHandler("file", new net::FileProtocolHandler); |
| 141 storage_.set_job_factory(job_factory); | 139 storage_.set_job_factory(job_factory); |
| 142 } | 140 } |
| 143 | 141 |
| 144 TestShellRequestContext::~TestShellRequestContext() { | 142 TestShellRequestContext::~TestShellRequestContext() { |
| 145 } | 143 } |
| OLD | NEW |