Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(219)

Side by Side Diff: chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc

Issue 11826059: Add ManagedUserService for profile-specific managed user data. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: android test Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698