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 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc
e-loading | 5 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc
e-loading |
6 | 6 |
7 #include "content/browser/loader/resource_dispatcher_host_impl.h" | 7 #include "content/browser/loader/resource_dispatcher_host_impl.h" |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <set> | 10 #include <set> |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 #include "content/browser/plugin_service_impl.h" | 47 #include "content/browser/plugin_service_impl.h" |
48 #include "content/browser/renderer_host/render_view_host_delegate.h" | 48 #include "content/browser/renderer_host/render_view_host_delegate.h" |
49 #include "content/browser/renderer_host/render_view_host_impl.h" | 49 #include "content/browser/renderer_host/render_view_host_impl.h" |
50 #include "content/browser/resource_context_impl.h" | 50 #include "content/browser/resource_context_impl.h" |
51 #include "content/browser/service_worker/service_worker_request_handler.h" | 51 #include "content/browser/service_worker/service_worker_request_handler.h" |
52 #include "content/browser/streams/stream.h" | 52 #include "content/browser/streams/stream.h" |
53 #include "content/browser/streams/stream_context.h" | 53 #include "content/browser/streams/stream_context.h" |
54 #include "content/browser/streams/stream_registry.h" | 54 #include "content/browser/streams/stream_registry.h" |
55 #include "content/browser/worker_host/worker_service_impl.h" | 55 #include "content/browser/worker_host/worker_service_impl.h" |
56 #include "content/browser/web_contents/web_contents_impl.h" | 56 #include "content/browser/web_contents/web_contents_impl.h" |
| 57 #include "content/common/appcache_interfaces.h" |
57 #include "content/common/resource_messages.h" | 58 #include "content/common/resource_messages.h" |
58 #include "content/common/resource_request_body.h" | 59 #include "content/common/resource_request_body.h" |
59 #include "content/common/ssl_status_serialization.h" | 60 #include "content/common/ssl_status_serialization.h" |
60 #include "content/common/view_messages.h" | 61 #include "content/common/view_messages.h" |
61 #include "content/public/browser/browser_thread.h" | 62 #include "content/public/browser/browser_thread.h" |
62 #include "content/public/browser/content_browser_client.h" | 63 #include "content/public/browser/content_browser_client.h" |
63 #include "content/public/browser/download_manager.h" | 64 #include "content/public/browser/download_manager.h" |
64 #include "content/public/browser/download_url_parameters.h" | 65 #include "content/public/browser/download_url_parameters.h" |
65 #include "content/public/browser/global_request_id.h" | 66 #include "content/public/browser/global_request_id.h" |
66 #include "content/public/browser/resource_dispatcher_host_delegate.h" | 67 #include "content/public/browser/resource_dispatcher_host_delegate.h" |
(...skipping 20 matching lines...) Expand all Loading... |
87 #include "net/url_request/url_request.h" | 88 #include "net/url_request/url_request.h" |
88 #include "net/url_request/url_request_context.h" | 89 #include "net/url_request/url_request_context.h" |
89 #include "net/url_request/url_request_job_factory.h" | 90 #include "net/url_request/url_request_job_factory.h" |
90 #include "url/url_constants.h" | 91 #include "url/url_constants.h" |
91 #include "webkit/common/blob/blob_data.h" | 92 #include "webkit/common/blob/blob_data.h" |
92 #include "webkit/browser/blob/blob_data_handle.h" | 93 #include "webkit/browser/blob/blob_data_handle.h" |
93 #include "webkit/browser/blob/blob_storage_context.h" | 94 #include "webkit/browser/blob/blob_storage_context.h" |
94 #include "webkit/browser/blob/blob_url_request_job_factory.h" | 95 #include "webkit/browser/blob/blob_url_request_job_factory.h" |
95 #include "webkit/browser/fileapi/file_permission_policy.h" | 96 #include "webkit/browser/fileapi/file_permission_policy.h" |
96 #include "webkit/browser/fileapi/file_system_context.h" | 97 #include "webkit/browser/fileapi/file_system_context.h" |
97 #include "webkit/common/appcache/appcache_interfaces.h" | |
98 #include "webkit/common/blob/shareable_file_reference.h" | 98 #include "webkit/common/blob/shareable_file_reference.h" |
99 | 99 |
100 using base::Time; | 100 using base::Time; |
101 using base::TimeDelta; | 101 using base::TimeDelta; |
102 using base::TimeTicks; | 102 using base::TimeTicks; |
103 using webkit_blob::ShareableFileReference; | 103 using webkit_blob::ShareableFileReference; |
104 | 104 |
105 // ---------------------------------------------------------------------------- | 105 // ---------------------------------------------------------------------------- |
106 | 106 |
107 namespace content { | 107 namespace content { |
(...skipping 1876 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1984 if ((load_flags & net::LOAD_REPORT_RAW_HEADERS) | 1984 if ((load_flags & net::LOAD_REPORT_RAW_HEADERS) |
1985 && !policy->CanReadRawCookies(child_id)) { | 1985 && !policy->CanReadRawCookies(child_id)) { |
1986 VLOG(1) << "Denied unauthorized request for raw headers"; | 1986 VLOG(1) << "Denied unauthorized request for raw headers"; |
1987 load_flags &= ~net::LOAD_REPORT_RAW_HEADERS; | 1987 load_flags &= ~net::LOAD_REPORT_RAW_HEADERS; |
1988 } | 1988 } |
1989 | 1989 |
1990 return load_flags; | 1990 return load_flags; |
1991 } | 1991 } |
1992 | 1992 |
1993 } // namespace content | 1993 } // namespace content |
OLD | NEW |