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