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 4576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4587 // based on the ID stored in the resource requests. Once those dependencies | 4587 // based on the ID stored in the resource requests. Once those dependencies |
4588 // are unwound or moved to RenderFrameHost (crbug.com/304341) we can move the | 4588 // are unwound or moved to RenderFrameHost (crbug.com/304341) we can move the |
4589 // client to be based on the routing_id of the RenderFrameHost. | 4589 // client to be based on the routing_id of the RenderFrameHost. |
4590 params.render_view_routing_id = render_view_->routing_id(); | 4590 params.render_view_routing_id = render_view_->routing_id(); |
4591 params.socket_address.set_host(response.remoteIPAddress().utf8()); | 4591 params.socket_address.set_host(response.remoteIPAddress().utf8()); |
4592 params.socket_address.set_port(response.remotePort()); | 4592 params.socket_address.set_port(response.remotePort()); |
4593 WebURLResponseExtraDataImpl* extra_data = GetExtraDataFromResponse(response); | 4593 WebURLResponseExtraDataImpl* extra_data = GetExtraDataFromResponse(response); |
4594 if (extra_data) | 4594 if (extra_data) |
4595 params.was_fetched_via_proxy = extra_data->was_fetched_via_proxy(); | 4595 params.was_fetched_via_proxy = extra_data->was_fetched_via_proxy(); |
4596 params.was_within_same_page = navigation_state->WasWithinSamePage(); | 4596 params.was_within_same_page = navigation_state->WasWithinSamePage(); |
4597 params.security_info = response.securityInfo(); | |
4598 | 4597 |
4599 // Set the origin of the frame. This will be replicated to the corresponding | 4598 // Set the origin of the frame. This will be replicated to the corresponding |
4600 // RenderFrameProxies in other processes. | 4599 // RenderFrameProxies in other processes. |
4601 params.origin = frame->document().getSecurityOrigin(); | 4600 params.origin = frame->document().getSecurityOrigin(); |
4602 | 4601 |
4603 params.insecure_request_policy = frame->getInsecureRequestPolicy(); | 4602 params.insecure_request_policy = frame->getInsecureRequestPolicy(); |
4604 | 4603 |
4605 params.has_potentially_trustworthy_unique_origin = | 4604 params.has_potentially_trustworthy_unique_origin = |
4606 frame->document().getSecurityOrigin().isUnique() && | 4605 frame->document().getSecurityOrigin().isUnique() && |
4607 frame->document().getSecurityOrigin().isPotentiallyTrustworthy(); | 4606 frame->document().getSecurityOrigin().isPotentiallyTrustworthy(); |
(...skipping 1746 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6354 // event target. Potentially a Pepper plugin will receive the event. | 6353 // event target. Potentially a Pepper plugin will receive the event. |
6355 // In order to tell whether a plugin gets the last mouse event and which it | 6354 // In order to tell whether a plugin gets the last mouse event and which it |
6356 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets | 6355 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets |
6357 // the event, it will notify us via DidReceiveMouseEvent() and set itself as | 6356 // the event, it will notify us via DidReceiveMouseEvent() and set itself as |
6358 // |pepper_last_mouse_event_target_|. | 6357 // |pepper_last_mouse_event_target_|. |
6359 pepper_last_mouse_event_target_ = nullptr; | 6358 pepper_last_mouse_event_target_ = nullptr; |
6360 #endif | 6359 #endif |
6361 } | 6360 } |
6362 | 6361 |
6363 } // namespace content | 6362 } // namespace content |
OLD | NEW |