Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(604)

Side by Side Diff: content/renderer/render_frame_impl.cc

Issue 2494633004: Remove about:srcdoc url conversion. (Closed)
Patch Set: Addressed comments (@creis) Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 4767 matching lines...) Expand 10 before | Expand all | Expand 10 after
4778 if (SiteIsolationPolicy::UseSubframeNavigationEntries()) { 4778 if (SiteIsolationPolicy::UseSubframeNavigationEntries()) {
4779 params.method = request.httpMethod().latin1(); 4779 params.method = request.httpMethod().latin1();
4780 if (params.method == "POST") 4780 if (params.method == "POST")
4781 params.post_id = post_id; 4781 params.post_id = post_id;
4782 } 4782 }
4783 4783
4784 params.frame_unique_name = item.target().utf8(); 4784 params.frame_unique_name = item.target().utf8();
4785 params.item_sequence_number = item.itemSequenceNumber(); 4785 params.item_sequence_number = item.itemSequenceNumber();
4786 params.document_sequence_number = item.documentSequenceNumber(); 4786 params.document_sequence_number = item.documentSequenceNumber();
4787 4787
4788 params.is_srcdoc = params.url == content::kAboutSrcDocURL;
4789
4790 // If the page contained a client redirect (meta refresh, document.loc...), 4788 // If the page contained a client redirect (meta refresh, document.loc...),
4791 // set the referrer appropriately. 4789 // set the referrer appropriately.
4792 if (ds->isClientRedirect()) { 4790 if (ds->isClientRedirect()) {
4793 params.referrer = 4791 params.referrer =
4794 Referrer(params.redirects[0], ds->request().referrerPolicy()); 4792 Referrer(params.redirects[0], ds->request().referrerPolicy());
4795 } else { 4793 } else {
4796 params.referrer = 4794 params.referrer =
4797 RenderViewImpl::GetReferrerFromRequest(frame, ds->request()); 4795 RenderViewImpl::GetReferrerFromRequest(frame, ds->request());
4798 } 4796 }
4799 4797
(...skipping 1838 matching lines...) Expand 10 before | Expand all | Expand 10 after
6638 // event target. Potentially a Pepper plugin will receive the event. 6636 // event target. Potentially a Pepper plugin will receive the event.
6639 // In order to tell whether a plugin gets the last mouse event and which it 6637 // In order to tell whether a plugin gets the last mouse event and which it
6640 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets 6638 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets
6641 // the event, it will notify us via DidReceiveMouseEvent() and set itself as 6639 // the event, it will notify us via DidReceiveMouseEvent() and set itself as
6642 // |pepper_last_mouse_event_target_|. 6640 // |pepper_last_mouse_event_target_|.
6643 pepper_last_mouse_event_target_ = nullptr; 6641 pepper_last_mouse_event_target_ = nullptr;
6644 #endif 6642 #endif
6645 } 6643 }
6646 6644
6647 } // namespace content 6645 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698