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

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: Created 6 years, 7 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 // Navigation is blocked waiting for transition to occur.
nasko 2014/05/28 22:59:00 nit: Add a comment that this is called only for th
shatch 2014/05/29 21:41:22 Done.
59 virtual void DidDeferAfterResponseStarted() {}
60
58 // Notification that a worker process has crashed. 61 // Notification that a worker process has crashed.
59 virtual void WorkerCrashed(RenderFrameHost* render_frame_host) {} 62 virtual void WorkerCrashed(RenderFrameHost* render_frame_host) {}
60 63
61 // A context menu should be shown, to be built using the context information 64 // A context menu should be shown, to be built using the context information
62 // provided in the supplied params. 65 // provided in the supplied params.
63 virtual void ShowContextMenu(RenderFrameHost* render_frame_host, 66 virtual void ShowContextMenu(RenderFrameHost* render_frame_host,
64 const ContextMenuParams& params) {} 67 const ContextMenuParams& params) {}
65 68
66 // A JavaScript message, confirmation or prompt should be shown. 69 // A JavaScript message, confirmation or prompt should be shown.
67 virtual void RunJavaScriptMessage(RenderFrameHost* render_frame_host, 70 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. 107 // not a WebContents, returns NULL.
105 virtual WebContents* GetAsWebContents(); 108 virtual WebContents* GetAsWebContents();
106 109
107 protected: 110 protected:
108 virtual ~RenderFrameHostDelegate() {} 111 virtual ~RenderFrameHostDelegate() {}
109 }; 112 };
110 113
111 } // namespace content 114 } // namespace content
112 115
113 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ 116 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698