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 17 matching lines...) Expand all Loading... |
28 #include "chrome/browser/profiles/profile_io_data.h" | 28 #include "chrome/browser/profiles/profile_io_data.h" |
29 #include "chrome/browser/renderer_host/safe_browsing_resource_throttle_factory.h
" | 29 #include "chrome/browser/renderer_host/safe_browsing_resource_throttle_factory.h
" |
30 #include "chrome/browser/safe_browsing/safe_browsing_service.h" | 30 #include "chrome/browser/safe_browsing/safe_browsing_service.h" |
31 #include "chrome/browser/signin/signin_header_helper.h" | 31 #include "chrome/browser/signin/signin_header_helper.h" |
32 #include "chrome/browser/tab_contents/tab_util.h" | 32 #include "chrome/browser/tab_contents/tab_util.h" |
33 #include "chrome/browser/ui/login/login_prompt.h" | 33 #include "chrome/browser/ui/login/login_prompt.h" |
34 #include "chrome/browser/ui/sync/one_click_signin_helper.h" | 34 #include "chrome/browser/ui/sync/one_click_signin_helper.h" |
35 #include "chrome/common/render_messages.h" | 35 #include "chrome/common/render_messages.h" |
36 #include "chrome/common/url_constants.h" | 36 #include "chrome/common/url_constants.h" |
37 #include "components/google/core/browser/google_util.h" | 37 #include "components/google/core/browser/google_util.h" |
38 #include "components/variations/variations_http_header_provider.h" | 38 #include "components/variations/net/variations_http_header_provider.h" |
39 #include "content/public/browser/browser_thread.h" | 39 #include "content/public/browser/browser_thread.h" |
40 #include "content/public/browser/notification_service.h" | 40 #include "content/public/browser/notification_service.h" |
41 #include "content/public/browser/render_process_host.h" | 41 #include "content/public/browser/render_process_host.h" |
42 #include "content/public/browser/render_view_host.h" | 42 #include "content/public/browser/render_view_host.h" |
43 #include "content/public/browser/resource_context.h" | 43 #include "content/public/browser/resource_context.h" |
44 #include "content/public/browser/resource_dispatcher_host.h" | 44 #include "content/public/browser/resource_dispatcher_host.h" |
45 #include "content/public/browser/resource_request_info.h" | 45 #include "content/public/browser/resource_request_info.h" |
46 #include "content/public/browser/stream_info.h" | 46 #include "content/public/browser/stream_info.h" |
47 #include "content/public/browser/web_contents.h" | 47 #include "content/public/browser/web_contents.h" |
48 #include "content/public/common/resource_response.h" | 48 #include "content/public/common/resource_response.h" |
(...skipping 702 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
751 url_request->GetTotalReceivedBytes())); | 751 url_request->GetTotalReceivedBytes())); |
752 } | 752 } |
753 } | 753 } |
754 | 754 |
755 // static | 755 // static |
756 void ChromeResourceDispatcherHostDelegate:: | 756 void ChromeResourceDispatcherHostDelegate:: |
757 SetExternalProtocolHandlerDelegateForTesting( | 757 SetExternalProtocolHandlerDelegateForTesting( |
758 ExternalProtocolHandler::Delegate* delegate) { | 758 ExternalProtocolHandler::Delegate* delegate) { |
759 g_external_protocol_handler_delegate = delegate; | 759 g_external_protocol_handler_delegate = delegate; |
760 } | 760 } |
OLD | NEW |