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 <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 | 97 |
98 virtual void RunBeforeUnloadConfirm(RenderFrameHost* render_frame_host, | 98 virtual void RunBeforeUnloadConfirm(RenderFrameHost* render_frame_host, |
99 const base::string16& message, | 99 const base::string16& message, |
100 bool is_reload, | 100 bool is_reload, |
101 IPC::Message* reply_msg) {} | 101 IPC::Message* reply_msg) {} |
102 | 102 |
103 // Another page accessed the top-level initial empty document, which means it | 103 // Another page accessed the top-level initial empty document, which means it |
104 // is no longer safe to display a pending URL without risking a URL spoof. | 104 // is no longer safe to display a pending URL without risking a URL spoof. |
105 virtual void DidAccessInitialDocument() {} | 105 virtual void DidAccessInitialDocument() {} |
106 | 106 |
| 107 // The frame changed its window.name property. |
| 108 virtual void DidChangeName(RenderFrameHost* render_frame_host, |
| 109 const std::string& name) {} |
| 110 |
107 // The frame set its opener to null, disowning it for the lifetime of the | 111 // The frame set its opener to null, disowning it for the lifetime of the |
108 // window. Only called for the top-level frame. | 112 // window. Only called for the top-level frame. |
109 virtual void DidDisownOpener(RenderFrameHost* render_frame_host) {} | 113 virtual void DidDisownOpener(RenderFrameHost* render_frame_host) {} |
110 | 114 |
111 // The onload handler in the frame has completed. Only called for the top- | 115 // The onload handler in the frame has completed. Only called for the top- |
112 // level frame. | 116 // level frame. |
113 virtual void DocumentOnLoadCompleted(RenderFrameHost* render_frame_host) {} | 117 virtual void DocumentOnLoadCompleted(RenderFrameHost* render_frame_host) {} |
114 | 118 |
115 // The page's title was changed and should be updated. Only called for the | 119 // The page's title was changed and should be updated. Only called for the |
116 // top-level frame. | 120 // top-level frame. |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible(); | 173 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible(); |
170 #endif | 174 #endif |
171 | 175 |
172 protected: | 176 protected: |
173 virtual ~RenderFrameHostDelegate() {} | 177 virtual ~RenderFrameHostDelegate() {} |
174 }; | 178 }; |
175 | 179 |
176 } // namespace content | 180 } // namespace content |
177 | 181 |
178 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ | 182 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ |
OLD | NEW |