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

Side by Side Diff: content/test/test_render_frame_host.h

Issue 1489253002: Plumb document's strict mixed content checking for RemoteFrames (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nasko comments Created 5 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
« no previous file with comments | « content/renderer/render_frame_proxy.cc ('k') | content/test/test_render_frame_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CONTENT_TEST_TEST_RENDER_FRAME_HOST_H_ 5 #ifndef CONTENT_TEST_TEST_RENDER_FRAME_HOST_H_
6 #define CONTENT_TEST_TEST_RENDER_FRAME_HOST_H_ 6 #define CONTENT_TEST_TEST_RENDER_FRAME_HOST_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 bool did_create_new_entry, 94 bool did_create_new_entry,
95 const GURL& url); 95 const GURL& url);
96 96
97 // With the current navigation logic this method is a no-op. 97 // With the current navigation logic this method is a no-op.
98 // PlzNavigate: this method simulates receiving a BeginNavigation IPC. 98 // PlzNavigate: this method simulates receiving a BeginNavigation IPC.
99 void SendRendererInitiatedNavigationRequest(const GURL& url, 99 void SendRendererInitiatedNavigationRequest(const GURL& url,
100 bool has_user_gesture); 100 bool has_user_gesture);
101 101
102 void DidChangeOpener(int opener_routing_id); 102 void DidChangeOpener(int opener_routing_id);
103 103
104 void DidEnforceStrictMixedContentChecking();
105
104 // If set, navigations will appear to have cleared the history list in the 106 // If set, navigations will appear to have cleared the history list in the
105 // RenderFrame 107 // RenderFrame
106 // (FrameHostMsg_DidCommitProvisionalLoad_Params::history_list_was_cleared). 108 // (FrameHostMsg_DidCommitProvisionalLoad_Params::history_list_was_cleared).
107 // False by default. 109 // False by default.
108 void set_simulate_history_list_was_cleared(bool cleared) { 110 void set_simulate_history_list_was_cleared(bool cleared) {
109 simulate_history_list_was_cleared_ = cleared; 111 simulate_history_list_was_cleared_ = cleared;
110 } 112 }
111 113
112 // Advances the RenderFrameHost (and through it the RenderFrameHostManager) to 114 // Advances the RenderFrameHost (and through it the RenderFrameHostManager) to
113 // a state where a new navigation can be committed by a renderer. Currently, 115 // a state where a new navigation can be committed by a renderer. Currently,
(...skipping 30 matching lines...) Expand all
144 146
145 // See set_simulate_history_list_was_cleared() above. 147 // See set_simulate_history_list_was_cleared() above.
146 bool simulate_history_list_was_cleared_; 148 bool simulate_history_list_was_cleared_;
147 149
148 DISALLOW_COPY_AND_ASSIGN(TestRenderFrameHost); 150 DISALLOW_COPY_AND_ASSIGN(TestRenderFrameHost);
149 }; 151 };
150 152
151 } // namespace content 153 } // namespace content
152 154
153 #endif // CONTENT_TEST_TEST_RENDER_FRAME_HOST_H_ 155 #endif // CONTENT_TEST_TEST_RENDER_FRAME_HOST_H_
OLDNEW
« no previous file with comments | « content/renderer/render_frame_proxy.cc ('k') | content/test/test_render_frame_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698