| 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 556 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 567 throttles->push_back(throttle); | 567 throttles->push_back(throttle); |
| 568 } | 568 } |
| 569 #endif | 569 #endif |
| 570 | 570 |
| 571 #if defined(ENABLE_DATA_REDUCTION_PROXY_DEBUGGING) | 571 #if defined(ENABLE_DATA_REDUCTION_PROXY_DEBUGGING) |
| 572 scoped_ptr<content::ResourceThrottle> data_reduction_proxy_throttle = | 572 scoped_ptr<content::ResourceThrottle> data_reduction_proxy_throttle = |
| 573 data_reduction_proxy::DataReductionProxyDebugResourceThrottle:: | 573 data_reduction_proxy::DataReductionProxyDebugResourceThrottle:: |
| 574 MaybeCreate( | 574 MaybeCreate( |
| 575 request, resource_type, io_data->data_reduction_proxy_io_data()); | 575 request, resource_type, io_data->data_reduction_proxy_io_data()); |
| 576 if (data_reduction_proxy_throttle) | 576 if (data_reduction_proxy_throttle) |
| 577 throttles->push_back(data_reduction_proxy_throttle.release()); | 577 throttles->push_back(data_reduction_proxy_throttle.Pass()); |
| 578 #endif | 578 #endif |
| 579 | 579 |
| 580 #if defined(ENABLE_SUPERVISED_USERS) | 580 #if defined(ENABLE_SUPERVISED_USERS) |
| 581 bool is_subresource_request = | 581 bool is_subresource_request = |
| 582 resource_type != content::RESOURCE_TYPE_MAIN_FRAME; | 582 resource_type != content::RESOURCE_TYPE_MAIN_FRAME; |
| 583 throttles->push_back(new SupervisedUserResourceThrottle( | 583 throttles->push_back(new SupervisedUserResourceThrottle( |
| 584 request, !is_subresource_request, | 584 request, !is_subresource_request, |
| 585 io_data->supervised_user_url_filter())); | 585 io_data->supervised_user_url_filter())); |
| 586 #endif | 586 #endif |
| 587 | 587 |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 770 url_request->GetTotalReceivedBytes())); | 770 url_request->GetTotalReceivedBytes())); |
| 771 } | 771 } |
| 772 } | 772 } |
| 773 | 773 |
| 774 // static | 774 // static |
| 775 void ChromeResourceDispatcherHostDelegate:: | 775 void ChromeResourceDispatcherHostDelegate:: |
| 776 SetExternalProtocolHandlerDelegateForTesting( | 776 SetExternalProtocolHandlerDelegateForTesting( |
| 777 ExternalProtocolHandler::Delegate* delegate) { | 777 ExternalProtocolHandler::Delegate* delegate) { |
| 778 g_external_protocol_handler_delegate = delegate; | 778 g_external_protocol_handler_delegate = delegate; |
| 779 } | 779 } |
| OLD | NEW |