| 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 #include "chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.
h" | 5 #include "chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.
h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "chrome/browser/browser_process.h" | 8 #include "chrome/browser/browser_process.h" |
| 9 #include "chrome/browser/content_settings/host_content_settings_map.h" | 9 #include "chrome/browser/content_settings/host_content_settings_map.h" |
| 10 #include "chrome/browser/download/download_request_limiter.h" | 10 #include "chrome/browser/download/download_request_limiter.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 #include "chrome/browser/renderer_host/transfer_navigation_resource_throttle.h" | 22 #include "chrome/browser/renderer_host/transfer_navigation_resource_throttle.h" |
| 23 #include "chrome/browser/safe_browsing/safe_browsing_service.h" | 23 #include "chrome/browser/safe_browsing/safe_browsing_service.h" |
| 24 #include "chrome/browser/ui/auto_login_prompter.h" | 24 #include "chrome/browser/ui/auto_login_prompter.h" |
| 25 #include "chrome/browser/ui/login/login_prompt.h" | 25 #include "chrome/browser/ui/login/login_prompt.h" |
| 26 #include "chrome/common/chrome_notification_types.h" | 26 #include "chrome/common/chrome_notification_types.h" |
| 27 #include "chrome/common/extensions/user_script.h" | 27 #include "chrome/common/extensions/user_script.h" |
| 28 #include "chrome/common/render_messages.h" | 28 #include "chrome/common/render_messages.h" |
| 29 #include "content/browser/renderer_host/render_view_host.h" | 29 #include "content/browser/renderer_host/render_view_host.h" |
| 30 #include "content/browser/renderer_host/resource_dispatcher_host.h" | 30 #include "content/browser/renderer_host/resource_dispatcher_host.h" |
| 31 #include "content/browser/renderer_host/resource_dispatcher_host_request_info.h" | 31 #include "content/browser/renderer_host/resource_dispatcher_host_request_info.h" |
| 32 #include "content/browser/resource_context.h" | |
| 33 #include "content/public/browser/browser_thread.h" | 32 #include "content/public/browser/browser_thread.h" |
| 34 #include "content/public/browser/notification_service.h" | 33 #include "content/public/browser/notification_service.h" |
| 34 #include "content/public/browser/resource_context.h" |
| 35 #include "net/base/load_flags.h" | 35 #include "net/base/load_flags.h" |
| 36 #include "net/base/ssl_config_service.h" | 36 #include "net/base/ssl_config_service.h" |
| 37 | 37 |
| 38 // TODO(oshima): Enable this for other platforms. | 38 // TODO(oshima): Enable this for other platforms. |
| 39 #if defined(OS_CHROMEOS) | 39 #if defined(OS_CHROMEOS) |
| 40 #include "chrome/browser/renderer_host/offline_resource_throttle.h" | 40 #include "chrome/browser/renderer_host/offline_resource_throttle.h" |
| 41 #endif | 41 #endif |
| 42 | 42 |
| 43 using content::BrowserThread; | 43 using content::BrowserThread; |
| 44 using content::ResourceDispatcherHostLoginDelegate; | 44 using content::ResourceDispatcherHostLoginDelegate; |
| (...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 323 // suggest auto-login, if available. | 323 // suggest auto-login, if available. |
| 324 AutoLoginPrompter::ShowInfoBarIfPossible(request, info->child_id(), | 324 AutoLoginPrompter::ShowInfoBarIfPossible(request, info->child_id(), |
| 325 info->route_id()); | 325 info->route_id()); |
| 326 } | 326 } |
| 327 | 327 |
| 328 void ChromeResourceDispatcherHostDelegate::OnRequestRedirected( | 328 void ChromeResourceDispatcherHostDelegate::OnRequestRedirected( |
| 329 net::URLRequest* request, | 329 net::URLRequest* request, |
| 330 content::ResourceResponse* response) { | 330 content::ResourceResponse* response) { |
| 331 LoadTimingObserver::PopulateTimingInfo(request, response); | 331 LoadTimingObserver::PopulateTimingInfo(request, response); |
| 332 } | 332 } |
| OLD | NEW |