OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/renderer_host/resource_dispatcher_host.h" | 7 #include "content/browser/renderer_host/resource_dispatcher_host.h" |
8 | 8 |
9 #include <set> | 9 #include <set> |
10 #include <vector> | 10 #include <vector> |
(...skipping 19 matching lines...) Expand all Loading... |
30 #include "chrome/browser/prerender/prerender_resource_handler.h" | 30 #include "chrome/browser/prerender/prerender_resource_handler.h" |
31 #include "chrome/browser/profiles/profile.h" | 31 #include "chrome/browser/profiles/profile.h" |
32 #include "chrome/browser/renderer_host/download_resource_handler.h" | 32 #include "chrome/browser/renderer_host/download_resource_handler.h" |
33 #include "chrome/browser/renderer_host/safe_browsing_resource_handler.h" | 33 #include "chrome/browser/renderer_host/safe_browsing_resource_handler.h" |
34 #include "chrome/browser/renderer_host/save_file_resource_handler.h" | 34 #include "chrome/browser/renderer_host/save_file_resource_handler.h" |
35 #include "chrome/browser/safe_browsing/safe_browsing_service.h" | 35 #include "chrome/browser/safe_browsing/safe_browsing_service.h" |
36 #include "chrome/browser/ssl/ssl_client_auth_handler.h" | 36 #include "chrome/browser/ssl/ssl_client_auth_handler.h" |
37 #include "chrome/browser/ssl/ssl_manager.h" | 37 #include "chrome/browser/ssl/ssl_manager.h" |
38 #include "chrome/browser/ui/login/login_prompt.h" | 38 #include "chrome/browser/ui/login/login_prompt.h" |
39 #include "chrome/common/chrome_switches.h" | 39 #include "chrome/common/chrome_switches.h" |
40 #include "chrome/common/render_messages.h" | |
41 #include "chrome/common/render_messages_params.h" | |
42 #include "chrome/common/url_constants.h" | 40 #include "chrome/common/url_constants.h" |
43 #include "content/browser/cert_store.h" | 41 #include "content/browser/cert_store.h" |
44 #include "content/browser/child_process_security_policy.h" | 42 #include "content/browser/child_process_security_policy.h" |
45 #include "content/browser/chrome_blob_storage_context.h" | 43 #include "content/browser/chrome_blob_storage_context.h" |
46 #include "content/browser/cross_site_request_manager.h" | 44 #include "content/browser/cross_site_request_manager.h" |
47 #include "content/browser/in_process_webkit/webkit_thread.h" | 45 #include "content/browser/in_process_webkit/webkit_thread.h" |
48 #include "content/browser/plugin_service.h" | 46 #include "content/browser/plugin_service.h" |
49 #include "content/browser/renderer_host/async_resource_handler.h" | 47 #include "content/browser/renderer_host/async_resource_handler.h" |
50 #include "content/browser/renderer_host/buffered_resource_handler.h" | 48 #include "content/browser/renderer_host/buffered_resource_handler.h" |
51 #include "content/browser/renderer_host/cross_site_resource_handler.h" | 49 #include "content/browser/renderer_host/cross_site_resource_handler.h" |
52 #include "content/browser/renderer_host/global_request_id.h" | 50 #include "content/browser/renderer_host/global_request_id.h" |
53 #include "content/browser/renderer_host/redirect_to_file_resource_handler.h" | 51 #include "content/browser/renderer_host/redirect_to_file_resource_handler.h" |
54 #include "content/browser/renderer_host/render_view_host.h" | 52 #include "content/browser/renderer_host/render_view_host.h" |
55 #include "content/browser/renderer_host/render_view_host_delegate.h" | 53 #include "content/browser/renderer_host/render_view_host_delegate.h" |
56 #include "content/browser/renderer_host/render_view_host_notification_task.h" | 54 #include "content/browser/renderer_host/render_view_host_notification_task.h" |
57 #include "content/browser/renderer_host/resource_dispatcher_host_request_info.h" | 55 #include "content/browser/renderer_host/resource_dispatcher_host_request_info.h" |
58 #include "content/browser/renderer_host/resource_message_filter.h" | 56 #include "content/browser/renderer_host/resource_message_filter.h" |
59 #include "content/browser/renderer_host/resource_queue.h" | 57 #include "content/browser/renderer_host/resource_queue.h" |
60 #include "content/browser/renderer_host/resource_request_details.h" | 58 #include "content/browser/renderer_host/resource_request_details.h" |
61 #include "content/browser/renderer_host/sync_resource_handler.h" | 59 #include "content/browser/renderer_host/sync_resource_handler.h" |
62 #include "content/browser/worker_host/worker_service.h" | 60 #include "content/browser/worker_host/worker_service.h" |
63 #include "content/common/notification_service.h" | 61 #include "content/common/notification_service.h" |
64 #include "content/common/resource_messages.h" | 62 #include "content/common/resource_messages.h" |
| 63 #include "content/common/view_messages.h" |
65 #include "net/base/auth.h" | 64 #include "net/base/auth.h" |
66 #include "net/base/cert_status_flags.h" | 65 #include "net/base/cert_status_flags.h" |
67 #include "net/base/cookie_monster.h" | 66 #include "net/base/cookie_monster.h" |
68 #include "net/base/load_flags.h" | 67 #include "net/base/load_flags.h" |
69 #include "net/base/mime_util.h" | 68 #include "net/base/mime_util.h" |
70 #include "net/base/net_errors.h" | 69 #include "net/base/net_errors.h" |
71 #include "net/base/request_priority.h" | 70 #include "net/base/request_priority.h" |
72 #include "net/base/ssl_cert_request_info.h" | 71 #include "net/base/ssl_cert_request_info.h" |
73 #include "net/base/upload_data.h" | 72 #include "net/base/upload_data.h" |
74 #include "net/http/http_response_headers.h" | 73 #include "net/http/http_response_headers.h" |
(...skipping 1871 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1946 return is_prefetch_enabled_; | 1945 return is_prefetch_enabled_; |
1947 } | 1946 } |
1948 | 1947 |
1949 // static | 1948 // static |
1950 void ResourceDispatcherHost::set_is_prefetch_enabled(bool value) { | 1949 void ResourceDispatcherHost::set_is_prefetch_enabled(bool value) { |
1951 is_prefetch_enabled_ = value; | 1950 is_prefetch_enabled_ = value; |
1952 } | 1951 } |
1953 | 1952 |
1954 // static | 1953 // static |
1955 bool ResourceDispatcherHost::is_prefetch_enabled_ = false; | 1954 bool ResourceDispatcherHost::is_prefetch_enabled_ = false; |
OLD | NEW |