| 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 "mojo/public/cpp/bindings/scoped_interface_endpoint_handle.h" | 22 #include "mojo/public/cpp/bindings/scoped_interface_endpoint_handle.h" |
| 22 #include "net/http/http_response_headers.h" | 23 #include "net/http/http_response_headers.h" |
| 23 #include "ui/base/window_open_disposition.h" | 24 #include "ui/base/window_open_disposition.h" |
| 24 | 25 |
| 25 #if defined(OS_WIN) | 26 #if defined(OS_WIN) |
| 26 #include "ui/gfx/native_widget_types.h" | 27 #include "ui/gfx/native_widget_types.h" |
| 27 #endif | 28 #endif |
| 28 | 29 |
| 29 #if defined(OS_ANDROID) | 30 #if defined(OS_ANDROID) |
| 30 #include "base/android/scoped_java_ref.h" | 31 #include "base/android/scoped_java_ref.h" |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 virtual RenderFrameHost* GetGuestByInstanceID( | 191 virtual RenderFrameHost* GetGuestByInstanceID( |
| 191 RenderFrameHost* render_frame_host, | 192 RenderFrameHost* render_frame_host, |
| 192 int browser_plugin_instance_id); | 193 int browser_plugin_instance_id); |
| 193 | 194 |
| 194 // Gets the GeolocationServiceContext associated with this delegate. | 195 // Gets the GeolocationServiceContext associated with this delegate. |
| 195 virtual device::GeolocationServiceContext* GetGeolocationServiceContext(); | 196 virtual device::GeolocationServiceContext* GetGeolocationServiceContext(); |
| 196 | 197 |
| 197 // Gets the WakeLockServiceContext associated with this delegate. | 198 // Gets the WakeLockServiceContext associated with this delegate. |
| 198 virtual device::mojom::WakeLockContext* GetWakeLockServiceContext(); | 199 virtual device::mojom::WakeLockContext* GetWakeLockServiceContext(); |
| 199 | 200 |
| 201 // Gets an NFC implementation within the context of this delegate. |
| 202 virtual void GetNFC(device::nfc::mojom::NFCRequest request); |
| 203 |
| 200 // Notification that the frame wants to go into fullscreen mode. | 204 // Notification that the frame wants to go into fullscreen mode. |
| 201 // |origin| represents the origin of the frame that requests fullscreen. | 205 // |origin| represents the origin of the frame that requests fullscreen. |
| 202 virtual void EnterFullscreenMode(const GURL& origin) {} | 206 virtual void EnterFullscreenMode(const GURL& origin) {} |
| 203 | 207 |
| 204 // Notification that the frame wants to go out of fullscreen mode. | 208 // Notification that the frame wants to go out of fullscreen mode. |
| 205 // |will_cause_resize| indicates whether the fullscreen change causes a | 209 // |will_cause_resize| indicates whether the fullscreen change causes a |
| 206 // view resize. e.g. This will be false when going from tab fullscreen to | 210 // view resize. e.g. This will be false when going from tab fullscreen to |
| 207 // browser fullscreen. | 211 // browser fullscreen. |
| 208 virtual void ExitFullscreenMode(bool will_cause_resize) {} | 212 virtual void ExitFullscreenMode(bool will_cause_resize) {} |
| 209 | 213 |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 GetJavaRenderFrameHostDelegate(); | 308 GetJavaRenderFrameHostDelegate(); |
| 305 #endif | 309 #endif |
| 306 | 310 |
| 307 protected: | 311 protected: |
| 308 virtual ~RenderFrameHostDelegate() {} | 312 virtual ~RenderFrameHostDelegate() {} |
| 309 }; | 313 }; |
| 310 | 314 |
| 311 } // namespace content | 315 } // namespace content |
| 312 | 316 |
| 313 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ | 317 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ |
| OLD | NEW |