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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 // Informs the delegate whenever a RenderFrameHost is deleted. | 45 // Informs the delegate whenever a RenderFrameHost is deleted. |
46 virtual void RenderFrameDeleted(RenderFrameHost* render_frame_host) {} | 46 virtual void RenderFrameDeleted(RenderFrameHost* render_frame_host) {} |
47 | 47 |
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 top-level RenderFrame stopped loading a page. This corresponds to | |
56 // Blink's notion of the throbber stopping. | |
57 virtual void DidStopLoading(RenderFrameHost* render_frame_host) {} | |
58 | |
59 // The RenderFrameHost has been swapped out. | 55 // The RenderFrameHost has been swapped out. |
60 virtual void SwappedOut(RenderFrameHost* render_frame_host) {} | 56 virtual void SwappedOut(RenderFrameHost* render_frame_host) {} |
61 | 57 |
62 // Notification that a worker process has crashed. | 58 // Notification that a worker process has crashed. |
63 virtual void WorkerCrashed(RenderFrameHost* render_frame_host) {} | 59 virtual void WorkerCrashed(RenderFrameHost* render_frame_host) {} |
64 | 60 |
65 // A context menu should be shown, to be built using the context information | 61 // A context menu should be shown, to be built using the context information |
66 // provided in the supplied params. | 62 // provided in the supplied params. |
67 virtual void ShowContextMenu(RenderFrameHost* render_frame_host, | 63 virtual void ShowContextMenu(RenderFrameHost* render_frame_host, |
68 const ContextMenuParams& params) {} | 64 const ContextMenuParams& params) {} |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 // not a WebContents, returns NULL. | 104 // not a WebContents, returns NULL. |
109 virtual WebContents* GetAsWebContents(); | 105 virtual WebContents* GetAsWebContents(); |
110 | 106 |
111 protected: | 107 protected: |
112 virtual ~RenderFrameHostDelegate() {} | 108 virtual ~RenderFrameHostDelegate() {} |
113 }; | 109 }; |
114 | 110 |
115 } // namespace content | 111 } // namespace content |
116 | 112 |
117 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ | 113 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ |
OLD | NEW |