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

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

Issue 149128: Fix a typo I came across while debugging. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 11 years, 5 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
« no previous file with comments | « chrome/browser/renderer_host/resource_dispatcher_host.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 "chrome/browser/renderer_host/resource_dispatcher_host.h" 7 #include "chrome/browser/renderer_host/resource_dispatcher_host.h"
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 834 matching lines...) Expand 10 before | Expand all | Expand 10 after
845 !ChildProcessSecurityPolicy::GetInstance()-> 845 !ChildProcessSecurityPolicy::GetInstance()->
846 CanRequestURL(info->process_id, new_url)) { 846 CanRequestURL(info->process_id, new_url)) {
847 LOG(INFO) << "Denied unauthorized request for " << 847 LOG(INFO) << "Denied unauthorized request for " <<
848 new_url.possibly_invalid_spec(); 848 new_url.possibly_invalid_spec();
849 849
850 // Tell the renderer that this request was disallowed. 850 // Tell the renderer that this request was disallowed.
851 CancelRequest(info->process_id, info->request_id, false); 851 CancelRequest(info->process_id, info->request_id, false);
852 return; 852 return;
853 } 853 }
854 854
855 NofityReceivedRedirect(request, info->process_id, new_url); 855 NotifyReceivedRedirect(request, info->process_id, new_url);
856 856
857 if (HandleExternalProtocol(info->request_id, info->process_id, 857 if (HandleExternalProtocol(info->request_id, info->process_id,
858 info->route_id, new_url, 858 info->route_id, new_url,
859 info->resource_type, info->resource_handler)) { 859 info->resource_type, info->resource_handler)) {
860 // The request is complete so we can remove it. 860 // The request is complete so we can remove it.
861 RemovePendingRequest(info->process_id, info->request_id); 861 RemovePendingRequest(info->process_id, info->request_id);
862 return; 862 return;
863 } 863 }
864 864
865 if (!info->resource_handler->OnRequestRedirected(info->request_id, new_url)) 865 if (!info->resource_handler->OnRequestRedirected(info->request_id, new_url))
(...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after
1402 OnResponseCompleted(this, request)); 1402 OnResponseCompleted(this, request));
1403 1403
1404 // Notify the observers on the UI thread. 1404 // Notify the observers on the UI thread.
1405 ui_loop_->PostTask(FROM_HERE, 1405 ui_loop_->PostTask(FROM_HERE,
1406 new NotificationTask(NotificationType::RESOURCE_RESPONSE_COMPLETED, 1406 new NotificationTask(NotificationType::RESOURCE_RESPONSE_COMPLETED,
1407 request, 1407 request,
1408 new ResourceRequestDetails(request, 1408 new ResourceRequestDetails(request,
1409 GetCertID(request, process_id)))); 1409 GetCertID(request, process_id))));
1410 } 1410 }
1411 1411
1412 void ResourceDispatcherHost::NofityReceivedRedirect(URLRequest* request, 1412 void ResourceDispatcherHost::NotifyReceivedRedirect(URLRequest* request,
1413 int process_id, 1413 int process_id,
1414 const GURL& new_url) { 1414 const GURL& new_url) {
1415 // Notify the observers on the IO thread. 1415 // Notify the observers on the IO thread.
1416 FOR_EACH_OBSERVER(Observer, observer_list_, 1416 FOR_EACH_OBSERVER(Observer, observer_list_,
1417 OnReceivedRedirect(this, request, new_url)); 1417 OnReceivedRedirect(this, request, new_url));
1418 1418
1419 int cert_id = GetCertID(request, process_id); 1419 int cert_id = GetCertID(request, process_id);
1420 1420
1421 // Notify the observers on the UI thread. 1421 // Notify the observers on the UI thread.
1422 ui_loop_->PostTask(FROM_HERE, 1422 ui_loop_->PostTask(FROM_HERE,
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
1614 case ViewHostMsg_UploadProgress_ACK::ID: 1614 case ViewHostMsg_UploadProgress_ACK::ID:
1615 case ViewHostMsg_SyncLoad::ID: 1615 case ViewHostMsg_SyncLoad::ID:
1616 return true; 1616 return true;
1617 1617
1618 default: 1618 default:
1619 break; 1619 break;
1620 } 1620 }
1621 1621
1622 return false; 1622 return false;
1623 } 1623 }
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/resource_dispatcher_host.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698