| 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 // This file contains an implementation of the ResourceLoaderBridge class. | 5 // This file contains an implementation of the ResourceLoaderBridge class. |
| 6 // The class is implemented using net::URLRequest, meaning it is a "simple" | 6 // The class is implemented using net::URLRequest, meaning it is a "simple" |
| 7 // version that directly issues requests. The more complicated one used in the | 7 // version that directly issues requests. The more complicated one used in the |
| 8 // browser uses IPC. | 8 // browser uses IPC. |
| 9 // | 9 // |
| 10 // Because net::URLRequest only provides an asynchronous resource loading API, | 10 // Because net::URLRequest only provides an asynchronous resource loading API, |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 #include "net/http/http_cache.h" | 58 #include "net/http/http_cache.h" |
| 59 #include "net/http/http_request_headers.h" | 59 #include "net/http/http_request_headers.h" |
| 60 #include "net/http/http_response_headers.h" | 60 #include "net/http/http_response_headers.h" |
| 61 #include "net/url_request/url_request.h" | 61 #include "net/url_request/url_request.h" |
| 62 #include "net/url_request/url_request_context.h" | 62 #include "net/url_request/url_request_context.h" |
| 63 #include "net/url_request/url_request_job.h" | 63 #include "net/url_request/url_request_job.h" |
| 64 #include "webkit/appcache/appcache_interfaces.h" | 64 #include "webkit/appcache/appcache_interfaces.h" |
| 65 #include "webkit/blob/blob_storage_controller.h" | 65 #include "webkit/blob/blob_storage_controller.h" |
| 66 #include "webkit/blob/blob_url_request_job.h" | 66 #include "webkit/blob/blob_url_request_job.h" |
| 67 #include "webkit/blob/shareable_file_reference.h" | 67 #include "webkit/blob/shareable_file_reference.h" |
| 68 #include "webkit/browser/fileapi/file_system_context.h" |
| 68 #include "webkit/browser/fileapi/file_system_dir_url_request_job.h" | 69 #include "webkit/browser/fileapi/file_system_dir_url_request_job.h" |
| 69 #include "webkit/browser/fileapi/file_system_url_request_job.h" | 70 #include "webkit/browser/fileapi/file_system_url_request_job.h" |
| 70 #include "webkit/fileapi/file_system_context.h" | |
| 71 #include "webkit/glue/resource_loader_bridge.h" | 71 #include "webkit/glue/resource_loader_bridge.h" |
| 72 #include "webkit/glue/resource_request_body.h" | 72 #include "webkit/glue/resource_request_body.h" |
| 73 #include "webkit/glue/webkit_glue.h" | 73 #include "webkit/glue/webkit_glue.h" |
| 74 #include "webkit/tools/test_shell/simple_appcache_system.h" | 74 #include "webkit/tools/test_shell/simple_appcache_system.h" |
| 75 #include "webkit/tools/test_shell/simple_file_system.h" | 75 #include "webkit/tools/test_shell/simple_file_system.h" |
| 76 #include "webkit/tools/test_shell/simple_file_writer.h" | 76 #include "webkit/tools/test_shell/simple_file_writer.h" |
| 77 #include "webkit/tools/test_shell/simple_socket_stream_bridge.h" | 77 #include "webkit/tools/test_shell/simple_socket_stream_bridge.h" |
| 78 #include "webkit/tools/test_shell/test_shell_request_context.h" | 78 #include "webkit/tools/test_shell/test_shell_request_context.h" |
| 79 #include "webkit/tools/test_shell/test_shell_webblobregistry_impl.h" | 79 #include "webkit/tools/test_shell/test_shell_webblobregistry_impl.h" |
| 80 | 80 |
| (...skipping 1078 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1159 if (!g_file_over_http_mappings) | 1159 if (!g_file_over_http_mappings) |
| 1160 g_file_over_http_mappings = new FileOverHTTPPathMappings(); | 1160 g_file_over_http_mappings = new FileOverHTTPPathMappings(); |
| 1161 g_file_over_http_mappings->AddMapping(file_path_template, http_prefix); | 1161 g_file_over_http_mappings->AddMapping(file_path_template, http_prefix); |
| 1162 } | 1162 } |
| 1163 | 1163 |
| 1164 // static | 1164 // static |
| 1165 webkit_glue::ResourceLoaderBridge* SimpleResourceLoaderBridge::Create( | 1165 webkit_glue::ResourceLoaderBridge* SimpleResourceLoaderBridge::Create( |
| 1166 const webkit_glue::ResourceLoaderBridge::RequestInfo& request_info) { | 1166 const webkit_glue::ResourceLoaderBridge::RequestInfo& request_info) { |
| 1167 return new ResourceLoaderBridgeImpl(request_info); | 1167 return new ResourceLoaderBridgeImpl(request_info); |
| 1168 } | 1168 } |
| OLD | NEW |