| 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 // Another page accessed the top-level initial empty document, which means it | 82 // Another page accessed the top-level initial empty document, which means it |
| 83 // is no longer safe to display a pending URL without risking a URL spoof. | 83 // is no longer safe to display a pending URL without risking a URL spoof. |
| 84 virtual void DidAccessInitialDocument() {} | 84 virtual void DidAccessInitialDocument() {} |
| 85 | 85 |
| 86 // The frame set its opener to null, disowning it for the lifetime of the | 86 // The frame set its opener to null, disowning it for the lifetime of the |
| 87 // window. Only called for the top-level frame. | 87 // window. Only called for the top-level frame. |
| 88 virtual void DidDisownOpener(RenderFrameHost* render_frame_host) {} | 88 virtual void DidDisownOpener(RenderFrameHost* render_frame_host) {} |
| 89 | 89 |
| 90 // The onload handler in the frame has completed. Only called for the top- | 90 // The onload handler in the frame has completed. Only called for the top- |
| 91 // level frame. | 91 // level frame. |
| 92 virtual void DocumentOnLoadCompleted(RenderFrameHost* render_frame_host, | 92 virtual void DocumentOnLoadCompleted(RenderFrameHost* render_frame_host) {} |
| 93 int32 page_id) {} | |
| 94 | 93 |
| 95 // Return this object cast to a WebContents, if it is one. If the object is | 94 // Return this object cast to a WebContents, if it is one. If the object is |
| 96 // not a WebContents, returns NULL. | 95 // not a WebContents, returns NULL. |
| 97 virtual WebContents* GetAsWebContents(); | 96 virtual WebContents* GetAsWebContents(); |
| 98 | 97 |
| 99 protected: | 98 protected: |
| 100 virtual ~RenderFrameHostDelegate() {} | 99 virtual ~RenderFrameHostDelegate() {} |
| 101 }; | 100 }; |
| 102 | 101 |
| 103 } // namespace content | 102 } // namespace content |
| 104 | 103 |
| 105 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ | 104 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ |
| OLD | NEW |