| 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_binding_set.h" | 41 #include "content/public/browser/web_contents_binding_set.h" |
| 41 #include "content/public/browser/web_contents_observer.h" | 42 #include "content/public/browser/web_contents_observer.h" |
| 42 #include "content/public/common/page_importance_signals.h" | 43 #include "content/public/common/page_importance_signals.h" |
| 43 #include "content/public/common/renderer_preferences.h" | 44 #include "content/public/common/renderer_preferences.h" |
| 44 #include "content/public/common/resource_type.h" | 45 #include "content/public/common/resource_type.h" |
| 45 #include "content/public/common/three_d_api_types.h" | 46 #include "content/public/common/three_d_api_types.h" |
| 47 #include "device/wake_lock/public/interfaces/wake_lock_context.mojom.h" |
| 46 #include "net/base/load_states.h" | 48 #include "net/base/load_states.h" |
| 47 #include "net/http/http_response_headers.h" | 49 #include "net/http/http_response_headers.h" |
| 48 #include "ppapi/features/features.h" | 50 #include "ppapi/features/features.h" |
| 49 #include "third_party/WebKit/public/platform/WebDragOperation.h" | 51 #include "third_party/WebKit/public/platform/WebDragOperation.h" |
| 50 #include "ui/base/page_transition_types.h" | 52 #include "ui/base/page_transition_types.h" |
| 51 #include "ui/gfx/geometry/rect_f.h" | 53 #include "ui/gfx/geometry/rect_f.h" |
| 52 #include "ui/gfx/geometry/size.h" | 54 #include "ui/gfx/geometry/size.h" |
| 53 | 55 |
| 54 struct ViewHostMsg_DateTimeDialogValue_Params; | 56 struct ViewHostMsg_DateTimeDialogValue_Params; |
| 55 | 57 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 71 class PluginContentOriginWhitelist; | 73 class PluginContentOriginWhitelist; |
| 72 class RenderViewHost; | 74 class RenderViewHost; |
| 73 class RenderViewHostDelegateView; | 75 class RenderViewHostDelegateView; |
| 74 class RenderWidgetHostImpl; | 76 class RenderWidgetHostImpl; |
| 75 class RenderWidgetHostInputEventRouter; | 77 class RenderWidgetHostInputEventRouter; |
| 76 class SavePackage; | 78 class SavePackage; |
| 77 class ScreenOrientationProvider; | 79 class ScreenOrientationProvider; |
| 78 class SiteInstance; | 80 class SiteInstance; |
| 79 class TestWebContents; | 81 class TestWebContents; |
| 80 class TextInputManager; | 82 class TextInputManager; |
| 81 class WakeLockServiceContext; | |
| 82 class WebContentsAudioMuter; | 83 class WebContentsAudioMuter; |
| 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; |
| 91 struct MHTMLGenerationParams; | 92 struct MHTMLGenerationParams; |
| (...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 481 bool IsNeverVisible() override; | 482 bool IsNeverVisible() override; |
| 482 AccessibilityMode GetAccessibilityMode() const override; | 483 AccessibilityMode GetAccessibilityMode() const override; |
| 483 void AccessibilityEventReceived( | 484 void AccessibilityEventReceived( |
| 484 const std::vector<AXEventNotificationDetails>& details) override; | 485 const std::vector<AXEventNotificationDetails>& details) override; |
| 485 void AccessibilityLocationChangesReceived( | 486 void AccessibilityLocationChangesReceived( |
| 486 const std::vector<AXLocationChangeNotificationDetails>& details) override; | 487 const std::vector<AXLocationChangeNotificationDetails>& details) override; |
| 487 RenderFrameHost* GetGuestByInstanceID( | 488 RenderFrameHost* GetGuestByInstanceID( |
| 488 RenderFrameHost* render_frame_host, | 489 RenderFrameHost* render_frame_host, |
| 489 int browser_plugin_instance_id) override; | 490 int browser_plugin_instance_id) override; |
| 490 device::GeolocationServiceContext* GetGeolocationServiceContext() override; | 491 device::GeolocationServiceContext* GetGeolocationServiceContext() override; |
| 491 device::WakeLockServiceContext* GetWakeLockServiceContext() override; | 492 device::mojom::WakeLockContext* GetWakeLockServiceContext() override; |
| 492 void EnterFullscreenMode(const GURL& origin) override; | 493 void EnterFullscreenMode(const GURL& origin) override; |
| 493 void ExitFullscreenMode(bool will_cause_resize) override; | 494 void ExitFullscreenMode(bool will_cause_resize) override; |
| 494 bool ShouldRouteMessageEvent( | 495 bool ShouldRouteMessageEvent( |
| 495 RenderFrameHost* target_rfh, | 496 RenderFrameHost* target_rfh, |
| 496 SiteInstance* source_site_instance) const override; | 497 SiteInstance* source_site_instance) const override; |
| 497 void EnsureOpenerProxiesExist(RenderFrameHost* source_rfh) override; | 498 void EnsureOpenerProxiesExist(RenderFrameHost* source_rfh) override; |
| 498 std::unique_ptr<WebUIImpl> CreateWebUIForRenderFrameHost( | 499 std::unique_ptr<WebUIImpl> CreateWebUIForRenderFrameHost( |
| 499 const GURL& url) override; | 500 const GURL& url) override; |
| 500 void SetFocusedFrame(FrameTreeNode* node, SiteInstance* source) override; | 501 void SetFocusedFrame(FrameTreeNode* node, SiteInstance* source) override; |
| 501 void OnFocusedElementChangedInFrame( | 502 void OnFocusedElementChangedInFrame( |
| (...skipping 964 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1466 | 1467 |
| 1467 // Whether overscroll should be unconditionally disabled. | 1468 // Whether overscroll should be unconditionally disabled. |
| 1468 bool force_disable_overscroll_content_; | 1469 bool force_disable_overscroll_content_; |
| 1469 | 1470 |
| 1470 // Whether the last JavaScript dialog shown was suppressed. Used for testing. | 1471 // Whether the last JavaScript dialog shown was suppressed. Used for testing. |
| 1471 bool last_dialog_suppressed_; | 1472 bool last_dialog_suppressed_; |
| 1472 | 1473 |
| 1473 std::unique_ptr<device::GeolocationServiceContext> | 1474 std::unique_ptr<device::GeolocationServiceContext> |
| 1474 geolocation_service_context_; | 1475 geolocation_service_context_; |
| 1475 | 1476 |
| 1476 std::unique_ptr<device::WakeLockServiceContext> wake_lock_service_context_; | 1477 std::unique_ptr<WakeLockContextHost> wake_lock_context_host_; |
| 1477 | 1478 |
| 1478 std::unique_ptr<ScreenOrientationProvider> screen_orientation_provider_; | 1479 std::unique_ptr<ScreenOrientationProvider> screen_orientation_provider_; |
| 1479 | 1480 |
| 1480 std::unique_ptr<ManifestManagerHost> manifest_manager_host_; | 1481 std::unique_ptr<ManifestManagerHost> manifest_manager_host_; |
| 1481 | 1482 |
| 1482 // The accessibility mode for all frames. This is queried when each frame | 1483 // The accessibility mode for all frames. This is queried when each frame |
| 1483 // is created, and broadcast to all frames when it changes. | 1484 // is created, and broadcast to all frames when it changes. |
| 1484 AccessibilityMode accessibility_mode_; | 1485 AccessibilityMode accessibility_mode_; |
| 1485 | 1486 |
| 1486 // Monitors power levels for audio streams associated with this WebContents. | 1487 // Monitors power levels for audio streams associated with this WebContents. |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1554 // Adds/removes a callback called on creation of each new WebContents. | 1555 // Adds/removes a callback called on creation of each new WebContents. |
| 1555 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); | 1556 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1556 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); | 1557 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1557 | 1558 |
| 1558 DISALLOW_COPY_AND_ASSIGN(FriendWrapper); | 1559 DISALLOW_COPY_AND_ASSIGN(FriendWrapper); |
| 1559 }; | 1560 }; |
| 1560 | 1561 |
| 1561 } // namespace content | 1562 } // namespace content |
| 1562 | 1563 |
| 1563 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1564 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| OLD | NEW |