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

Side by Side Diff: content/browser/loader/resource_dispatcher_host_impl.h

Issue 2239273002: Don't use SSLStatus from FrameHostMsg_DidCommitProvisionalLoad and instead cache it on the browser … (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge and comments Created 4 years, 4 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
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 // This is the browser side of the resource dispatcher, it receives requests 5 // This is the browser side of the resource dispatcher, it receives requests
6 // from the child process (i.e. [Renderer, Plugin, Worker]ProcessHost), and 6 // from the child process (i.e. [Renderer, Plugin, Worker]ProcessHost), and
7 // dispatches them to URLRequests. It then forwards the messages from the 7 // dispatches them to URLRequests. It then forwards the messages from the
8 // URLRequests back to the correct process for handling. 8 // URLRequests back to the correct process for handling.
9 // 9 //
10 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc e-loading 10 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc e-loading
(...skipping 586 matching lines...) Expand 10 before | Expand all | Expand 10 after
597 597
598 int BuildLoadFlagsForRequest(const ResourceRequest& request_data, 598 int BuildLoadFlagsForRequest(const ResourceRequest& request_data,
599 int child_id, 599 int child_id,
600 bool is_sync_load); 600 bool is_sync_load);
601 601
602 // The certificate on a ResourceResponse is associated with a 602 // The certificate on a ResourceResponse is associated with a
603 // particular renderer process. As a transfer to a new process 603 // particular renderer process. As a transfer to a new process
604 // completes, the stored certificate has to be updated to reflect the 604 // completes, the stored certificate has to be updated to reflect the
605 // new renderer process. 605 // new renderer process.
606 void UpdateResponseCertificateForTransfer(ResourceResponse* response, 606 void UpdateResponseCertificateForTransfer(ResourceResponse* response,
607 const net::SSLInfo& ssl_info, 607 net::URLRequest* request,
608 int child_id); 608 ResourceRequestInfoImpl* info);
609 609
610 CertStore* GetCertStore(); 610 CertStore* GetCertStore();
611 611
612 // Consults the RendererSecurity policy to determine whether the 612 // Consults the RendererSecurity policy to determine whether the
613 // ResourceDispatcherHostImpl should service this request. A request might 613 // ResourceDispatcherHostImpl should service this request. A request might
614 // be disallowed if the renderer is not authorized to retrieve the request 614 // be disallowed if the renderer is not authorized to retrieve the request
615 // URL or if the renderer is attempting to upload an unauthorized file. 615 // URL or if the renderer is attempting to upload an unauthorized file.
616 bool ShouldServiceRequest(int process_type, 616 bool ShouldServiceRequest(int process_type,
617 int child_id, 617 int child_id,
618 const ResourceRequest& request_data, 618 const ResourceRequest& request_data,
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
716 716
717 // Used to invoke an interceptor for the HTTP header. 717 // Used to invoke an interceptor for the HTTP header.
718 HeaderInterceptorMap http_header_interceptor_map_; 718 HeaderInterceptorMap http_header_interceptor_map_;
719 719
720 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostImpl); 720 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostImpl);
721 }; 721 };
722 722
723 } // namespace content 723 } // namespace content
724 724
725 #endif // CONTENT_BROWSER_LOADER_RESOURCE_DISPATCHER_HOST_IMPL_H_ 725 #endif // CONTENT_BROWSER_LOADER_RESOURCE_DISPATCHER_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698