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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 const base::string16& default_prompt, | 72 const base::string16& default_prompt, |
73 const GURL& frame_url, | 73 const GURL& frame_url, |
74 JavaScriptMessageType type, | 74 JavaScriptMessageType type, |
75 IPC::Message* reply_msg) {} | 75 IPC::Message* reply_msg) {} |
76 | 76 |
77 virtual void RunBeforeUnloadConfirm(RenderFrameHost* rfh, | 77 virtual void RunBeforeUnloadConfirm(RenderFrameHost* rfh, |
78 const base::string16& message, | 78 const base::string16& message, |
79 bool is_reload, | 79 bool is_reload, |
80 IPC::Message* reply_msg) {} | 80 IPC::Message* reply_msg) {} |
81 | 81 |
| 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. |
| 84 virtual void DidAccessInitialDocument() {} |
| 85 |
82 // Return this object cast to a WebContents, if it is one. If the object is | 86 // Return this object cast to a WebContents, if it is one. If the object is |
83 // not a WebContents, returns NULL. | 87 // not a WebContents, returns NULL. |
84 virtual WebContents* GetAsWebContents(); | 88 virtual WebContents* GetAsWebContents(); |
85 | 89 |
86 protected: | 90 protected: |
87 virtual ~RenderFrameHostDelegate() {} | 91 virtual ~RenderFrameHostDelegate() {} |
88 }; | 92 }; |
89 | 93 |
90 } // namespace content | 94 } // namespace content |
91 | 95 |
92 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ | 96 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ |
OLD | NEW |