| 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 13 matching lines...) Expand all Loading... |
| 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/renderer_host/render_view_host_delegate.h" | 31 #include "content/browser/renderer_host/render_view_host_delegate.h" |
| 32 #include "content/browser/renderer_host/render_view_host_impl.h" | 32 #include "content/browser/renderer_host/render_view_host_impl.h" |
| 33 #include "content/browser/renderer_host/render_widget_host_delegate.h" | 33 #include "content/browser/renderer_host/render_widget_host_delegate.h" |
| 34 #include "content/browser/wake_lock/wake_lock_context_host.h" |
| 34 #include "content/common/accessibility_mode.h" | 35 #include "content/common/accessibility_mode.h" |
| 35 #include "content/common/content_export.h" | 36 #include "content/common/content_export.h" |
| 36 #include "content/public/browser/color_chooser.h" | 37 #include "content/public/browser/color_chooser.h" |
| 37 #include "content/public/browser/notification_observer.h" | 38 #include "content/public/browser/notification_observer.h" |
| 38 #include "content/public/browser/notification_registrar.h" | 39 #include "content/public/browser/notification_registrar.h" |
| 39 #include "content/public/browser/web_contents.h" | 40 #include "content/public/browser/web_contents.h" |
| 40 #include "content/public/browser/web_contents_observer.h" | 41 #include "content/public/browser/web_contents_observer.h" |
| 41 #include "content/public/common/page_importance_signals.h" | 42 #include "content/public/common/page_importance_signals.h" |
| 42 #include "content/public/common/renderer_preferences.h" | 43 #include "content/public/common/renderer_preferences.h" |
| 43 #include "content/public/common/resource_type.h" | 44 #include "content/public/common/resource_type.h" |
| 44 #include "content/public/common/three_d_api_types.h" | 45 #include "content/public/common/three_d_api_types.h" |
| 46 #include "device/wake_lock/public/interfaces/wake_lock_context.mojom.h" |
| 45 #include "net/base/load_states.h" | 47 #include "net/base/load_states.h" |
| 46 #include "net/http/http_response_headers.h" | 48 #include "net/http/http_response_headers.h" |
| 47 #include "ppapi/features/features.h" | 49 #include "ppapi/features/features.h" |
| 48 #include "third_party/WebKit/public/platform/WebDragOperation.h" | 50 #include "third_party/WebKit/public/platform/WebDragOperation.h" |
| 49 #include "ui/base/page_transition_types.h" | 51 #include "ui/base/page_transition_types.h" |
| 50 #include "ui/gfx/geometry/rect_f.h" | 52 #include "ui/gfx/geometry/rect_f.h" |
| 51 #include "ui/gfx/geometry/size.h" | 53 #include "ui/gfx/geometry/size.h" |
| 52 | 54 |
| 53 struct ViewHostMsg_DateTimeDialogValue_Params; | 55 struct ViewHostMsg_DateTimeDialogValue_Params; |
| 54 | 56 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 70 class PluginContentOriginWhitelist; | 72 class PluginContentOriginWhitelist; |
| 71 class RenderViewHost; | 73 class RenderViewHost; |
| 72 class RenderViewHostDelegateView; | 74 class RenderViewHostDelegateView; |
| 73 class RenderWidgetHostImpl; | 75 class RenderWidgetHostImpl; |
| 74 class RenderWidgetHostInputEventRouter; | 76 class RenderWidgetHostInputEventRouter; |
| 75 class SavePackage; | 77 class SavePackage; |
| 76 class ScreenOrientationProvider; | 78 class ScreenOrientationProvider; |
| 77 class SiteInstance; | 79 class SiteInstance; |
| 78 class TestWebContents; | 80 class TestWebContents; |
| 79 class TextInputManager; | 81 class TextInputManager; |
| 80 class WakeLockServiceContext; | |
| 81 class WebContentsAudioMuter; | 82 class WebContentsAudioMuter; |
| 82 class WebContentsBindingSet; | 83 class WebContentsBindingSet; |
| 83 class WebContentsDelegate; | 84 class WebContentsDelegate; |
| 84 class WebContentsImpl; | 85 class WebContentsImpl; |
| 85 class WebContentsView; | 86 class WebContentsView; |
| 86 class WebContentsViewDelegate; | 87 class WebContentsViewDelegate; |
| 87 struct AXEventNotificationDetails; | 88 struct AXEventNotificationDetails; |
| 88 struct ColorSuggestion; | 89 struct ColorSuggestion; |
| 89 struct FaviconURL; | 90 struct FaviconURL; |
| 90 struct LoadNotificationDetails; | 91 struct LoadNotificationDetails; |
| (...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 476 bool IsNeverVisible() override; | 477 bool IsNeverVisible() override; |
| 477 AccessibilityMode GetAccessibilityMode() const override; | 478 AccessibilityMode GetAccessibilityMode() const override; |
| 478 void AccessibilityEventReceived( | 479 void AccessibilityEventReceived( |
| 479 const std::vector<AXEventNotificationDetails>& details) override; | 480 const std::vector<AXEventNotificationDetails>& details) override; |
| 480 void AccessibilityLocationChangesReceived( | 481 void AccessibilityLocationChangesReceived( |
| 481 const std::vector<AXLocationChangeNotificationDetails>& details) override; | 482 const std::vector<AXLocationChangeNotificationDetails>& details) override; |
| 482 RenderFrameHost* GetGuestByInstanceID( | 483 RenderFrameHost* GetGuestByInstanceID( |
| 483 RenderFrameHost* render_frame_host, | 484 RenderFrameHost* render_frame_host, |
| 484 int browser_plugin_instance_id) override; | 485 int browser_plugin_instance_id) override; |
| 485 device::GeolocationServiceContext* GetGeolocationServiceContext() override; | 486 device::GeolocationServiceContext* GetGeolocationServiceContext() override; |
| 486 device::WakeLockServiceContext* GetWakeLockServiceContext() override; | 487 device::mojom::WakeLockContext* GetWakeLockServiceContext() override; |
| 487 void EnterFullscreenMode(const GURL& origin) override; | 488 void EnterFullscreenMode(const GURL& origin) override; |
| 488 void ExitFullscreenMode(bool will_cause_resize) override; | 489 void ExitFullscreenMode(bool will_cause_resize) override; |
| 489 bool ShouldRouteMessageEvent( | 490 bool ShouldRouteMessageEvent( |
| 490 RenderFrameHost* target_rfh, | 491 RenderFrameHost* target_rfh, |
| 491 SiteInstance* source_site_instance) const override; | 492 SiteInstance* source_site_instance) const override; |
| 492 void EnsureOpenerProxiesExist(RenderFrameHost* source_rfh) override; | 493 void EnsureOpenerProxiesExist(RenderFrameHost* source_rfh) override; |
| 493 std::unique_ptr<WebUIImpl> CreateWebUIForRenderFrameHost( | 494 std::unique_ptr<WebUIImpl> CreateWebUIForRenderFrameHost( |
| 494 const GURL& url) override; | 495 const GURL& url) override; |
| 495 void SetFocusedFrame(FrameTreeNode* node, SiteInstance* source) override; | 496 void SetFocusedFrame(FrameTreeNode* node, SiteInstance* source) override; |
| 496 void OnFocusedElementChangedInFrame( | 497 void OnFocusedElementChangedInFrame( |
| (...skipping 962 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1459 | 1460 |
| 1460 // Whether overscroll should be unconditionally disabled. | 1461 // Whether overscroll should be unconditionally disabled. |
| 1461 bool force_disable_overscroll_content_; | 1462 bool force_disable_overscroll_content_; |
| 1462 | 1463 |
| 1463 // Whether the last JavaScript dialog shown was suppressed. Used for testing. | 1464 // Whether the last JavaScript dialog shown was suppressed. Used for testing. |
| 1464 bool last_dialog_suppressed_; | 1465 bool last_dialog_suppressed_; |
| 1465 | 1466 |
| 1466 std::unique_ptr<device::GeolocationServiceContext> | 1467 std::unique_ptr<device::GeolocationServiceContext> |
| 1467 geolocation_service_context_; | 1468 geolocation_service_context_; |
| 1468 | 1469 |
| 1469 std::unique_ptr<device::WakeLockServiceContext> wake_lock_service_context_; | 1470 std::unique_ptr<WakeLockContextHost> wake_lock_context_host_; |
| 1470 | 1471 |
| 1471 std::unique_ptr<ScreenOrientationProvider> screen_orientation_provider_; | 1472 std::unique_ptr<ScreenOrientationProvider> screen_orientation_provider_; |
| 1472 | 1473 |
| 1473 std::unique_ptr<ManifestManagerHost> manifest_manager_host_; | 1474 std::unique_ptr<ManifestManagerHost> manifest_manager_host_; |
| 1474 | 1475 |
| 1475 // The accessibility mode for all frames. This is queried when each frame | 1476 // The accessibility mode for all frames. This is queried when each frame |
| 1476 // is created, and broadcast to all frames when it changes. | 1477 // is created, and broadcast to all frames when it changes. |
| 1477 AccessibilityMode accessibility_mode_; | 1478 AccessibilityMode accessibility_mode_; |
| 1478 | 1479 |
| 1479 // Monitors power levels for audio streams associated with this WebContents. | 1480 // Monitors power levels for audio streams associated with this WebContents. |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1547 // Adds/removes a callback called on creation of each new WebContents. | 1548 // Adds/removes a callback called on creation of each new WebContents. |
| 1548 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); | 1549 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1549 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); | 1550 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1550 | 1551 |
| 1551 DISALLOW_COPY_AND_ASSIGN(FriendZone); | 1552 DISALLOW_COPY_AND_ASSIGN(FriendZone); |
| 1552 }; | 1553 }; |
| 1553 | 1554 |
| 1554 } // namespace content | 1555 } // namespace content |
| 1555 | 1556 |
| 1556 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1557 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| OLD | NEW |