| 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 4803 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4814 if (SiteIsolationPolicy::UseSubframeNavigationEntries()) { | 4814 if (SiteIsolationPolicy::UseSubframeNavigationEntries()) { |
| 4815 params.method = request.httpMethod().latin1(); | 4815 params.method = request.httpMethod().latin1(); |
| 4816 if (params.method == "POST") | 4816 if (params.method == "POST") |
| 4817 params.post_id = post_id; | 4817 params.post_id = post_id; |
| 4818 } | 4818 } |
| 4819 | 4819 |
| 4820 params.frame_unique_name = item.target().utf8(); | 4820 params.frame_unique_name = item.target().utf8(); |
| 4821 params.item_sequence_number = item.itemSequenceNumber(); | 4821 params.item_sequence_number = item.itemSequenceNumber(); |
| 4822 params.document_sequence_number = item.documentSequenceNumber(); | 4822 params.document_sequence_number = item.documentSequenceNumber(); |
| 4823 | 4823 |
| 4824 params.is_srcdoc = params.url == content::kAboutSrcDocURL; | |
| 4825 | |
| 4826 // If the page contained a client redirect (meta refresh, document.loc...), | 4824 // If the page contained a client redirect (meta refresh, document.loc...), |
| 4827 // set the referrer appropriately. | 4825 // set the referrer appropriately. |
| 4828 if (ds->isClientRedirect()) { | 4826 if (ds->isClientRedirect()) { |
| 4829 params.referrer = | 4827 params.referrer = |
| 4830 Referrer(params.redirects[0], ds->request().referrerPolicy()); | 4828 Referrer(params.redirects[0], ds->request().referrerPolicy()); |
| 4831 } else { | 4829 } else { |
| 4832 params.referrer = | 4830 params.referrer = |
| 4833 RenderViewImpl::GetReferrerFromRequest(frame, ds->request()); | 4831 RenderViewImpl::GetReferrerFromRequest(frame, ds->request()); |
| 4834 } | 4832 } |
| 4835 | 4833 |
| (...skipping 1801 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6637 // event target. Potentially a Pepper plugin will receive the event. | 6635 // event target. Potentially a Pepper plugin will receive the event. |
| 6638 // In order to tell whether a plugin gets the last mouse event and which it | 6636 // In order to tell whether a plugin gets the last mouse event and which it |
| 6639 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets | 6637 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets |
| 6640 // the event, it will notify us via DidReceiveMouseEvent() and set itself as | 6638 // the event, it will notify us via DidReceiveMouseEvent() and set itself as |
| 6641 // |pepper_last_mouse_event_target_|. | 6639 // |pepper_last_mouse_event_target_|. |
| 6642 pepper_last_mouse_event_target_ = nullptr; | 6640 pepper_last_mouse_event_target_ = nullptr; |
| 6643 #endif | 6641 #endif |
| 6644 } | 6642 } |
| 6645 | 6643 |
| 6646 } // namespace content | 6644 } // namespace content |
| OLD | NEW |