| 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" |
| 11 #include "base/i18n/rtl.h" | 11 #include "base/i18n/rtl.h" |
| 12 #include "content/common/content_export.h" | 12 #include "content/common/content_export.h" |
| 13 #include "content/common/frame_message_enums.h" | 13 #include "content/common/frame_message_enums.h" |
| 14 #include "content/public/browser/bluetooth_chooser.h" |
| 14 #include "content/public/browser/site_instance.h" | 15 #include "content/public/browser/site_instance.h" |
| 15 #include "content/public/common/javascript_message_type.h" | 16 #include "content/public/common/javascript_message_type.h" |
| 16 #include "content/public/common/media_stream_request.h" | 17 #include "content/public/common/media_stream_request.h" |
| 17 #include "net/http/http_response_headers.h" | 18 #include "net/http/http_response_headers.h" |
| 18 | 19 |
| 19 #if defined(OS_WIN) | 20 #if defined(OS_WIN) |
| 20 #include "ui/gfx/native_widget_types.h" | 21 #include "ui/gfx/native_widget_types.h" |
| 21 #endif | 22 #endif |
| 22 | 23 |
| 23 class GURL; | 24 class GURL; |
| (...skipping 105 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 // The render frame has asked to show the bluetooth.requestDevice() chooser. |
| 141 virtual scoped_ptr<BluetoothChooser> RunBluetoothChooser( |
| 142 BluetoothChooser::Observer* observer, |
| 143 int chooser_id, |
| 144 const GURL& origin); |
| 145 |
| 139 // Notification that the frame wants to go into fullscreen mode. | 146 // Notification that the frame wants to go into fullscreen mode. |
| 140 // |origin| represents the origin of the frame that requests fullscreen. | 147 // |origin| represents the origin of the frame that requests fullscreen. |
| 141 virtual void EnterFullscreenMode(const GURL& origin) {} | 148 virtual void EnterFullscreenMode(const GURL& origin) {} |
| 142 | 149 |
| 143 // Notification that the frame wants to go out of fullscreen mode. | 150 // Notification that the frame wants to go out of fullscreen mode. |
| 144 virtual void ExitFullscreenMode() {} | 151 virtual void ExitFullscreenMode() {} |
| 145 | 152 |
| 146 // Let the delegate decide whether postMessage should be delivered to | 153 // Let the delegate decide whether postMessage should be delivered to |
| 147 // |target_rfh| from a source frame in the given SiteInstance. This defaults | 154 // |target_rfh| from a source frame in the given SiteInstance. This defaults |
| 148 // to false and overrides the RenderFrameHost's decision if true. | 155 // to false and overrides the RenderFrameHost's decision if true. |
| (...skipping 20 matching lines...) Expand all Loading... |
| 169 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible(); | 176 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible(); |
| 170 #endif | 177 #endif |
| 171 | 178 |
| 172 protected: | 179 protected: |
| 173 virtual ~RenderFrameHostDelegate() {} | 180 virtual ~RenderFrameHostDelegate() {} |
| 174 }; | 181 }; |
| 175 | 182 |
| 176 } // namespace content | 183 } // namespace content |
| 177 | 184 |
| 178 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ | 185 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ |
| OLD | NEW |