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

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

Issue 2319733002: PlzNavigate: Fix DownloadRequestLimiterTest.DownloadRequestLimiter_RendererInitiated (Closed)
Patch Set: rebase Created 4 years, 3 months 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/public/test/test_renderer_host.h ('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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 bool did_create_new_entry, 72 bool did_create_new_entry,
73 const GURL& url) override; 73 const GURL& url) override;
74 void SendNavigateWithTransition(int page_id, 74 void SendNavigateWithTransition(int page_id,
75 int nav_entry_id, 75 int nav_entry_id,
76 bool did_create_new_entry, 76 bool did_create_new_entry,
77 const GURL& url, 77 const GURL& url,
78 ui::PageTransition transition) override; 78 ui::PageTransition transition) override;
79 void SetContentsMimeType(const std::string& mime_type) override; 79 void SetContentsMimeType(const std::string& mime_type) override;
80 void SendBeforeUnloadACK(bool proceed) override; 80 void SendBeforeUnloadACK(bool proceed) override;
81 void SimulateSwapOutACK() override; 81 void SimulateSwapOutACK() override;
82 void NavigateAndCommitRendererInitiated(int page_id,
83 bool did_create_new_entry,
84 const GURL& url) override;
82 85
83 void SendNavigateWithReplacement(int page_id, 86 void SendNavigateWithReplacement(int page_id,
84 int nav_entry_id, 87 int nav_entry_id,
85 bool did_create_new_entry, 88 bool did_create_new_entry,
86 const GURL& url); 89 const GURL& url);
87 90
88 using ModificationCallback = 91 using ModificationCallback =
89 base::Callback<void(FrameHostMsg_DidCommitProvisionalLoad_Params*)>; 92 base::Callback<void(FrameHostMsg_DidCommitProvisionalLoad_Params*)>;
90 93
91 void SendNavigateWithModificationCallback( 94 void SendNavigateWithModificationCallback(
92 int page_id, 95 int page_id,
93 int nav_entry_id, 96 int nav_entry_id,
94 bool did_create_new_entry, 97 bool did_create_new_entry,
95 const GURL& url, 98 const GURL& url,
96 const ModificationCallback& callback); 99 const ModificationCallback& callback);
97 void SendNavigateWithParams( 100 void SendNavigateWithParams(
98 FrameHostMsg_DidCommitProvisionalLoad_Params* params); 101 FrameHostMsg_DidCommitProvisionalLoad_Params* params);
99 102
100 // Simulate a renderer-initiated navigation up until commit.
101 void NavigateAndCommitRendererInitiated(int page_id,
102 bool did_create_new_entry,
103 const GURL& url);
104
105 // With the current navigation logic this method is a no-op. 103 // With the current navigation logic this method is a no-op.
106 // PlzNavigate: this method simulates receiving a BeginNavigation IPC. 104 // PlzNavigate: this method simulates receiving a BeginNavigation IPC.
107 void SendRendererInitiatedNavigationRequest(const GURL& url, 105 void SendRendererInitiatedNavigationRequest(const GURL& url,
108 bool has_user_gesture); 106 bool has_user_gesture);
109 107
110 void DidChangeOpener(int opener_routing_id); 108 void DidChangeOpener(int opener_routing_id);
111 109
112 void DidEnforceInsecureRequestPolicy(blink::WebInsecureRequestPolicy policy); 110 void DidEnforceInsecureRequestPolicy(blink::WebInsecureRequestPolicy policy);
113 111
114 // If set, navigations will appear to have cleared the history list in the 112 // If set, navigations will appear to have cleared the history list in the
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 165
168 // See set_simulate_history_list_was_cleared() above. 166 // See set_simulate_history_list_was_cleared() above.
169 bool simulate_history_list_was_cleared_; 167 bool simulate_history_list_was_cleared_;
170 168
171 DISALLOW_COPY_AND_ASSIGN(TestRenderFrameHost); 169 DISALLOW_COPY_AND_ASSIGN(TestRenderFrameHost);
172 }; 170 };
173 171
174 } // namespace content 172 } // namespace content
175 173
176 #endif // CONTENT_TEST_TEST_RENDER_FRAME_HOST_H_ 174 #endif // CONTENT_TEST_TEST_RENDER_FRAME_HOST_H_
OLDNEW
« no previous file with comments | « content/public/test/test_renderer_host.h ('k') | content/test/test_render_frame_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698