| 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 10 matching lines...) Expand all Loading... |
| 21 #endif | 21 #endif |
| 22 | 22 |
| 23 class GURL; | 23 class GURL; |
| 24 | 24 |
| 25 namespace IPC { | 25 namespace IPC { |
| 26 class Message; | 26 class Message; |
| 27 } | 27 } |
| 28 | 28 |
| 29 namespace content { | 29 namespace content { |
| 30 class GeolocationServiceContext; | 30 class GeolocationServiceContext; |
| 31 class PageState; |
| 31 class RenderFrameHost; | 32 class RenderFrameHost; |
| 32 class WakeLockServiceContext; | 33 class WakeLockServiceContext; |
| 33 class WebContents; | 34 class WebContents; |
| 34 struct AXEventNotificationDetails; | 35 struct AXEventNotificationDetails; |
| 35 struct ContextMenuParams; | 36 struct ContextMenuParams; |
| 36 struct TransitionLayerData; | 37 struct TransitionLayerData; |
| 37 | 38 |
| 38 // An interface implemented by an object interested in knowing about the state | 39 // An interface implemented by an object interested in knowing about the state |
| 39 // of the RenderFrameHost. | 40 // of the RenderFrameHost. |
| 40 class CONTENT_EXPORT RenderFrameHostDelegate { | 41 class CONTENT_EXPORT RenderFrameHostDelegate { |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 virtual void DidAccessInitialDocument() {} | 86 virtual void DidAccessInitialDocument() {} |
| 86 | 87 |
| 87 // The frame changed its window.name property. | 88 // The frame changed its window.name property. |
| 88 virtual void DidChangeName(RenderFrameHost* render_frame_host, | 89 virtual void DidChangeName(RenderFrameHost* render_frame_host, |
| 89 const std::string& name) {} | 90 const std::string& name) {} |
| 90 | 91 |
| 91 // The onload handler in the frame has completed. Only called for the top- | 92 // The onload handler in the frame has completed. Only called for the top- |
| 92 // level frame. | 93 // level frame. |
| 93 virtual void DocumentOnLoadCompleted(RenderFrameHost* render_frame_host) {} | 94 virtual void DocumentOnLoadCompleted(RenderFrameHost* render_frame_host) {} |
| 94 | 95 |
| 96 // The state for the page changed and should be updated in session history. |
| 97 virtual void UpdateStateForFrame(RenderFrameHost* render_frame_host, |
| 98 const PageState& page_state) {} |
| 99 |
| 95 // The page's title was changed and should be updated. Only called for the | 100 // The page's title was changed and should be updated. Only called for the |
| 96 // top-level frame. | 101 // top-level frame. |
| 97 virtual void UpdateTitle(RenderFrameHost* render_frame_host, | 102 virtual void UpdateTitle(RenderFrameHost* render_frame_host, |
| 98 int32 page_id, | 103 int32 page_id, |
| 99 const base::string16& title, | 104 const base::string16& title, |
| 100 base::i18n::TextDirection title_direction) {} | 105 base::i18n::TextDirection title_direction) {} |
| 101 | 106 |
| 102 // The page's encoding was changed and should be updated. Only called for the | 107 // The page's encoding was changed and should be updated. Only called for the |
| 103 // top-level frame. | 108 // top-level frame. |
| 104 virtual void UpdateEncoding(RenderFrameHost* render_frame_host, | 109 virtual void UpdateEncoding(RenderFrameHost* render_frame_host, |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible(); | 177 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible(); |
| 173 #endif | 178 #endif |
| 174 | 179 |
| 175 protected: | 180 protected: |
| 176 virtual ~RenderFrameHostDelegate() {} | 181 virtual ~RenderFrameHostDelegate() {} |
| 177 }; | 182 }; |
| 178 | 183 |
| 179 } // namespace content | 184 } // namespace content |
| 180 | 185 |
| 181 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ | 186 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ |
| OLD | NEW |