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

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

Powered by Google App Engine
This is Rietveld 408576698