| 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 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 3214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3225 routing_id_, static_cast<int32_t>(log_severity), message.text, | 3225 routing_id_, static_cast<int32_t>(log_severity), message.text, |
| 3226 static_cast<int32_t>(source_line), source_name)); | 3226 static_cast<int32_t>(source_line), source_name)); |
| 3227 } | 3227 } |
| 3228 | 3228 |
| 3229 void RenderFrameImpl::loadURLExternally(const blink::WebURLRequest& request, | 3229 void RenderFrameImpl::loadURLExternally(const blink::WebURLRequest& request, |
| 3230 blink::WebNavigationPolicy policy, | 3230 blink::WebNavigationPolicy policy, |
| 3231 const blink::WebString& suggested_name, | 3231 const blink::WebString& suggested_name, |
| 3232 bool should_replace_current_entry) { | 3232 bool should_replace_current_entry) { |
| 3233 Referrer referrer(RenderViewImpl::GetReferrerFromRequest(frame_, request)); | 3233 Referrer referrer(RenderViewImpl::GetReferrerFromRequest(frame_, request)); |
| 3234 if (policy == blink::WebNavigationPolicyDownload) { | 3234 if (policy == blink::WebNavigationPolicyDownload) { |
| 3235 Send(new FrameHostMsg_DownloadUrl(render_view_->GetRoutingID(), | 3235 FrameHostMsg_DownloadUrl_Params params; |
| 3236 GetRoutingID(), request.url(), referrer, | 3236 params.render_view_id = render_view_->GetRoutingID(); |
| 3237 suggested_name)); | 3237 params.render_frame_id = GetRoutingID(); |
| 3238 params.url = request.url(); |
| 3239 params.referrer = referrer; |
| 3240 params.initiator_origin = request.requestorOrigin(); |
| 3241 params.suggested_name = suggested_name; |
| 3242 |
| 3243 Send(new FrameHostMsg_DownloadUrl(params)); |
| 3238 } else { | 3244 } else { |
| 3239 OpenURL(request.url(), IsHttpPost(request), | 3245 OpenURL(request.url(), IsHttpPost(request), |
| 3240 GetRequestBodyForWebURLRequest(request), | 3246 GetRequestBodyForWebURLRequest(request), |
| 3241 GetWebURLRequestHeaders(request), referrer, policy, | 3247 GetWebURLRequestHeaders(request), referrer, policy, |
| 3242 should_replace_current_entry, false); | 3248 should_replace_current_entry, false); |
| 3243 } | 3249 } |
| 3244 } | 3250 } |
| 3245 | 3251 |
| 3246 blink::WebHistoryItem RenderFrameImpl::historyItemForNewChildFrame() { | 3252 blink::WebHistoryItem RenderFrameImpl::historyItemForNewChildFrame() { |
| 3247 // OOPIF enabled modes will punt this navigation to the browser in | 3253 // OOPIF enabled modes will punt this navigation to the browser in |
| (...skipping 3433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6681 // event target. Potentially a Pepper plugin will receive the event. | 6687 // event target. Potentially a Pepper plugin will receive the event. |
| 6682 // In order to tell whether a plugin gets the last mouse event and which it | 6688 // In order to tell whether a plugin gets the last mouse event and which it |
| 6683 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets | 6689 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets |
| 6684 // the event, it will notify us via DidReceiveMouseEvent() and set itself as | 6690 // the event, it will notify us via DidReceiveMouseEvent() and set itself as |
| 6685 // |pepper_last_mouse_event_target_|. | 6691 // |pepper_last_mouse_event_target_|. |
| 6686 pepper_last_mouse_event_target_ = nullptr; | 6692 pepper_last_mouse_event_target_ = nullptr; |
| 6687 #endif | 6693 #endif |
| 6688 } | 6694 } |
| 6689 | 6695 |
| 6690 } // namespace content | 6696 } // namespace content |
| OLD | NEW |