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

Side by Side Diff: content/browser/frame_host/render_frame_host_impl.h

Issue 509063004: Move ViewMsg_Stop from RenderViewHost to RenderFrameHost. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Another rebase to fix patch failure. Created 6 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 | Annotate | Revision Log
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_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 // function takes ownership of the provided message pointer. 185 // function takes ownership of the provided message pointer.
186 // 186 //
187 // If a cross-site request is in progress, we may be suspended while waiting 187 // If a cross-site request is in progress, we may be suspended while waiting
188 // for the onbeforeunload handler, so this function might buffer the message 188 // for the onbeforeunload handler, so this function might buffer the message
189 // rather than sending it. 189 // rather than sending it.
190 void Navigate(const FrameMsg_Navigate_Params& params); 190 void Navigate(const FrameMsg_Navigate_Params& params);
191 191
192 // Load the specified URL; this is a shortcut for Navigate(). 192 // Load the specified URL; this is a shortcut for Navigate().
193 void NavigateToURL(const GURL& url); 193 void NavigateToURL(const GURL& url);
194 194
195 // Stop the load in progress.
196 void Stop();
197
195 // Returns whether navigation messages are currently suspended for this 198 // Returns whether navigation messages are currently suspended for this
196 // RenderFrameHost. Only true during a cross-site navigation, while waiting 199 // RenderFrameHost. Only true during a cross-site navigation, while waiting
197 // for the onbeforeunload handler. 200 // for the onbeforeunload handler.
198 bool are_navigations_suspended() const { return navigations_suspended_; } 201 bool are_navigations_suspended() const { return navigations_suspended_; }
199 202
200 // Suspends (or unsuspends) any navigation messages from being sent from this 203 // Suspends (or unsuspends) any navigation messages from being sent from this
201 // RenderFrameHost. This is called when a pending RenderFrameHost is created 204 // RenderFrameHost. This is called when a pending RenderFrameHost is created
202 // for a cross-site navigation, because we must suspend any navigations until 205 // for a cross-site navigation, because we must suspend any navigations until
203 // we hear back from the old renderer's onbeforeunload handler. Note that it 206 // we hear back from the old renderer's onbeforeunload handler. Note that it
204 // is important that only one navigation event happen after calling this 207 // is important that only one navigation event happen after calling this
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 base::Callback<void(ui::AXEvent, int)> accessibility_testing_callback_; 446 base::Callback<void(ui::AXEvent, int)> accessibility_testing_callback_;
444 // The most recently received accessibility tree - for testing only. 447 // The most recently received accessibility tree - for testing only.
445 scoped_ptr<ui::AXTree> ax_tree_for_testing_; 448 scoped_ptr<ui::AXTree> ax_tree_for_testing_;
446 449
447 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); 450 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl);
448 }; 451 };
449 452
450 } // namespace content 453 } // namespace content
451 454
452 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 455 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/applescript/tab_applescript.mm ('k') | content/browser/frame_host/render_frame_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698