| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/i18n/rtl.h" | 13 #include "base/i18n/rtl.h" |
| 14 #include "build/build_config.h" | 14 #include "build/build_config.h" |
| 15 #include "content/browser/webui/web_ui_impl.h" | 15 #include "content/browser/webui/web_ui_impl.h" |
| 16 #include "content/common/content_export.h" | 16 #include "content/common/content_export.h" |
| 17 #include "content/common/frame_message_enums.h" | 17 #include "content/common/frame_message_enums.h" |
| 18 #include "content/public/browser/site_instance.h" | 18 #include "content/public/browser/site_instance.h" |
| 19 #include "content/public/common/javascript_dialog_type.h" | 19 #include "content/public/common/javascript_dialog_type.h" |
| 20 #include "content/public/common/media_stream_request.h" | 20 #include "content/public/common/media_stream_request.h" |
| 21 #include "device/nfc/nfc.mojom.h" |
| 21 #include "device/wake_lock/public/interfaces/wake_lock_service.mojom.h" | 22 #include "device/wake_lock/public/interfaces/wake_lock_service.mojom.h" |
| 22 #include "mojo/public/cpp/bindings/scoped_interface_endpoint_handle.h" | 23 #include "mojo/public/cpp/bindings/scoped_interface_endpoint_handle.h" |
| 23 #include "net/http/http_response_headers.h" | 24 #include "net/http/http_response_headers.h" |
| 24 #include "ui/base/window_open_disposition.h" | 25 #include "ui/base/window_open_disposition.h" |
| 25 | 26 |
| 26 #if defined(OS_WIN) | 27 #if defined(OS_WIN) |
| 27 #include "ui/gfx/native_widget_types.h" | 28 #include "ui/gfx/native_widget_types.h" |
| 28 #endif | 29 #endif |
| 29 | 30 |
| 30 #if defined(OS_ANDROID) | 31 #if defined(OS_ANDROID) |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 virtual RenderFrameHost* GetGuestByInstanceID( | 188 virtual RenderFrameHost* GetGuestByInstanceID( |
| 188 RenderFrameHost* render_frame_host, | 189 RenderFrameHost* render_frame_host, |
| 189 int browser_plugin_instance_id); | 190 int browser_plugin_instance_id); |
| 190 | 191 |
| 191 // Gets the GeolocationServiceContext associated with this delegate. | 192 // Gets the GeolocationServiceContext associated with this delegate. |
| 192 virtual device::GeolocationServiceContext* GetGeolocationServiceContext(); | 193 virtual device::GeolocationServiceContext* GetGeolocationServiceContext(); |
| 193 | 194 |
| 194 // Gets the WakeLockService that serves wake lock requests from the renderer. | 195 // Gets the WakeLockService that serves wake lock requests from the renderer. |
| 195 virtual device::mojom::WakeLockService* GetRendererWakeLock(); | 196 virtual device::mojom::WakeLockService* GetRendererWakeLock(); |
| 196 | 197 |
| 198 // Gets an NFC implementation within the context of this delegate. |
| 199 virtual void GetNFC(device::nfc::mojom::NFCRequest request); |
| 200 |
| 197 // Notification that the frame wants to go into fullscreen mode. | 201 // Notification that the frame wants to go into fullscreen mode. |
| 198 // |origin| represents the origin of the frame that requests fullscreen. | 202 // |origin| represents the origin of the frame that requests fullscreen. |
| 199 virtual void EnterFullscreenMode(const GURL& origin) {} | 203 virtual void EnterFullscreenMode(const GURL& origin) {} |
| 200 | 204 |
| 201 // Notification that the frame wants to go out of fullscreen mode. | 205 // Notification that the frame wants to go out of fullscreen mode. |
| 202 // |will_cause_resize| indicates whether the fullscreen change causes a | 206 // |will_cause_resize| indicates whether the fullscreen change causes a |
| 203 // view resize. e.g. This will be false when going from tab fullscreen to | 207 // view resize. e.g. This will be false when going from tab fullscreen to |
| 204 // browser fullscreen. | 208 // browser fullscreen. |
| 205 virtual void ExitFullscreenMode(bool will_cause_resize) {} | 209 virtual void ExitFullscreenMode(bool will_cause_resize) {} |
| 206 | 210 |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 GetJavaRenderFrameHostDelegate(); | 305 GetJavaRenderFrameHostDelegate(); |
| 302 #endif | 306 #endif |
| 303 | 307 |
| 304 protected: | 308 protected: |
| 305 virtual ~RenderFrameHostDelegate() {} | 309 virtual ~RenderFrameHostDelegate() {} |
| 306 }; | 310 }; |
| 307 | 311 |
| 308 } // namespace content | 312 } // namespace content |
| 309 | 313 |
| 310 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ | 314 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ |
| OLD | NEW |