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

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: Addressed Charlie's comments Created 5 years, 10 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 simulate_history_list_was_cleared_ = cleared; 96 simulate_history_list_was_cleared_ = cleared;
97 } 97 }
98 98
99 // Advances the RenderFrameHost (and through it the RenderFrameHostManager) to 99 // Advances the RenderFrameHost (and through it the RenderFrameHostManager) to
100 // a state where a new navigation can be committed by a renderer. Currently, 100 // a state where a new navigation can be committed by a renderer. Currently,
101 // this simulates a BeforeUnload ACK from the renderer. 101 // this simulates a BeforeUnload ACK from the renderer.
102 // PlzNavigate: this simulates a BeforeUnload ACK from the renderer, and the 102 // PlzNavigate: this simulates a BeforeUnload ACK from the renderer, and the
103 // interaction with the IO thread up until the response is ready to commit. 103 // interaction with the IO thread up until the response is ready to commit.
104 void PrepareForCommit(const GURL& url); 104 void PrepareForCommit(const GURL& url);
105 105
106 // Simulate receiving a FrameHostMsg_BeforeUnloadHandlersPresent.
107 void SendBeforeUnloadHandlersPresent(bool present);
108
109 // Simulate receiving a FrameHostMsg_UnloadHandlersPresent.
110 void SendUnloadHandlersPresent(bool present);
111
106 private: 112 private:
107 TestRenderFrameHostCreationObserver child_creation_observer_; 113 TestRenderFrameHostCreationObserver child_creation_observer_;
108 114
109 std::string contents_mime_type_; 115 std::string contents_mime_type_;
110 116
111 // See set_simulate_history_list_was_cleared() above. 117 // See set_simulate_history_list_was_cleared() above.
112 bool simulate_history_list_was_cleared_; 118 bool simulate_history_list_was_cleared_;
113 119
114 DISALLOW_COPY_AND_ASSIGN(TestRenderFrameHost); 120 DISALLOW_COPY_AND_ASSIGN(TestRenderFrameHost);
115 }; 121 };
116 122
117 } // namespace content 123 } // namespace content
118 124
119 #endif // CONTENT_TEST_TEST_RENDER_FRAME_HOST_H_ 125 #endif // CONTENT_TEST_TEST_RENDER_FRAME_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698