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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 #include "net/url_request/url_request_context.h" | 75 #include "net/url_request/url_request_context.h" |
76 #include "net/url_request/url_request_job_factory.h" | 76 #include "net/url_request/url_request_job_factory.h" |
77 #include "webkit/appcache/appcache_interceptor.h" | 77 #include "webkit/appcache/appcache_interceptor.h" |
78 #include "webkit/appcache/appcache_interfaces.h" | 78 #include "webkit/appcache/appcache_interfaces.h" |
79 #include "webkit/blob/blob_storage_controller.h" | 79 #include "webkit/blob/blob_storage_controller.h" |
80 #include "webkit/blob/deletable_file_reference.h" | 80 #include "webkit/blob/deletable_file_reference.h" |
81 | 81 |
82 using base::Time; | 82 using base::Time; |
83 using base::TimeDelta; | 83 using base::TimeDelta; |
84 using base::TimeTicks; | 84 using base::TimeTicks; |
| 85 using content::BrowserThread; |
85 using webkit_blob::DeletableFileReference; | 86 using webkit_blob::DeletableFileReference; |
86 | 87 |
87 // ---------------------------------------------------------------------------- | 88 // ---------------------------------------------------------------------------- |
88 | 89 |
89 // A ShutdownTask proxies a shutdown task from the UI thread to the IO thread. | 90 // A ShutdownTask proxies a shutdown task from the UI thread to the IO thread. |
90 // It should be constructed on the UI thread and run in the IO thread. | 91 // It should be constructed on the UI thread and run in the IO thread. |
91 class ResourceDispatcherHost::ShutdownTask : public Task { | 92 class ResourceDispatcherHost::ShutdownTask : public Task { |
92 public: | 93 public: |
93 explicit ShutdownTask(ResourceDispatcherHost* resource_dispatcher_host) | 94 explicit ShutdownTask(ResourceDispatcherHost* resource_dispatcher_host) |
94 : rdh_(resource_dispatcher_host) { | 95 : rdh_(resource_dispatcher_host) { |
(...skipping 2055 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2150 return HTTP_AUTH_RESOURCE_BLOCKED_CROSS; | 2151 return HTTP_AUTH_RESOURCE_BLOCKED_CROSS; |
2151 } | 2152 } |
2152 | 2153 |
2153 bool ResourceDispatcherHost::allow_cross_origin_auth_prompt() { | 2154 bool ResourceDispatcherHost::allow_cross_origin_auth_prompt() { |
2154 return allow_cross_origin_auth_prompt_; | 2155 return allow_cross_origin_auth_prompt_; |
2155 } | 2156 } |
2156 | 2157 |
2157 void ResourceDispatcherHost::set_allow_cross_origin_auth_prompt(bool value) { | 2158 void ResourceDispatcherHost::set_allow_cross_origin_auth_prompt(bool value) { |
2158 allow_cross_origin_auth_prompt_ = value; | 2159 allow_cross_origin_auth_prompt_ = value; |
2159 } | 2160 } |
OLD | NEW |