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

Side by Side Diff: content/browser/renderer_host/resource_dispatcher_host.cc

Issue 8511080: Get rid of resource_messages.h include from chrome, since that's an internal detail of content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc e-loading 5 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc e-loading
6 6
7 #include "content/browser/renderer_host/resource_dispatcher_host.h" 7 #include "content/browser/renderer_host/resource_dispatcher_host.h"
8 8
9 #include <set> 9 #include <set>
10 #include <vector> 10 #include <vector>
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 476
477 if (is_shutdown_ || 477 if (is_shutdown_ ||
478 !ShouldServiceRequest(process_type, child_id, request_data)) { 478 !ShouldServiceRequest(process_type, child_id, request_data)) {
479 AbortRequestBeforeItStarts(filter_, sync_result, route_id, request_id); 479 AbortRequestBeforeItStarts(filter_, sync_result, route_id, request_id);
480 return; 480 return;
481 } 481 }
482 482
483 const GURL referrer = MaybeStripReferrer(request_data.referrer); 483 const GURL referrer = MaybeStripReferrer(request_data.referrer);
484 484
485 // Allow the observer to block/handle the request. 485 // Allow the observer to block/handle the request.
486 if (delegate_ && !delegate_->ShouldBeginRequest(child_id, route_id, 486 if (delegate_ && !delegate_->ShouldBeginRequest(child_id,
487 request_data, 487 route_id,
488 request_data.method,
489 request_data.url,
490 request_data.resource_type,
488 resource_context, 491 resource_context,
489 referrer)) { 492 referrer)) {
490 AbortRequestBeforeItStarts(filter_, sync_result, route_id, request_id); 493 AbortRequestBeforeItStarts(filter_, sync_result, route_id, request_id);
491 return; 494 return;
492 } 495 }
493 496
494 // Construct the event handler. 497 // Construct the event handler.
495 scoped_refptr<ResourceHandler> handler; 498 scoped_refptr<ResourceHandler> handler;
496 if (sync_result) { 499 if (sync_result) {
497 handler = new SyncResourceHandler( 500 handler = new SyncResourceHandler(
(...skipping 1658 matching lines...) Expand 10 before | Expand all | Expand 10 after
2156 return HTTP_AUTH_RESOURCE_BLOCKED_CROSS; 2159 return HTTP_AUTH_RESOURCE_BLOCKED_CROSS;
2157 } 2160 }
2158 2161
2159 bool ResourceDispatcherHost::allow_cross_origin_auth_prompt() { 2162 bool ResourceDispatcherHost::allow_cross_origin_auth_prompt() {
2160 return allow_cross_origin_auth_prompt_; 2163 return allow_cross_origin_auth_prompt_;
2161 } 2164 }
2162 2165
2163 void ResourceDispatcherHost::set_allow_cross_origin_auth_prompt(bool value) { 2166 void ResourceDispatcherHost::set_allow_cross_origin_auth_prompt(bool value) {
2164 allow_cross_origin_auth_prompt_ = value; 2167 allow_cross_origin_auth_prompt_ = value;
2165 } 2168 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698