OLD | NEW |
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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 | 58 // Notification that the navigation on the main frame is blocked waiting |
59 // for transition to occur. | 59 // for transition to occur. |
60 virtual void DidDeferAfterResponseStarted() {} | 60 virtual void DidDeferAfterResponseStarted(const GURL& transition_url) {} |
61 | 61 |
62 // Used to query whether the navigation transition will be handled. | 62 // Used to query whether the navigation transition will be handled. |
63 virtual bool WillHandleDeferAfterResponseStarted(); | 63 virtual bool WillHandleDeferAfterResponseStarted(); |
64 | 64 |
65 // Notification that a worker process has crashed. | 65 // Notification that a worker process has crashed. |
66 virtual void WorkerCrashed(RenderFrameHost* render_frame_host) {} | 66 virtual void WorkerCrashed(RenderFrameHost* render_frame_host) {} |
67 | 67 |
68 // 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 |
69 // provided in the supplied params. | 69 // provided in the supplied params. |
70 virtual void ShowContextMenu(RenderFrameHost* render_frame_host, | 70 virtual void ShowContextMenu(RenderFrameHost* render_frame_host, |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 // not a WebContents, returns NULL. | 111 // not a WebContents, returns NULL. |
112 virtual WebContents* GetAsWebContents(); | 112 virtual WebContents* GetAsWebContents(); |
113 | 113 |
114 protected: | 114 protected: |
115 virtual ~RenderFrameHostDelegate() {} | 115 virtual ~RenderFrameHostDelegate() {} |
116 }; | 116 }; |
117 | 117 |
118 } // namespace content | 118 } // namespace content |
119 | 119 |
120 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ | 120 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ |
OLD | NEW |