| 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 18 matching lines...) Expand all Loading... |
| 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/common/accessibility_mode_enums.h" | 34 #include "content/common/accessibility_mode_enums.h" |
| 35 #include "content/common/content_export.h" | 35 #include "content/common/content_export.h" |
| 36 #include "content/public/browser/color_chooser.h" | 36 #include "content/public/browser/color_chooser.h" |
| 37 #include "content/public/browser/notification_observer.h" | 37 #include "content/public/browser/notification_observer.h" |
| 38 #include "content/public/browser/notification_registrar.h" | 38 #include "content/public/browser/notification_registrar.h" |
| 39 #include "content/public/browser/screen_orientation_provider.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" |
| 45 #include "net/base/load_states.h" | 46 #include "net/base/load_states.h" |
| 46 #include "net/http/http_response_headers.h" | 47 #include "net/http/http_response_headers.h" |
| 47 #include "third_party/WebKit/public/platform/WebDragOperation.h" | 48 #include "third_party/WebKit/public/platform/WebDragOperation.h" |
| 48 #include "ui/base/page_transition_types.h" | 49 #include "ui/base/page_transition_types.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 66 class LoaderIOThreadNotifier; | 67 class LoaderIOThreadNotifier; |
| 67 class ManifestManagerHost; | 68 class ManifestManagerHost; |
| 68 class MediaWebContentsObserver; | 69 class MediaWebContentsObserver; |
| 69 class PluginContentOriginWhitelist; | 70 class PluginContentOriginWhitelist; |
| 70 class PowerSaveBlocker; | 71 class PowerSaveBlocker; |
| 71 class RenderViewHost; | 72 class RenderViewHost; |
| 72 class RenderViewHostDelegateView; | 73 class RenderViewHostDelegateView; |
| 73 class RenderWidgetHostImpl; | 74 class RenderWidgetHostImpl; |
| 74 class RenderWidgetHostInputEventRouter; | 75 class RenderWidgetHostInputEventRouter; |
| 75 class SavePackage; | 76 class SavePackage; |
| 76 class ScreenOrientationDispatcherHost; | |
| 77 class SiteInstance; | 77 class SiteInstance; |
| 78 class TestWebContents; | 78 class TestWebContents; |
| 79 class TextInputManager; | 79 class TextInputManager; |
| 80 class WakeLockServiceContext; | 80 class WakeLockServiceContext; |
| 81 class WebContentsAudioMuter; | 81 class WebContentsAudioMuter; |
| 82 class WebContentsBindingSet; | 82 class WebContentsBindingSet; |
| 83 class WebContentsDelegate; | 83 class WebContentsDelegate; |
| 84 class WebContentsImpl; | 84 class WebContentsImpl; |
| 85 class WebContentsView; | 85 class WebContentsView; |
| 86 class WebContentsViewDelegate; | 86 class WebContentsViewDelegate; |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 | 202 |
| 203 // A redirect was received while requesting a resource. | 203 // A redirect was received while requesting a resource. |
| 204 void DidGetRedirectForResourceRequest( | 204 void DidGetRedirectForResourceRequest( |
| 205 const ResourceRedirectDetails& details); | 205 const ResourceRedirectDetails& details); |
| 206 | 206 |
| 207 // Notify observers that the web contents has been focused. | 207 // Notify observers that the web contents has been focused. |
| 208 void NotifyWebContentsFocused(); | 208 void NotifyWebContentsFocused(); |
| 209 | 209 |
| 210 WebContentsView* GetView() const; | 210 WebContentsView* GetView() const; |
| 211 | 211 |
| 212 ScreenOrientationDispatcherHost* screen_orientation_dispatcher_host() { | |
| 213 return screen_orientation_dispatcher_host_.get(); | |
| 214 } | |
| 215 | |
| 216 bool should_normally_be_visible() { return should_normally_be_visible_; } | 212 bool should_normally_be_visible() { return should_normally_be_visible_; } |
| 217 | 213 |
| 218 // Indicate if the window has been occluded, and pass this to the views, only | 214 // Indicate if the window has been occluded, and pass this to the views, only |
| 219 // if there is no active capture going on (otherwise it is dropped on the | 215 // if there is no active capture going on (otherwise it is dropped on the |
| 220 // floor). | 216 // floor). |
| 221 void WasOccluded(); | 217 void WasOccluded(); |
| 222 void WasUnOccluded(); | 218 void WasUnOccluded(); |
| 223 | 219 |
| 224 // Broadcasts the mode change to all frames. | 220 // Broadcasts the mode change to all frames. |
| 225 void SetAccessibilityMode(AccessibilityMode mode); | 221 void SetAccessibilityMode(AccessibilityMode mode); |
| (...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 484 AccessibilityMode GetAccessibilityMode() const override; | 480 AccessibilityMode GetAccessibilityMode() const override; |
| 485 void AccessibilityEventReceived( | 481 void AccessibilityEventReceived( |
| 486 const std::vector<AXEventNotificationDetails>& details) override; | 482 const std::vector<AXEventNotificationDetails>& details) override; |
| 487 void AccessibilityLocationChangesReceived( | 483 void AccessibilityLocationChangesReceived( |
| 488 const std::vector<AXLocationChangeNotificationDetails>& details) override; | 484 const std::vector<AXLocationChangeNotificationDetails>& details) override; |
| 489 RenderFrameHost* GetGuestByInstanceID( | 485 RenderFrameHost* GetGuestByInstanceID( |
| 490 RenderFrameHost* render_frame_host, | 486 RenderFrameHost* render_frame_host, |
| 491 int browser_plugin_instance_id) override; | 487 int browser_plugin_instance_id) override; |
| 492 device::GeolocationServiceContext* GetGeolocationServiceContext() override; | 488 device::GeolocationServiceContext* GetGeolocationServiceContext() override; |
| 493 device::WakeLockServiceContext* GetWakeLockServiceContext() override; | 489 device::WakeLockServiceContext* GetWakeLockServiceContext() override; |
| 490 ScreenOrientationProvider* GetScreenOrientationProvider() override; |
| 494 void EnterFullscreenMode(const GURL& origin) override; | 491 void EnterFullscreenMode(const GURL& origin) override; |
| 495 void ExitFullscreenMode(bool will_cause_resize) override; | 492 void ExitFullscreenMode(bool will_cause_resize) override; |
| 496 bool ShouldRouteMessageEvent( | 493 bool ShouldRouteMessageEvent( |
| 497 RenderFrameHost* target_rfh, | 494 RenderFrameHost* target_rfh, |
| 498 SiteInstance* source_site_instance) const override; | 495 SiteInstance* source_site_instance) const override; |
| 499 void EnsureOpenerProxiesExist(RenderFrameHost* source_rfh) override; | 496 void EnsureOpenerProxiesExist(RenderFrameHost* source_rfh) override; |
| 500 std::unique_ptr<WebUIImpl> CreateWebUIForRenderFrameHost( | 497 std::unique_ptr<WebUIImpl> CreateWebUIForRenderFrameHost( |
| 501 const GURL& url) override; | 498 const GURL& url) override; |
| 502 void SetFocusedFrame(FrameTreeNode* node, SiteInstance* source) override; | 499 void SetFocusedFrame(FrameTreeNode* node, SiteInstance* source) override; |
| 503 | 500 |
| (...skipping 897 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1401 bool force_disable_overscroll_content_; | 1398 bool force_disable_overscroll_content_; |
| 1402 | 1399 |
| 1403 // Whether the last JavaScript dialog shown was suppressed. Used for testing. | 1400 // Whether the last JavaScript dialog shown was suppressed. Used for testing. |
| 1404 bool last_dialog_suppressed_; | 1401 bool last_dialog_suppressed_; |
| 1405 | 1402 |
| 1406 std::unique_ptr<device::GeolocationServiceContext> | 1403 std::unique_ptr<device::GeolocationServiceContext> |
| 1407 geolocation_service_context_; | 1404 geolocation_service_context_; |
| 1408 | 1405 |
| 1409 std::unique_ptr<device::WakeLockServiceContext> wake_lock_service_context_; | 1406 std::unique_ptr<device::WakeLockServiceContext> wake_lock_service_context_; |
| 1410 | 1407 |
| 1411 std::unique_ptr<ScreenOrientationDispatcherHost> | 1408 std::unique_ptr<ScreenOrientationProvider> screen_orientation_provider_; |
| 1412 screen_orientation_dispatcher_host_; | |
| 1413 | 1409 |
| 1414 std::unique_ptr<ManifestManagerHost> manifest_manager_host_; | 1410 std::unique_ptr<ManifestManagerHost> manifest_manager_host_; |
| 1415 | 1411 |
| 1416 // The accessibility mode for all frames. This is queried when each frame | 1412 // The accessibility mode for all frames. This is queried when each frame |
| 1417 // is created, and broadcast to all frames when it changes. | 1413 // is created, and broadcast to all frames when it changes. |
| 1418 AccessibilityMode accessibility_mode_; | 1414 AccessibilityMode accessibility_mode_; |
| 1419 | 1415 |
| 1420 // Monitors power levels for audio streams associated with this WebContents. | 1416 // Monitors power levels for audio streams associated with this WebContents. |
| 1421 AudioStreamMonitor audio_stream_monitor_; | 1417 AudioStreamMonitor audio_stream_monitor_; |
| 1422 | 1418 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1479 // Adds/removes a callback called on creation of each new WebContents. | 1475 // Adds/removes a callback called on creation of each new WebContents. |
| 1480 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); | 1476 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1481 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); | 1477 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1482 | 1478 |
| 1483 DISALLOW_COPY_AND_ASSIGN(FriendZone); | 1479 DISALLOW_COPY_AND_ASSIGN(FriendZone); |
| 1484 }; | 1480 }; |
| 1485 | 1481 |
| 1486 } // namespace content | 1482 } // namespace content |
| 1487 | 1483 |
| 1488 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1484 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| OLD | NEW |