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

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

Issue 297973002: Navigation transitions: Block first response until after transitions have run. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 6 years, 6 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_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/i18n/rtl.h" 9 #include "base/i18n/rtl.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 // The top-level RenderFrame began loading a new page. This corresponds to 48 // The top-level RenderFrame began loading a new page. This corresponds to
49 // Blink's notion of the throbber starting. 49 // Blink's notion of the throbber starting.
50 // |to_different_document| will be true unless the load is a fragment 50 // |to_different_document| will be true unless the load is a fragment
51 // navigation, or triggered by history.pushState/replaceState. 51 // navigation, or triggered by history.pushState/replaceState.
52 virtual void DidStartLoading(RenderFrameHost* render_frame_host, 52 virtual void DidStartLoading(RenderFrameHost* render_frame_host,
53 bool to_different_document) {} 53 bool to_different_document) {}
54 54
55 // The RenderFrameHost has been swapped out. 55 // The RenderFrameHost has been swapped out.
56 virtual void SwappedOut(RenderFrameHost* render_frame_host) {} 56 virtual void SwappedOut(RenderFrameHost* render_frame_host) {}
57 57
58 // Notification that the navigation on the main frame is blocked waiting
59 // for transition to occur.
60 virtual void DidDeferAfterResponseStarted() {}
61
62 // Used to query whether the navigation transition will be handled.
63 virtual bool WillHandleDeferAfterResponseStarted();
64
58 // Notification that a worker process has crashed. 65 // Notification that a worker process has crashed.
59 virtual void WorkerCrashed(RenderFrameHost* render_frame_host) {} 66 virtual void WorkerCrashed(RenderFrameHost* render_frame_host) {}
60 67
61 // A context menu should be shown, to be built using the context information 68 // A context menu should be shown, to be built using the context information
62 // provided in the supplied params. 69 // provided in the supplied params.
63 virtual void ShowContextMenu(RenderFrameHost* render_frame_host, 70 virtual void ShowContextMenu(RenderFrameHost* render_frame_host,
64 const ContextMenuParams& params) {} 71 const ContextMenuParams& params) {}
65 72
66 // A JavaScript message, confirmation or prompt should be shown. 73 // A JavaScript message, confirmation or prompt should be shown.
67 virtual void RunJavaScriptMessage(RenderFrameHost* render_frame_host, 74 virtual void RunJavaScriptMessage(RenderFrameHost* render_frame_host,
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 // not a WebContents, returns NULL. 111 // not a WebContents, returns NULL.
105 virtual WebContents* GetAsWebContents(); 112 virtual WebContents* GetAsWebContents();
106 113
107 protected: 114 protected:
108 virtual ~RenderFrameHostDelegate() {} 115 virtual ~RenderFrameHostDelegate() {}
109 }; 116 };
110 117
111 } // namespace content 118 } // namespace content
112 119
113 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ 120 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/browser/android/content_view_core_impl.cc ('k') | content/browser/frame_host/render_frame_host_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698