OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "content/renderer/render_frame_impl.h" | 5 #include "content/renderer/render_frame_impl.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
(...skipping 2936 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2947 DocumentState* document_state = DocumentState::FromDataSource(ds); | 2947 DocumentState* document_state = DocumentState::FromDataSource(ds); |
2948 NavigationState* navigation_state = document_state->navigation_state(); | 2948 NavigationState* navigation_state = document_state->navigation_state(); |
2949 InternalDocumentStateData* internal_data = | 2949 InternalDocumentStateData* internal_data = |
2950 InternalDocumentStateData::FromDocumentState(document_state); | 2950 InternalDocumentStateData::FromDocumentState(document_state); |
2951 | 2951 |
2952 FrameHostMsg_DidCommitProvisionalLoad_Params params; | 2952 FrameHostMsg_DidCommitProvisionalLoad_Params params; |
2953 params.http_status_code = response.httpStatusCode(); | 2953 params.http_status_code = response.httpStatusCode(); |
2954 params.is_post = false; | 2954 params.is_post = false; |
2955 params.post_id = -1; | 2955 params.post_id = -1; |
2956 params.page_id = render_view_->page_id_; | 2956 params.page_id = render_view_->page_id_; |
| 2957 // We need to track the RenderViewHost routing_id because of downstream |
| 2958 // dependencies (crbug.com/392171 DownloadRequestHandle, SaveFileManager, |
| 2959 // ResourceDispatcherHostImpl, MediaStreamUIProxy, |
| 2960 // SpeechRecognitionDispatcherHost and possibly others). They look up the view |
| 2961 // based on the ID stored in the resource requests. Once those dependencies |
| 2962 // are unwound or moved to RenderFrameHost (crbug.com/304341) we can move the |
| 2963 // client to be based on the routing_id of the RenderFrameHost. |
| 2964 params.render_view_routing_id = render_view_->routing_id(); |
2957 params.socket_address.set_host(response.remoteIPAddress().utf8()); | 2965 params.socket_address.set_host(response.remoteIPAddress().utf8()); |
2958 params.socket_address.set_port(response.remotePort()); | 2966 params.socket_address.set_port(response.remotePort()); |
2959 WebURLResponseExtraDataImpl* extra_data = GetExtraDataFromResponse(response); | 2967 WebURLResponseExtraDataImpl* extra_data = GetExtraDataFromResponse(response); |
2960 if (extra_data) | 2968 if (extra_data) |
2961 params.was_fetched_via_proxy = extra_data->was_fetched_via_proxy(); | 2969 params.was_fetched_via_proxy = extra_data->was_fetched_via_proxy(); |
2962 params.was_within_same_page = navigation_state->was_within_same_page(); | 2970 params.was_within_same_page = navigation_state->was_within_same_page(); |
2963 params.security_info = response.securityInfo(); | 2971 params.security_info = response.securityInfo(); |
2964 | 2972 |
2965 // Set the URL to be displayed in the browser UI to the user. | 2973 // Set the URL to be displayed in the browser UI to the user. |
2966 params.url = GetLoadingUrl(); | 2974 params.url = GetLoadingUrl(); |
(...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3571 | 3579 |
3572 #if defined(ENABLE_BROWSER_CDMS) | 3580 #if defined(ENABLE_BROWSER_CDMS) |
3573 RendererCdmManager* RenderFrameImpl::GetCdmManager() { | 3581 RendererCdmManager* RenderFrameImpl::GetCdmManager() { |
3574 if (!cdm_manager_) | 3582 if (!cdm_manager_) |
3575 cdm_manager_ = new RendererCdmManager(this); | 3583 cdm_manager_ = new RendererCdmManager(this); |
3576 return cdm_manager_; | 3584 return cdm_manager_; |
3577 } | 3585 } |
3578 #endif // defined(ENABLE_BROWSER_CDMS) | 3586 #endif // defined(ENABLE_BROWSER_CDMS) |
3579 | 3587 |
3580 } // namespace content | 3588 } // namespace content |
OLD | NEW |