| 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 | 8 |
| 9 #include "base/base64.h" | 9 #include "base/base64.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 321 SafeBrowsingResourceThrottleFactory::Create(request, child_id, route_id, | 321 SafeBrowsingResourceThrottleFactory::Create(request, child_id, route_id, |
| 322 is_subresource_request, safe_browsing_); | 322 is_subresource_request, safe_browsing_); |
| 323 if (throttle) | 323 if (throttle) |
| 324 throttles->push_back(throttle); | 324 throttles->push_back(throttle); |
| 325 } | 325 } |
| 326 #endif | 326 #endif |
| 327 | 327 |
| 328 #if !defined(OS_ANDROID) | 328 #if !defined(OS_ANDROID) |
| 329 bool is_subresource_request = resource_type != ResourceType::MAIN_FRAME; | 329 bool is_subresource_request = resource_type != ResourceType::MAIN_FRAME; |
| 330 throttles->push_back(new ManagedModeResourceThrottle( | 330 throttles->push_back(new ManagedModeResourceThrottle( |
| 331 request, child_id, route_id, !is_subresource_request)); | 331 request, child_id, route_id, !is_subresource_request, |
| 332 io_data->managed_mode_url_filter())); |
| 332 #endif | 333 #endif |
| 333 | 334 |
| 334 content::ResourceThrottle* throttle = | 335 content::ResourceThrottle* throttle = |
| 335 user_script_listener_->CreateResourceThrottle(request->url(), | 336 user_script_listener_->CreateResourceThrottle(request->url(), |
| 336 resource_type); | 337 resource_type); |
| 337 if (throttle) | 338 if (throttle) |
| 338 throttles->push_back(throttle); | 339 throttles->push_back(throttle); |
| 339 } | 340 } |
| 340 | 341 |
| 341 #if defined(ENABLE_ONE_CLICK_SIGNIN) | 342 #if defined(ENABLE_ONE_CLICK_SIGNIN) |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 440 OneClickSigninHelper::ShowInfoBarIfPossible(request, info->GetChildID(), | 441 OneClickSigninHelper::ShowInfoBarIfPossible(request, info->GetChildID(), |
| 441 info->GetRouteID()); | 442 info->GetRouteID()); |
| 442 #endif | 443 #endif |
| 443 | 444 |
| 444 ProfileIOData* io_data = ProfileIOData::FromResourceContext(resource_context); | 445 ProfileIOData* io_data = ProfileIOData::FromResourceContext(resource_context); |
| 445 if (io_data->resource_prefetch_predictor_observer()) { | 446 if (io_data->resource_prefetch_predictor_observer()) { |
| 446 io_data->resource_prefetch_predictor_observer()->OnRequestRedirected( | 447 io_data->resource_prefetch_predictor_observer()->OnRequestRedirected( |
| 447 redirect_url, request); | 448 redirect_url, request); |
| 448 } | 449 } |
| 449 } | 450 } |
| OLD | NEW |