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 "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
10 #include "content/public/common/javascript_message_type.h" | 10 #include "content/public/common/javascript_message_type.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 // Informs the delegate whenever a RenderFrameHost is deleted. | 44 // Informs the delegate whenever a RenderFrameHost is deleted. |
45 virtual void RenderFrameDeleted(RenderFrameHost* render_frame_host) {} | 45 virtual void RenderFrameDeleted(RenderFrameHost* render_frame_host) {} |
46 | 46 |
47 // The top-level RenderFrame began loading a new page. This corresponds to | 47 // The top-level RenderFrame began loading a new page. This corresponds to |
48 // Blink's notion of the throbber starting. | 48 // Blink's notion of the throbber starting. |
49 // |to_different_document| will be true unless the load is a fragment | 49 // |to_different_document| will be true unless the load is a fragment |
50 // navigation, or triggered by history.pushState/replaceState. | 50 // navigation, or triggered by history.pushState/replaceState. |
51 virtual void DidStartLoading(RenderFrameHost* render_frame_host, | 51 virtual void DidStartLoading(RenderFrameHost* render_frame_host, |
52 bool to_different_document) {} | 52 bool to_different_document) {} |
53 | 53 |
54 // The top-level RenderFrame stopped loading a page. This corresponds to | |
55 // Blink's notion of the throbber stopping. | |
56 virtual void DidStopLoading(RenderFrameHost* render_frame_host) {} | |
57 | |
58 // The RenderFrameHost has been swapped out. | 54 // The RenderFrameHost has been swapped out. |
59 virtual void SwappedOut(RenderFrameHost* render_frame_host) {} | 55 virtual void SwappedOut(RenderFrameHost* render_frame_host) {} |
60 | 56 |
61 // Notification that a worker process has crashed. | 57 // Notification that a worker process has crashed. |
62 virtual void WorkerCrashed(RenderFrameHost* render_frame_host) {} | 58 virtual void WorkerCrashed(RenderFrameHost* render_frame_host) {} |
63 | 59 |
64 // A context menu should be shown, to be built using the context information | 60 // A context menu should be shown, to be built using the context information |
65 // provided in the supplied params. | 61 // provided in the supplied params. |
66 virtual void ShowContextMenu(RenderFrameHost* render_frame_host, | 62 virtual void ShowContextMenu(RenderFrameHost* render_frame_host, |
67 const ContextMenuParams& params) {} | 63 const ContextMenuParams& params) {} |
(...skipping 28 matching lines...) Expand all Loading... |
96 // not a WebContents, returns NULL. | 92 // not a WebContents, returns NULL. |
97 virtual WebContents* GetAsWebContents(); | 93 virtual WebContents* GetAsWebContents(); |
98 | 94 |
99 protected: | 95 protected: |
100 virtual ~RenderFrameHostDelegate() {} | 96 virtual ~RenderFrameHostDelegate() {} |
101 }; | 97 }; |
102 | 98 |
103 } // namespace content | 99 } // namespace content |
104 | 100 |
105 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ | 101 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ |
OLD | NEW |