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

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

Issue 2494633004: Remove about:srcdoc url conversion. (Closed)
Patch Set: Rebase 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 4792 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « content/public/test/test_navigation_observer.cc ('k') | content/test/web_contents_observer_sanity_checker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698