| 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 4811 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4822 if (SiteIsolationPolicy::UseSubframeNavigationEntries()) { | 4822 if (SiteIsolationPolicy::UseSubframeNavigationEntries()) { |
| 4823 params.method = request.httpMethod().latin1(); | 4823 params.method = request.httpMethod().latin1(); |
| 4824 if (params.method == "POST") | 4824 if (params.method == "POST") |
| 4825 params.post_id = post_id; | 4825 params.post_id = post_id; |
| 4826 } | 4826 } |
| 4827 | 4827 |
| 4828 params.frame_unique_name = item.target().utf8(); | 4828 params.frame_unique_name = item.target().utf8(); |
| 4829 params.item_sequence_number = item.itemSequenceNumber(); | 4829 params.item_sequence_number = item.itemSequenceNumber(); |
| 4830 params.document_sequence_number = item.documentSequenceNumber(); | 4830 params.document_sequence_number = item.documentSequenceNumber(); |
| 4831 | 4831 |
| 4832 params.is_srcdoc = params.url == content::kAboutSrcDocURL; | |
| 4833 | |
| 4834 // If the page contained a client redirect (meta refresh, document.loc...), | 4832 // If the page contained a client redirect (meta refresh, document.loc...), |
| 4835 // set the referrer appropriately. | 4833 // set the referrer appropriately. |
| 4836 if (ds->isClientRedirect()) { | 4834 if (ds->isClientRedirect()) { |
| 4837 params.referrer = | 4835 params.referrer = |
| 4838 Referrer(params.redirects[0], ds->request().getReferrerPolicy()); | 4836 Referrer(params.redirects[0], ds->request().getReferrerPolicy()); |
| 4839 } else { | 4837 } else { |
| 4840 params.referrer = | 4838 params.referrer = |
| 4841 RenderViewImpl::GetReferrerFromRequest(frame, ds->request()); | 4839 RenderViewImpl::GetReferrerFromRequest(frame, ds->request()); |
| 4842 } | 4840 } |
| 4843 | 4841 |
| (...skipping 1842 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6686 // event target. Potentially a Pepper plugin will receive the event. | 6684 // event target. Potentially a Pepper plugin will receive the event. |
| 6687 // In order to tell whether a plugin gets the last mouse event and which it | 6685 // In order to tell whether a plugin gets the last mouse event and which it |
| 6688 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets | 6686 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets |
| 6689 // the event, it will notify us via DidReceiveMouseEvent() and set itself as | 6687 // the event, it will notify us via DidReceiveMouseEvent() and set itself as |
| 6690 // |pepper_last_mouse_event_target_|. | 6688 // |pepper_last_mouse_event_target_|. |
| 6691 pepper_last_mouse_event_target_ = nullptr; | 6689 pepper_last_mouse_event_target_ = nullptr; |
| 6692 #endif | 6690 #endif |
| 6693 } | 6691 } |
| 6694 | 6692 |
| 6695 } // namespace content | 6693 } // namespace content |
| OLD | NEW |