| 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 11 matching lines...) Expand all Loading... |
| 22 #endif | 22 #endif |
| 23 | 23 |
| 24 class GURL; | 24 class GURL; |
| 25 | 25 |
| 26 namespace IPC { | 26 namespace IPC { |
| 27 class Message; | 27 class Message; |
| 28 } | 28 } |
| 29 | 29 |
| 30 namespace content { | 30 namespace content { |
| 31 class GeolocationServiceContext; | 31 class GeolocationServiceContext; |
| 32 class PageState; | |
| 33 class RenderFrameHost; | 32 class RenderFrameHost; |
| 34 class WakeLockServiceContext; | 33 class WakeLockServiceContext; |
| 35 class WebContents; | 34 class WebContents; |
| 36 struct AXEventNotificationDetails; | 35 struct AXEventNotificationDetails; |
| 37 struct ContextMenuParams; | 36 struct ContextMenuParams; |
| 37 struct ExplodedFrameState; |
| 38 struct TransitionLayerData; | 38 struct TransitionLayerData; |
| 39 | 39 |
| 40 // An interface implemented by an object interested in knowing about the state | 40 // An interface implemented by an object interested in knowing about the state |
| 41 // of the RenderFrameHost. | 41 // of the RenderFrameHost. |
| 42 class CONTENT_EXPORT RenderFrameHostDelegate { | 42 class CONTENT_EXPORT RenderFrameHostDelegate { |
| 43 public: | 43 public: |
| 44 // This is used to give the delegate a chance to filter IPC messages. | 44 // This is used to give the delegate a chance to filter IPC messages. |
| 45 virtual bool OnMessageReceived(RenderFrameHost* render_frame_host, | 45 virtual bool OnMessageReceived(RenderFrameHost* render_frame_host, |
| 46 const IPC::Message& message); | 46 const IPC::Message& message); |
| 47 | 47 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 virtual void DidAccessInitialDocument() {} | 87 virtual void DidAccessInitialDocument() {} |
| 88 | 88 |
| 89 // The frame changed its window.name property. | 89 // The frame changed its window.name property. |
| 90 virtual void DidChangeName(RenderFrameHost* render_frame_host, | 90 virtual void DidChangeName(RenderFrameHost* render_frame_host, |
| 91 const std::string& name) {} | 91 const std::string& name) {} |
| 92 | 92 |
| 93 // The onload handler in the frame has completed. Only called for the top- | 93 // The onload handler in the frame has completed. Only called for the top- |
| 94 // level frame. | 94 // level frame. |
| 95 virtual void DocumentOnLoadCompleted(RenderFrameHost* render_frame_host) {} | 95 virtual void DocumentOnLoadCompleted(RenderFrameHost* render_frame_host) {} |
| 96 | 96 |
| 97 // The state for the page changed and should be updated in session history. | 97 // The state for the frame changed and should be updated in session history. |
| 98 virtual void UpdateStateForFrame(RenderFrameHost* render_frame_host, | 98 virtual void UpdateStateForFrame(RenderFrameHost* render_frame_host, |
| 99 const PageState& page_state) {} | 99 const ExplodedFrameState& frame_state) {} |
| 100 | 100 |
| 101 // The page's title was changed and should be updated. Only called for the | 101 // The page's title was changed and should be updated. Only called for the |
| 102 // top-level frame. | 102 // top-level frame. |
| 103 virtual void UpdateTitle(RenderFrameHost* render_frame_host, | 103 virtual void UpdateTitle(RenderFrameHost* render_frame_host, |
| 104 int32 page_id, | 104 int32 page_id, |
| 105 const base::string16& title, | 105 const base::string16& title, |
| 106 base::i18n::TextDirection title_direction) {} | 106 base::i18n::TextDirection title_direction) {} |
| 107 | 107 |
| 108 // The page's encoding was changed and should be updated. Only called for the | 108 // The page's encoding was changed and should be updated. Only called for the |
| 109 // top-level frame. | 109 // top-level frame. |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible(); | 182 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible(); |
| 183 #endif | 183 #endif |
| 184 | 184 |
| 185 protected: | 185 protected: |
| 186 virtual ~RenderFrameHostDelegate() {} | 186 virtual ~RenderFrameHostDelegate() {} |
| 187 }; | 187 }; |
| 188 | 188 |
| 189 } // namespace content | 189 } // namespace content |
| 190 | 190 |
| 191 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ | 191 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ |
| OLD | NEW |