| 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.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/renderer_host/download_resource_handler.h" | 25 #include "chrome/browser/renderer_host/download_resource_handler.h" |
| 26 #include "content/browser/appcache/chrome_appcache_service.h" | 26 #include "content/browser/appcache/chrome_appcache_service.h" |
| 27 #include "content/browser/cert_store.h" | 27 #include "content/browser/cert_store.h" |
| 28 #include "content/browser/child_process_security_policy.h" | 28 #include "content/browser/child_process_security_policy.h" |
| 29 #include "content/browser/chrome_blob_storage_context.h" | 29 #include "content/browser/chrome_blob_storage_context.h" |
| (...skipping 2051 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2081 return HTTP_AUTH_RESOURCE_BLOCKED_CROSS; | 2081 return HTTP_AUTH_RESOURCE_BLOCKED_CROSS; |
| 2082 } | 2082 } |
| 2083 | 2083 |
| 2084 bool ResourceDispatcherHost::allow_cross_origin_auth_prompt() { | 2084 bool ResourceDispatcherHost::allow_cross_origin_auth_prompt() { |
| 2085 return allow_cross_origin_auth_prompt_; | 2085 return allow_cross_origin_auth_prompt_; |
| 2086 } | 2086 } |
| 2087 | 2087 |
| 2088 void ResourceDispatcherHost::set_allow_cross_origin_auth_prompt(bool value) { | 2088 void ResourceDispatcherHost::set_allow_cross_origin_auth_prompt(bool value) { |
| 2089 allow_cross_origin_auth_prompt_ = value; | 2089 allow_cross_origin_auth_prompt_ = value; |
| 2090 } | 2090 } |
| OLD | NEW |