| 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 | 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 RenderFrameHost; | 31 class RenderFrameHost; |
| 32 class WakeLockServiceContext; |
| 32 class WebContents; | 33 class WebContents; |
| 33 struct AXEventNotificationDetails; | 34 struct AXEventNotificationDetails; |
| 34 struct ContextMenuParams; | 35 struct ContextMenuParams; |
| 35 struct TransitionLayerData; | 36 struct TransitionLayerData; |
| 36 | 37 |
| 37 // An interface implemented by an object interested in knowing about the state | 38 // An interface implemented by an object interested in knowing about the state |
| 38 // of the RenderFrameHost. | 39 // of the RenderFrameHost. |
| 39 class CONTENT_EXPORT RenderFrameHostDelegate { | 40 class CONTENT_EXPORT RenderFrameHostDelegate { |
| 40 public: | 41 public: |
| 41 // This is used to give the delegate a chance to filter IPC messages. | 42 // This is used to give the delegate a chance to filter IPC messages. |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 | 130 |
| 130 // Find a guest RenderFrameHost by its parent |render_frame_host| and | 131 // Find a guest RenderFrameHost by its parent |render_frame_host| and |
| 131 // |browser_plugin_instance_id|. | 132 // |browser_plugin_instance_id|. |
| 132 virtual RenderFrameHost* GetGuestByInstanceID( | 133 virtual RenderFrameHost* GetGuestByInstanceID( |
| 133 RenderFrameHost* render_frame_host, | 134 RenderFrameHost* render_frame_host, |
| 134 int browser_plugin_instance_id); | 135 int browser_plugin_instance_id); |
| 135 | 136 |
| 136 // Gets the GeolocationServiceContext associated with this delegate. | 137 // Gets the GeolocationServiceContext associated with this delegate. |
| 137 virtual GeolocationServiceContext* GetGeolocationServiceContext(); | 138 virtual GeolocationServiceContext* GetGeolocationServiceContext(); |
| 138 | 139 |
| 140 // Gets the WakeLockServiceContext associated with this delegate. |
| 141 virtual WakeLockServiceContext* GetWakeLockServiceContext(); |
| 142 |
| 139 // Notification that the frame wants to go into fullscreen mode. | 143 // Notification that the frame wants to go into fullscreen mode. |
| 140 // |origin| represents the origin of the frame that requests fullscreen. | 144 // |origin| represents the origin of the frame that requests fullscreen. |
| 141 virtual void EnterFullscreenMode(const GURL& origin) {} | 145 virtual void EnterFullscreenMode(const GURL& origin) {} |
| 142 | 146 |
| 143 // Notification that the frame wants to go out of fullscreen mode. | 147 // Notification that the frame wants to go out of fullscreen mode. |
| 144 virtual void ExitFullscreenMode() {} | 148 virtual void ExitFullscreenMode() {} |
| 145 | 149 |
| 146 // Let the delegate decide whether postMessage should be delivered to | 150 // Let the delegate decide whether postMessage should be delivered to |
| 147 // |target_rfh| from a source frame in the given SiteInstance. This defaults | 151 // |target_rfh| from a source frame in the given SiteInstance. This defaults |
| 148 // to false and overrides the RenderFrameHost's decision if true. | 152 // to false and overrides the RenderFrameHost's decision if true. |
| (...skipping 19 matching lines...) Expand all Loading... |
| 168 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible(); | 172 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible(); |
| 169 #endif | 173 #endif |
| 170 | 174 |
| 171 protected: | 175 protected: |
| 172 virtual ~RenderFrameHostDelegate() {} | 176 virtual ~RenderFrameHostDelegate() {} |
| 173 }; | 177 }; |
| 174 | 178 |
| 175 } // namespace content | 179 } // namespace content |
| 176 | 180 |
| 177 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ | 181 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ |
| OLD | NEW |