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 "base/i18n/rtl.h" |
9 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
10 #include "content/public/common/javascript_message_type.h" | 11 #include "content/public/common/javascript_message_type.h" |
11 | 12 |
12 class GURL; | 13 class GURL; |
13 | 14 |
14 namespace IPC { | 15 namespace IPC { |
15 class Message; | 16 class Message; |
16 } | 17 } |
17 | 18 |
18 namespace content { | 19 namespace content { |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 virtual void DidAccessInitialDocument() {} | 85 virtual void DidAccessInitialDocument() {} |
85 | 86 |
86 // The frame set its opener to null, disowning it for the lifetime of the | 87 // The frame set its opener to null, disowning it for the lifetime of the |
87 // window. Only called for the top-level frame. | 88 // window. Only called for the top-level frame. |
88 virtual void DidDisownOpener(RenderFrameHost* render_frame_host) {} | 89 virtual void DidDisownOpener(RenderFrameHost* render_frame_host) {} |
89 | 90 |
90 // The onload handler in the frame has completed. Only called for the top- | 91 // The onload handler in the frame has completed. Only called for the top- |
91 // level frame. | 92 // level frame. |
92 virtual void DocumentOnLoadCompleted(RenderFrameHost* render_frame_host) {} | 93 virtual void DocumentOnLoadCompleted(RenderFrameHost* render_frame_host) {} |
93 | 94 |
| 95 // The page's title was changed and should be updated. Only called for the |
| 96 // top-level frame. |
| 97 virtual void UpdateTitle(RenderFrameHost* render_frame_host, |
| 98 int32 page_id, |
| 99 const base::string16& title, |
| 100 base::i18n::TextDirection title_direction) {} |
| 101 |
| 102 // The page's encoding was changed and should be updated. Only called for the |
| 103 // top-level frame. |
| 104 virtual void UpdateEncoding(RenderFrameHost* render_frame_host, |
| 105 const std::string& encoding) {} |
| 106 |
94 // Return this object cast to a WebContents, if it is one. If the object is | 107 // Return this object cast to a WebContents, if it is one. If the object is |
95 // not a WebContents, returns NULL. | 108 // not a WebContents, returns NULL. |
96 virtual WebContents* GetAsWebContents(); | 109 virtual WebContents* GetAsWebContents(); |
97 | 110 |
98 protected: | 111 protected: |
99 virtual ~RenderFrameHostDelegate() {} | 112 virtual ~RenderFrameHostDelegate() {} |
100 }; | 113 }; |
101 | 114 |
102 } // namespace content | 115 } // namespace content |
103 | 116 |
104 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ | 117 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ |
OLD | NEW |