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 4792 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4803 if (SiteIsolationPolicy::UseSubframeNavigationEntries()) { | 4803 if (SiteIsolationPolicy::UseSubframeNavigationEntries()) { |
4804 params.method = request.httpMethod().latin1(); | 4804 params.method = request.httpMethod().latin1(); |
4805 if (params.method == "POST") | 4805 if (params.method == "POST") |
4806 params.post_id = post_id; | 4806 params.post_id = post_id; |
4807 } | 4807 } |
4808 | 4808 |
4809 params.frame_unique_name = item.target().utf8(); | 4809 params.frame_unique_name = item.target().utf8(); |
4810 params.item_sequence_number = item.itemSequenceNumber(); | 4810 params.item_sequence_number = item.itemSequenceNumber(); |
4811 params.document_sequence_number = item.documentSequenceNumber(); | 4811 params.document_sequence_number = item.documentSequenceNumber(); |
4812 | 4812 |
4813 params.is_srcdoc = params.url == content::kAboutSrcDocURL; | |
4814 | |
4815 // If the page contained a client redirect (meta refresh, document.loc...), | 4813 // If the page contained a client redirect (meta refresh, document.loc...), |
4816 // set the referrer appropriately. | 4814 // set the referrer appropriately. |
4817 if (ds->isClientRedirect()) { | 4815 if (ds->isClientRedirect()) { |
4818 params.referrer = | 4816 params.referrer = |
4819 Referrer(params.redirects[0], ds->request().referrerPolicy()); | 4817 Referrer(params.redirects[0], ds->request().referrerPolicy()); |
4820 } else { | 4818 } else { |
4821 params.referrer = | 4819 params.referrer = |
4822 RenderViewImpl::GetReferrerFromRequest(frame, ds->request()); | 4820 RenderViewImpl::GetReferrerFromRequest(frame, ds->request()); |
4823 } | 4821 } |
4824 | 4822 |
(...skipping 1842 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6667 // event target. Potentially a Pepper plugin will receive the event. | 6665 // event target. Potentially a Pepper plugin will receive the event. |
6668 // In order to tell whether a plugin gets the last mouse event and which it | 6666 // In order to tell whether a plugin gets the last mouse event and which it |
6669 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets | 6667 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets |
6670 // the event, it will notify us via DidReceiveMouseEvent() and set itself as | 6668 // the event, it will notify us via DidReceiveMouseEvent() and set itself as |
6671 // |pepper_last_mouse_event_target_|. | 6669 // |pepper_last_mouse_event_target_|. |
6672 pepper_last_mouse_event_target_ = nullptr; | 6670 pepper_last_mouse_event_target_ = nullptr; |
6673 #endif | 6671 #endif |
6674 } | 6672 } |
6675 | 6673 |
6676 } // namespace content | 6674 } // namespace content |
OLD | NEW |