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

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

Issue 1048463004: PlzNavigate: track pending commits (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Now tracking pending commits Created 5 years, 8 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
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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 const std::vector<GURL>& redirects); 79 const std::vector<GURL>& redirects);
80 void SendNavigateWithParameters( 80 void SendNavigateWithParameters(
81 int page_id, 81 int page_id,
82 const GURL& url, 82 const GURL& url,
83 ui::PageTransition transition, 83 ui::PageTransition transition,
84 const GURL& original_request_url, 84 const GURL& original_request_url,
85 int response_code, 85 int response_code,
86 const base::FilePath* file_path_for_history_item, 86 const base::FilePath* file_path_for_history_item,
87 const std::vector<GURL>& redirects); 87 const std::vector<GURL>& redirects);
88 88
89 // Simulate a renderer-initiated navigation up until commit.
90 void NavigateAndCommitRendererInitiated(int page_id, const GURL& url);
91
89 // With the current navigation logic this method is a no-op. 92 // With the current navigation logic this method is a no-op.
90 // PlzNavigate: this method simulates receiving a BeginNavigation IPC. 93 // PlzNavigate: this method simulates receiving a BeginNavigation IPC.
91 void SendRendererInitiatedNavigationRequest(const GURL& url, 94 void SendRendererInitiatedNavigationRequest(const GURL& url,
92 bool has_user_gesture); 95 bool has_user_gesture);
93 96
94 void DidDisownOpener(); 97 void DidDisownOpener();
95 98
96 // If set, navigations will appear to have cleared the history list in the 99 // If set, navigations will appear to have cleared the history list in the
97 // RenderFrame 100 // RenderFrame
98 // (FrameHostMsg_DidCommitProvisionalLoad_Params::history_list_was_cleared). 101 // (FrameHostMsg_DidCommitProvisionalLoad_Params::history_list_was_cleared).
(...skipping 22 matching lines...) Expand all
121 124
122 // See set_simulate_history_list_was_cleared() above. 125 // See set_simulate_history_list_was_cleared() above.
123 bool simulate_history_list_was_cleared_; 126 bool simulate_history_list_was_cleared_;
124 127
125 DISALLOW_COPY_AND_ASSIGN(TestRenderFrameHost); 128 DISALLOW_COPY_AND_ASSIGN(TestRenderFrameHost);
126 }; 129 };
127 130
128 } // namespace content 131 } // namespace content
129 132
130 #endif // CONTENT_TEST_TEST_RENDER_FRAME_HOST_H_ 133 #endif // CONTENT_TEST_TEST_RENDER_FRAME_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698