| 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 <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/base64.h" | 10 #include "base/base64.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 #include "chrome/browser/prerender/prerender_tracker.h" | 24 #include "chrome/browser/prerender/prerender_tracker.h" |
| 25 #include "chrome/browser/prerender/prerender_util.h" | 25 #include "chrome/browser/prerender/prerender_util.h" |
| 26 #include "chrome/browser/profiles/profile.h" | 26 #include "chrome/browser/profiles/profile.h" |
| 27 #include "chrome/browser/profiles/profile_io_data.h" | 27 #include "chrome/browser/profiles/profile_io_data.h" |
| 28 #include "chrome/browser/renderer_host/safe_browsing_resource_throttle_factory.h
" | 28 #include "chrome/browser/renderer_host/safe_browsing_resource_throttle_factory.h
" |
| 29 #include "chrome/browser/safe_browsing/safe_browsing_service.h" | 29 #include "chrome/browser/safe_browsing/safe_browsing_service.h" |
| 30 #include "chrome/browser/signin/signin_header_helper.h" | 30 #include "chrome/browser/signin/signin_header_helper.h" |
| 31 #include "chrome/browser/tab_contents/tab_util.h" | 31 #include "chrome/browser/tab_contents/tab_util.h" |
| 32 #include "chrome/browser/ui/login/login_prompt.h" | 32 #include "chrome/browser/ui/login/login_prompt.h" |
| 33 #include "chrome/browser/ui/sync/one_click_signin_helper.h" | 33 #include "chrome/browser/ui/sync/one_click_signin_helper.h" |
| 34 #include "chrome/common/extensions/extension_constants.h" | |
| 35 #include "chrome/common/render_messages.h" | 34 #include "chrome/common/render_messages.h" |
| 36 #include "chrome/common/url_constants.h" | 35 #include "chrome/common/url_constants.h" |
| 37 #include "components/google/core/browser/google_util.h" | 36 #include "components/google/core/browser/google_util.h" |
| 38 #include "components/variations/variations_http_header_provider.h" | 37 #include "components/variations/variations_http_header_provider.h" |
| 39 #include "content/public/browser/browser_thread.h" | 38 #include "content/public/browser/browser_thread.h" |
| 40 #include "content/public/browser/notification_service.h" | 39 #include "content/public/browser/notification_service.h" |
| 41 #include "content/public/browser/render_process_host.h" | 40 #include "content/public/browser/render_process_host.h" |
| 42 #include "content/public/browser/render_view_host.h" | 41 #include "content/public/browser/render_view_host.h" |
| 43 #include "content/public/browser/resource_context.h" | 42 #include "content/public/browser/resource_context.h" |
| 44 #include "content/public/browser/resource_dispatcher_host.h" | 43 #include "content/public/browser/resource_dispatcher_host.h" |
| 45 #include "content/public/browser/resource_request_info.h" | 44 #include "content/public/browser/resource_request_info.h" |
| 46 #include "content/public/browser/stream_handle.h" | 45 #include "content/public/browser/stream_handle.h" |
| 47 #include "content/public/browser/web_contents.h" | 46 #include "content/public/browser/web_contents.h" |
| 48 #include "content/public/common/resource_response.h" | 47 #include "content/public/common/resource_response.h" |
| 48 #include "extensions/common/extension_urls.h" |
| 49 #include "net/base/load_flags.h" | 49 #include "net/base/load_flags.h" |
| 50 #include "net/base/load_timing_info.h" | 50 #include "net/base/load_timing_info.h" |
| 51 #include "net/base/request_priority.h" | 51 #include "net/base/request_priority.h" |
| 52 #include "net/http/http_response_headers.h" | 52 #include "net/http/http_response_headers.h" |
| 53 #include "net/url_request/url_request.h" | 53 #include "net/url_request/url_request.h" |
| 54 | 54 |
| 55 #if !defined(DISABLE_NACL) | 55 #if !defined(DISABLE_NACL) |
| 56 #include "chrome/browser/component_updater/pnacl/pnacl_component_installer.h" | 56 #include "chrome/browser/component_updater/pnacl/pnacl_component_installer.h" |
| 57 #endif | 57 #endif |
| 58 | 58 |
| (...skipping 676 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 735 url_request->GetTotalReceivedBytes())); | 735 url_request->GetTotalReceivedBytes())); |
| 736 } | 736 } |
| 737 } | 737 } |
| 738 | 738 |
| 739 // static | 739 // static |
| 740 void ChromeResourceDispatcherHostDelegate:: | 740 void ChromeResourceDispatcherHostDelegate:: |
| 741 SetExternalProtocolHandlerDelegateForTesting( | 741 SetExternalProtocolHandlerDelegateForTesting( |
| 742 ExternalProtocolHandler::Delegate* delegate) { | 742 ExternalProtocolHandler::Delegate* delegate) { |
| 743 g_external_protocol_handler_delegate = delegate; | 743 g_external_protocol_handler_delegate = delegate; |
| 744 } | 744 } |
| OLD | NEW |