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> |
11 | 11 |
12 #include "base/bind.h" | 12 #include "base/bind.h" |
13 #include "base/command_line.h" | 13 #include "base/command_line.h" |
14 #include "base/logging.h" | 14 #include "base/logging.h" |
15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
16 #include "base/message_loop.h" | 16 #include "base/message_loop.h" |
17 #include "base/metrics/histogram.h" | 17 #include "base/metrics/histogram.h" |
18 #include "base/shared_memory.h" | 18 #include "base/shared_memory.h" |
19 #include "base/stl_util-inl.h" | 19 #include "base/stl_util-inl.h" |
20 #include "base/time.h" | 20 #include "base/time.h" |
21 #include "chrome/browser/download/download_file_manager.h" | 21 #include "chrome/browser/download/download_file_manager.h" |
22 #include "chrome/browser/download/download_manager.h" | 22 #include "chrome/browser/download/download_manager.h" |
23 #include "chrome/browser/download/download_request_limiter.h" | 23 #include "chrome/browser/download/download_request_limiter.h" |
24 #include "chrome/browser/download/download_util.h" | 24 #include "chrome/browser/download/download_util.h" |
25 #include "chrome/browser/download/save_file_manager.h" | 25 #include "chrome/browser/download/save_file_manager.h" |
26 #include "chrome/browser/renderer_host/download_resource_handler.h" | 26 #include "chrome/browser/renderer_host/download_resource_handler.h" |
27 #include "chrome/browser/renderer_host/save_file_resource_handler.h" | 27 #include "chrome/browser/renderer_host/save_file_resource_handler.h" |
28 #include "chrome/browser/ssl/ssl_client_auth_handler.h" | |
29 #include "chrome/browser/ssl/ssl_manager.h" | |
30 #include "content/browser/appcache/chrome_appcache_service.h" | 28 #include "content/browser/appcache/chrome_appcache_service.h" |
31 #include "content/browser/cert_store.h" | 29 #include "content/browser/cert_store.h" |
32 #include "content/browser/child_process_security_policy.h" | 30 #include "content/browser/child_process_security_policy.h" |
33 #include "content/browser/chrome_blob_storage_context.h" | 31 #include "content/browser/chrome_blob_storage_context.h" |
34 #include "content/browser/content_browser_client.h" | 32 #include "content/browser/content_browser_client.h" |
35 #include "content/browser/cross_site_request_manager.h" | 33 #include "content/browser/cross_site_request_manager.h" |
36 #include "content/browser/in_process_webkit/webkit_thread.h" | 34 #include "content/browser/in_process_webkit/webkit_thread.h" |
37 #include "content/browser/plugin_service.h" | 35 #include "content/browser/plugin_service.h" |
38 #include "content/browser/resource_context.h" | 36 #include "content/browser/resource_context.h" |
39 #include "content/browser/renderer_host/async_resource_handler.h" | 37 #include "content/browser/renderer_host/async_resource_handler.h" |
40 #include "content/browser/renderer_host/buffered_resource_handler.h" | 38 #include "content/browser/renderer_host/buffered_resource_handler.h" |
41 #include "content/browser/renderer_host/cross_site_resource_handler.h" | 39 #include "content/browser/renderer_host/cross_site_resource_handler.h" |
42 #include "content/browser/renderer_host/global_request_id.h" | 40 #include "content/browser/renderer_host/global_request_id.h" |
43 #include "content/browser/renderer_host/redirect_to_file_resource_handler.h" | 41 #include "content/browser/renderer_host/redirect_to_file_resource_handler.h" |
44 #include "content/browser/renderer_host/render_view_host.h" | 42 #include "content/browser/renderer_host/render_view_host.h" |
45 #include "content/browser/renderer_host/render_view_host_delegate.h" | 43 #include "content/browser/renderer_host/render_view_host_delegate.h" |
46 #include "content/browser/renderer_host/render_view_host_notification_task.h" | 44 #include "content/browser/renderer_host/render_view_host_notification_task.h" |
47 #include "content/browser/renderer_host/resource_dispatcher_host_delegate.h" | 45 #include "content/browser/renderer_host/resource_dispatcher_host_delegate.h" |
48 #include "content/browser/renderer_host/resource_dispatcher_host_login_delegate.
h" | 46 #include "content/browser/renderer_host/resource_dispatcher_host_login_delegate.
h" |
49 #include "content/browser/renderer_host/resource_dispatcher_host_request_info.h" | 47 #include "content/browser/renderer_host/resource_dispatcher_host_request_info.h" |
50 #include "content/browser/renderer_host/resource_message_filter.h" | 48 #include "content/browser/renderer_host/resource_message_filter.h" |
51 #include "content/browser/renderer_host/resource_queue.h" | 49 #include "content/browser/renderer_host/resource_queue.h" |
52 #include "content/browser/renderer_host/resource_request_details.h" | 50 #include "content/browser/renderer_host/resource_request_details.h" |
53 #include "content/browser/renderer_host/sync_resource_handler.h" | 51 #include "content/browser/renderer_host/sync_resource_handler.h" |
| 52 #include "content/browser/ssl/ssl_client_auth_handler.h" |
| 53 #include "content/browser/ssl/ssl_manager.h" |
54 #include "content/browser/worker_host/worker_service.h" | 54 #include "content/browser/worker_host/worker_service.h" |
55 #include "content/common/content_switches.h" | 55 #include "content/common/content_switches.h" |
56 #include "content/common/notification_service.h" | 56 #include "content/common/notification_service.h" |
57 #include "content/common/resource_messages.h" | 57 #include "content/common/resource_messages.h" |
58 #include "content/common/url_constants.h" | 58 #include "content/common/url_constants.h" |
59 #include "content/common/view_messages.h" | 59 #include "content/common/view_messages.h" |
60 #include "net/base/auth.h" | 60 #include "net/base/auth.h" |
61 #include "net/base/cert_status_flags.h" | 61 #include "net/base/cert_status_flags.h" |
62 #include "net/base/cookie_monster.h" | 62 #include "net/base/cookie_monster.h" |
63 #include "net/base/load_flags.h" | 63 #include "net/base/load_flags.h" |
(...skipping 1943 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2007 | 2007 |
2008 bool ResourceDispatcherHost::allow_cross_origin_auth_prompt() { | 2008 bool ResourceDispatcherHost::allow_cross_origin_auth_prompt() { |
2009 return allow_cross_origin_auth_prompt_; | 2009 return allow_cross_origin_auth_prompt_; |
2010 } | 2010 } |
2011 | 2011 |
2012 void ResourceDispatcherHost::set_allow_cross_origin_auth_prompt(bool value) { | 2012 void ResourceDispatcherHost::set_allow_cross_origin_auth_prompt(bool value) { |
2013 allow_cross_origin_auth_prompt_ = value; | 2013 allow_cross_origin_auth_prompt_ = value; |
2014 } | 2014 } |
2015 | 2015 |
2016 | 2016 |
OLD | NEW |