| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 | 212 |
| 213 // The RenderView made progress loading a page's top frame. | 213 // The RenderView made progress loading a page's top frame. |
| 214 // |progress| is a value between 0 (nothing loaded) to 1.0 (top frame | 214 // |progress| is a value between 0 (nothing loaded) to 1.0 (top frame |
| 215 // entirely loaded). | 215 // entirely loaded). |
| 216 virtual void DidChangeLoadProgress(double progress) {} | 216 virtual void DidChangeLoadProgress(double progress) {} |
| 217 | 217 |
| 218 // The RenderView set its opener to null, disowning it for the lifetime of | 218 // The RenderView set its opener to null, disowning it for the lifetime of |
| 219 // the window. | 219 // the window. |
| 220 virtual void DidDisownOpener(RenderViewHost* rvh) {} | 220 virtual void DidDisownOpener(RenderViewHost* rvh) {} |
| 221 | 221 |
| 222 // Another page accessed the initial empty document of this RenderView, | |
| 223 // which means it is no longer safe to display a pending URL without | |
| 224 // risking a URL spoof. | |
| 225 virtual void DidAccessInitialDocument() {} | |
| 226 | |
| 227 // The RenderView's main frame document element is ready. This happens when | 222 // The RenderView's main frame document element is ready. This happens when |
| 228 // the document has finished parsing. | 223 // the document has finished parsing. |
| 229 virtual void DocumentAvailableInMainFrame(RenderViewHost* render_view_host) {} | 224 virtual void DocumentAvailableInMainFrame(RenderViewHost* render_view_host) {} |
| 230 | 225 |
| 231 // The onload handler in the RenderView's main frame has completed. | 226 // The onload handler in the RenderView's main frame has completed. |
| 232 virtual void DocumentOnLoadCompletedInMainFrame( | 227 virtual void DocumentOnLoadCompletedInMainFrame( |
| 233 RenderViewHost* render_view_host, | 228 RenderViewHost* render_view_host, |
| 234 int32 page_id) {} | 229 int32 page_id) {} |
| 235 | 230 |
| 236 // The page wants to open a URL with the specified disposition. | 231 // The page wants to open a URL with the specified disposition. |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 417 const MediaStreamRequest& request, | 412 const MediaStreamRequest& request, |
| 418 const MediaResponseCallback& callback) {} | 413 const MediaResponseCallback& callback) {} |
| 419 | 414 |
| 420 protected: | 415 protected: |
| 421 virtual ~RenderViewHostDelegate() {} | 416 virtual ~RenderViewHostDelegate() {} |
| 422 }; | 417 }; |
| 423 | 418 |
| 424 } // namespace content | 419 } // namespace content |
| 425 | 420 |
| 426 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 421 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| OLD | NEW |