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 4788 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4799 if (SiteIsolationPolicy::UseSubframeNavigationEntries()) { | 4799 if (SiteIsolationPolicy::UseSubframeNavigationEntries()) { |
4800 params.method = request.httpMethod().latin1(); | 4800 params.method = request.httpMethod().latin1(); |
4801 if (params.method == "POST") | 4801 if (params.method == "POST") |
4802 params.post_id = post_id; | 4802 params.post_id = post_id; |
4803 } | 4803 } |
4804 | 4804 |
4805 params.frame_unique_name = item.target().utf8(); | 4805 params.frame_unique_name = item.target().utf8(); |
4806 params.item_sequence_number = item.itemSequenceNumber(); | 4806 params.item_sequence_number = item.itemSequenceNumber(); |
4807 params.document_sequence_number = item.documentSequenceNumber(); | 4807 params.document_sequence_number = item.documentSequenceNumber(); |
4808 | 4808 |
4809 params.is_srcdoc = params.url == content::kAboutSrcDocURL; | |
4810 | |
4811 // If the page contained a client redirect (meta refresh, document.loc...), | 4809 // If the page contained a client redirect (meta refresh, document.loc...), |
4812 // set the referrer appropriately. | 4810 // set the referrer appropriately. |
4813 if (ds->isClientRedirect()) { | 4811 if (ds->isClientRedirect()) { |
4814 params.referrer = | 4812 params.referrer = |
4815 Referrer(params.redirects[0], ds->request().referrerPolicy()); | 4813 Referrer(params.redirects[0], ds->request().referrerPolicy()); |
4816 } else { | 4814 } else { |
4817 params.referrer = | 4815 params.referrer = |
4818 RenderViewImpl::GetReferrerFromRequest(frame, ds->request()); | 4816 RenderViewImpl::GetReferrerFromRequest(frame, ds->request()); |
4819 } | 4817 } |
4820 | 4818 |
(...skipping 1792 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6613 // event target. Potentially a Pepper plugin will receive the event. | 6611 // event target. Potentially a Pepper plugin will receive the event. |
6614 // In order to tell whether a plugin gets the last mouse event and which it | 6612 // In order to tell whether a plugin gets the last mouse event and which it |
6615 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets | 6613 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets |
6616 // the event, it will notify us via DidReceiveMouseEvent() and set itself as | 6614 // the event, it will notify us via DidReceiveMouseEvent() and set itself as |
6617 // |pepper_last_mouse_event_target_|. | 6615 // |pepper_last_mouse_event_target_|. |
6618 pepper_last_mouse_event_target_ = nullptr; | 6616 pepper_last_mouse_event_target_ = nullptr; |
6619 #endif | 6617 #endif |
6620 } | 6618 } |
6621 | 6619 |
6622 } // namespace content | 6620 } // namespace content |
OLD | NEW |