| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <functional> | 10 #include <functional> |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 #include "base/values.h" | 21 #include "base/values.h" |
| 22 #include "build/build_config.h" | 22 #include "build/build_config.h" |
| 23 #include "content/browser/frame_host/frame_tree.h" | 23 #include "content/browser/frame_host/frame_tree.h" |
| 24 #include "content/browser/frame_host/frame_tree_node.h" | 24 #include "content/browser/frame_host/frame_tree_node.h" |
| 25 #include "content/browser/frame_host/navigation_controller_delegate.h" | 25 #include "content/browser/frame_host/navigation_controller_delegate.h" |
| 26 #include "content/browser/frame_host/navigation_controller_impl.h" | 26 #include "content/browser/frame_host/navigation_controller_impl.h" |
| 27 #include "content/browser/frame_host/navigator_delegate.h" | 27 #include "content/browser/frame_host/navigator_delegate.h" |
| 28 #include "content/browser/frame_host/render_frame_host_delegate.h" | 28 #include "content/browser/frame_host/render_frame_host_delegate.h" |
| 29 #include "content/browser/frame_host/render_frame_host_manager.h" | 29 #include "content/browser/frame_host/render_frame_host_manager.h" |
| 30 #include "content/browser/media/audio_stream_monitor.h" | 30 #include "content/browser/media/audio_stream_monitor.h" |
| 31 #include "content/browser/nfc/nfc_host.h" |
| 31 #include "content/browser/renderer_host/render_view_host_delegate.h" | 32 #include "content/browser/renderer_host/render_view_host_delegate.h" |
| 32 #include "content/browser/renderer_host/render_view_host_impl.h" | 33 #include "content/browser/renderer_host/render_view_host_impl.h" |
| 33 #include "content/browser/renderer_host/render_widget_host_delegate.h" | 34 #include "content/browser/renderer_host/render_widget_host_delegate.h" |
| 34 #include "content/browser/wake_lock/wake_lock_context_host.h" | 35 #include "content/browser/wake_lock/wake_lock_context_host.h" |
| 35 #include "content/common/accessibility_mode.h" | 36 #include "content/common/accessibility_mode.h" |
| 36 #include "content/common/content_export.h" | 37 #include "content/common/content_export.h" |
| 37 #include "content/public/browser/color_chooser.h" | 38 #include "content/public/browser/color_chooser.h" |
| 38 #include "content/public/browser/notification_observer.h" | 39 #include "content/public/browser/notification_observer.h" |
| 39 #include "content/public/browser/notification_registrar.h" | 40 #include "content/public/browser/notification_registrar.h" |
| 40 #include "content/public/browser/web_contents.h" | 41 #include "content/public/browser/web_contents.h" |
| (...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 501 void AccessibilityEventReceived( | 502 void AccessibilityEventReceived( |
| 502 const std::vector<AXEventNotificationDetails>& details) override; | 503 const std::vector<AXEventNotificationDetails>& details) override; |
| 503 void AccessibilityLocationChangesReceived( | 504 void AccessibilityLocationChangesReceived( |
| 504 const std::vector<AXLocationChangeNotificationDetails>& details) override; | 505 const std::vector<AXLocationChangeNotificationDetails>& details) override; |
| 505 RenderFrameHost* GetGuestByInstanceID( | 506 RenderFrameHost* GetGuestByInstanceID( |
| 506 RenderFrameHost* render_frame_host, | 507 RenderFrameHost* render_frame_host, |
| 507 int browser_plugin_instance_id) override; | 508 int browser_plugin_instance_id) override; |
| 508 device::GeolocationServiceContext* GetGeolocationServiceContext() override; | 509 device::GeolocationServiceContext* GetGeolocationServiceContext() override; |
| 509 device::mojom::WakeLockContext* GetWakeLockContext() override; | 510 device::mojom::WakeLockContext* GetWakeLockContext() override; |
| 510 device::mojom::WakeLockService* GetRendererWakeLock() override; | 511 device::mojom::WakeLockService* GetRendererWakeLock() override; |
| 512 void GetNFC(device::nfc::mojom::NFCRequest request) override; |
| 511 void EnterFullscreenMode(const GURL& origin) override; | 513 void EnterFullscreenMode(const GURL& origin) override; |
| 512 void ExitFullscreenMode(bool will_cause_resize) override; | 514 void ExitFullscreenMode(bool will_cause_resize) override; |
| 513 bool ShouldRouteMessageEvent( | 515 bool ShouldRouteMessageEvent( |
| 514 RenderFrameHost* target_rfh, | 516 RenderFrameHost* target_rfh, |
| 515 SiteInstance* source_site_instance) const override; | 517 SiteInstance* source_site_instance) const override; |
| 516 void EnsureOpenerProxiesExist(RenderFrameHost* source_rfh) override; | 518 void EnsureOpenerProxiesExist(RenderFrameHost* source_rfh) override; |
| 517 std::unique_ptr<WebUIImpl> CreateWebUIForRenderFrameHost( | 519 std::unique_ptr<WebUIImpl> CreateWebUIForRenderFrameHost( |
| 518 const GURL& url) override; | 520 const GURL& url) override; |
| 519 void SetFocusedFrame(FrameTreeNode* node, SiteInstance* source) override; | 521 void SetFocusedFrame(FrameTreeNode* node, SiteInstance* source) override; |
| 520 void OnFocusedElementChangedInFrame( | 522 void OnFocusedElementChangedInFrame( |
| (...skipping 986 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1507 // Whether the last JavaScript dialog shown was suppressed. Used for testing. | 1509 // Whether the last JavaScript dialog shown was suppressed. Used for testing. |
| 1508 bool last_dialog_suppressed_; | 1510 bool last_dialog_suppressed_; |
| 1509 | 1511 |
| 1510 std::unique_ptr<device::GeolocationServiceContext> | 1512 std::unique_ptr<device::GeolocationServiceContext> |
| 1511 geolocation_service_context_; | 1513 geolocation_service_context_; |
| 1512 | 1514 |
| 1513 std::unique_ptr<WakeLockContextHost> wake_lock_context_host_; | 1515 std::unique_ptr<WakeLockContextHost> wake_lock_context_host_; |
| 1514 | 1516 |
| 1515 device::mojom::WakeLockServicePtr renderer_wake_lock_; | 1517 device::mojom::WakeLockServicePtr renderer_wake_lock_; |
| 1516 | 1518 |
| 1519 std::unique_ptr<NFCHost> nfc_host_; |
| 1520 |
| 1517 std::unique_ptr<ScreenOrientationProvider> screen_orientation_provider_; | 1521 std::unique_ptr<ScreenOrientationProvider> screen_orientation_provider_; |
| 1518 | 1522 |
| 1519 std::unique_ptr<ManifestManagerHost> manifest_manager_host_; | 1523 std::unique_ptr<ManifestManagerHost> manifest_manager_host_; |
| 1520 | 1524 |
| 1521 // The accessibility mode for all frames. This is queried when each frame | 1525 // The accessibility mode for all frames. This is queried when each frame |
| 1522 // is created, and broadcast to all frames when it changes. | 1526 // is created, and broadcast to all frames when it changes. |
| 1523 AccessibilityMode accessibility_mode_; | 1527 AccessibilityMode accessibility_mode_; |
| 1524 | 1528 |
| 1525 // Monitors power levels for audio streams associated with this WebContents. | 1529 // Monitors power levels for audio streams associated with this WebContents. |
| 1526 AudioStreamMonitor audio_stream_monitor_; | 1530 AudioStreamMonitor audio_stream_monitor_; |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1593 // Adds/removes a callback called on creation of each new WebContents. | 1597 // Adds/removes a callback called on creation of each new WebContents. |
| 1594 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); | 1598 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1595 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); | 1599 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1596 | 1600 |
| 1597 DISALLOW_COPY_AND_ASSIGN(FriendWrapper); | 1601 DISALLOW_COPY_AND_ASSIGN(FriendWrapper); |
| 1598 }; | 1602 }; |
| 1599 | 1603 |
| 1600 } // namespace content | 1604 } // namespace content |
| 1601 | 1605 |
| 1602 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1606 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| OLD | NEW |