| 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_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ | 6 #define CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
| 11 #include "build/build_config.h" | 11 #include "build/build_config.h" |
| 12 #include "content/common/content_export.h" | 12 #include "content/common/content_export.h" |
| 13 #include "content/public/common/console_message_level.h" | 13 #include "content/public/common/console_message_level.h" |
| 14 #include "content/public/common/file_chooser_params.h" | 14 #include "content/public/common/file_chooser_params.h" |
| 15 #include "ipc/ipc_listener.h" | 15 #include "ipc/ipc_listener.h" |
| 16 #include "ipc/ipc_sender.h" | 16 #include "ipc/ipc_sender.h" |
| 17 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h" | 17 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h" |
| 18 #include "ui/gfx/geometry/rect.h" | 18 #include "ui/gfx/geometry/rect.h" |
| 19 #include "ui/gfx/native_widget_types.h" | 19 #include "ui/gfx/native_widget_types.h" |
| 20 #include "url/gurl.h" | 20 #include "url/gurl.h" |
| 21 #include "url/origin.h" | 21 #include "url/origin.h" |
| 22 | 22 |
| 23 namespace blink { |
| 24 enum class WebFeaturePolicyFeature; |
| 25 } |
| 26 |
| 23 namespace base { | 27 namespace base { |
| 24 class Value; | 28 class Value; |
| 25 } | 29 } |
| 26 | 30 |
| 27 namespace service_manager { | 31 namespace service_manager { |
| 28 class InterfaceRegistry; | 32 class InterfaceRegistry; |
| 29 class InterfaceProvider; | 33 class InterfaceProvider; |
| 30 } | 34 } |
| 31 | 35 |
| 32 namespace ui { | 36 namespace ui { |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 // process. | 244 // process. |
| 241 virtual service_manager::InterfaceProvider* GetJavaInterfaces() = 0; | 245 virtual service_manager::InterfaceProvider* GetJavaInterfaces() = 0; |
| 242 #endif // OS_ANDROID | 246 #endif // OS_ANDROID |
| 243 | 247 |
| 244 // Stops and disables the hang monitor for beforeunload. This avoids flakiness | 248 // Stops and disables the hang monitor for beforeunload. This avoids flakiness |
| 245 // in tests that need to observe beforeunload dialogs, which could fail if the | 249 // in tests that need to observe beforeunload dialogs, which could fail if the |
| 246 // timeout skips the dialog. | 250 // timeout skips the dialog. |
| 247 virtual void DisableBeforeUnloadHangMonitorForTesting() = 0; | 251 virtual void DisableBeforeUnloadHangMonitorForTesting() = 0; |
| 248 virtual bool IsBeforeUnloadHangMonitorDisabledForTesting() = 0; | 252 virtual bool IsBeforeUnloadHangMonitorDisabledForTesting() = 0; |
| 249 | 253 |
| 254 virtual bool IsFeatureEnabled(blink::WebFeaturePolicyFeature feature) = 0; |
| 255 |
| 250 private: | 256 private: |
| 251 // This interface should only be implemented inside content. | 257 // This interface should only be implemented inside content. |
| 252 friend class RenderFrameHostImpl; | 258 friend class RenderFrameHostImpl; |
| 253 RenderFrameHost() {} | 259 RenderFrameHost() {} |
| 254 }; | 260 }; |
| 255 | 261 |
| 256 } // namespace content | 262 } // namespace content |
| 257 | 263 |
| 258 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ | 264 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ |
| OLD | NEW |