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

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

Issue 857213003: Refactor sudden termination (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 simulate_history_list_was_cleared_ = cleared; 95 simulate_history_list_was_cleared_ = cleared;
96 } 96 }
97 97
98 // Advances the RenderFrameHost (and through it the RenderFrameHostManager) to 98 // Advances the RenderFrameHost (and through it the RenderFrameHostManager) to
99 // a state where a new navigation can be committed by a renderer. Currently, 99 // a state where a new navigation can be committed by a renderer. Currently,
100 // this simulates a BeforeUnload ACK from the renderer. 100 // this simulates a BeforeUnload ACK from the renderer.
101 // PlzNavigate: this simulates a BeforeUnload ACK from the renderer, and the 101 // PlzNavigate: this simulates a BeforeUnload ACK from the renderer, and the
102 // interaction with the IO thread up until the response is ready to commit. 102 // interaction with the IO thread up until the response is ready to commit.
103 void PrepareForCommit(const GURL& url); 103 void PrepareForCommit(const GURL& url);
104 104
105 // Simulate receiving a FrameHostMsg_BeforeUnloadHandlersPresenceChanged.
106 void SendBeforeUnloadHandlersPresenceChanged(bool present);
107
108 // Simulate receiving a FrameHostMsg_UnloadHandlersPresenceChanged.
109 void SendUnloadHandlersPresenceChanged(bool present);
110
105 private: 111 private:
106 TestRenderFrameHostCreationObserver child_creation_observer_; 112 TestRenderFrameHostCreationObserver child_creation_observer_;
107 113
108 std::string contents_mime_type_; 114 std::string contents_mime_type_;
109 115
110 // See set_simulate_history_list_was_cleared() above. 116 // See set_simulate_history_list_was_cleared() above.
111 bool simulate_history_list_was_cleared_; 117 bool simulate_history_list_was_cleared_;
112 118
113 DISALLOW_COPY_AND_ASSIGN(TestRenderFrameHost); 119 DISALLOW_COPY_AND_ASSIGN(TestRenderFrameHost);
114 }; 120 };
115 121
116 } // namespace content 122 } // namespace content
117 123
118 #endif // CONTENT_TEST_TEST_RENDER_FRAME_HOST_H_ 124 #endif // CONTENT_TEST_TEST_RENDER_FRAME_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698