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 26 matching lines...) Expand all Loading... |
37 #include "content/public/browser/color_chooser.h" | 37 #include "content/public/browser/color_chooser.h" |
38 #include "content/public/browser/notification_observer.h" | 38 #include "content/public/browser/notification_observer.h" |
39 #include "content/public/browser/notification_registrar.h" | 39 #include "content/public/browser/notification_registrar.h" |
40 #include "content/public/browser/web_contents.h" | 40 #include "content/public/browser/web_contents.h" |
41 #include "content/public/browser/web_contents_binding_set.h" | 41 #include "content/public/browser/web_contents_binding_set.h" |
42 #include "content/public/browser/web_contents_observer.h" | 42 #include "content/public/browser/web_contents_observer.h" |
43 #include "content/public/common/page_importance_signals.h" | 43 #include "content/public/common/page_importance_signals.h" |
44 #include "content/public/common/renderer_preferences.h" | 44 #include "content/public/common/renderer_preferences.h" |
45 #include "content/public/common/resource_type.h" | 45 #include "content/public/common/resource_type.h" |
46 #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" | 47 #include "device/wake_lock/public/interfaces/wake_lock_service.mojom.h" |
48 #include "net/base/load_states.h" | 48 #include "net/base/load_states.h" |
49 #include "net/http/http_response_headers.h" | 49 #include "net/http/http_response_headers.h" |
50 #include "ppapi/features/features.h" | 50 #include "ppapi/features/features.h" |
51 #include "third_party/WebKit/public/platform/WebDragOperation.h" | 51 #include "third_party/WebKit/public/platform/WebDragOperation.h" |
52 #include "ui/base/page_transition_types.h" | 52 #include "ui/base/page_transition_types.h" |
53 #include "ui/gfx/geometry/rect_f.h" | 53 #include "ui/gfx/geometry/rect_f.h" |
54 #include "ui/gfx/geometry/size.h" | 54 #include "ui/gfx/geometry/size.h" |
55 | 55 |
56 struct ViewHostMsg_DateTimeDialogValue_Params; | 56 struct ViewHostMsg_DateTimeDialogValue_Params; |
57 | 57 |
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
499 bool IsNeverVisible() override; | 499 bool IsNeverVisible() override; |
500 AccessibilityMode GetAccessibilityMode() const override; | 500 AccessibilityMode GetAccessibilityMode() const override; |
501 void AccessibilityEventReceived( | 501 void AccessibilityEventReceived( |
502 const std::vector<AXEventNotificationDetails>& details) override; | 502 const std::vector<AXEventNotificationDetails>& details) override; |
503 void AccessibilityLocationChangesReceived( | 503 void AccessibilityLocationChangesReceived( |
504 const std::vector<AXLocationChangeNotificationDetails>& details) override; | 504 const std::vector<AXLocationChangeNotificationDetails>& details) override; |
505 RenderFrameHost* GetGuestByInstanceID( | 505 RenderFrameHost* GetGuestByInstanceID( |
506 RenderFrameHost* render_frame_host, | 506 RenderFrameHost* render_frame_host, |
507 int browser_plugin_instance_id) override; | 507 int browser_plugin_instance_id) override; |
508 device::GeolocationServiceContext* GetGeolocationServiceContext() override; | 508 device::GeolocationServiceContext* GetGeolocationServiceContext() override; |
509 device::mojom::WakeLockContext* GetWakeLockServiceContext() override; | 509 device::mojom::WakeLockContext* GetWakeLockContext() override; |
| 510 device::mojom::WakeLockService* GetRendererWakeLock() override; |
510 void EnterFullscreenMode(const GURL& origin) override; | 511 void EnterFullscreenMode(const GURL& origin) override; |
511 void ExitFullscreenMode(bool will_cause_resize) override; | 512 void ExitFullscreenMode(bool will_cause_resize) override; |
512 bool ShouldRouteMessageEvent( | 513 bool ShouldRouteMessageEvent( |
513 RenderFrameHost* target_rfh, | 514 RenderFrameHost* target_rfh, |
514 SiteInstance* source_site_instance) const override; | 515 SiteInstance* source_site_instance) const override; |
515 void EnsureOpenerProxiesExist(RenderFrameHost* source_rfh) override; | 516 void EnsureOpenerProxiesExist(RenderFrameHost* source_rfh) override; |
516 std::unique_ptr<WebUIImpl> CreateWebUIForRenderFrameHost( | 517 std::unique_ptr<WebUIImpl> CreateWebUIForRenderFrameHost( |
517 const GURL& url) override; | 518 const GURL& url) override; |
518 void SetFocusedFrame(FrameTreeNode* node, SiteInstance* source) override; | 519 void SetFocusedFrame(FrameTreeNode* node, SiteInstance* source) override; |
519 void OnFocusedElementChangedInFrame( | 520 void OnFocusedElementChangedInFrame( |
(...skipping 984 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1504 bool force_disable_overscroll_content_; | 1505 bool force_disable_overscroll_content_; |
1505 | 1506 |
1506 // Whether the last JavaScript dialog shown was suppressed. Used for testing. | 1507 // Whether the last JavaScript dialog shown was suppressed. Used for testing. |
1507 bool last_dialog_suppressed_; | 1508 bool last_dialog_suppressed_; |
1508 | 1509 |
1509 std::unique_ptr<device::GeolocationServiceContext> | 1510 std::unique_ptr<device::GeolocationServiceContext> |
1510 geolocation_service_context_; | 1511 geolocation_service_context_; |
1511 | 1512 |
1512 std::unique_ptr<WakeLockContextHost> wake_lock_context_host_; | 1513 std::unique_ptr<WakeLockContextHost> wake_lock_context_host_; |
1513 | 1514 |
| 1515 device::mojom::WakeLockServicePtr renderer_wake_lock_; |
| 1516 |
1514 std::unique_ptr<ScreenOrientationProvider> screen_orientation_provider_; | 1517 std::unique_ptr<ScreenOrientationProvider> screen_orientation_provider_; |
1515 | 1518 |
1516 std::unique_ptr<ManifestManagerHost> manifest_manager_host_; | 1519 std::unique_ptr<ManifestManagerHost> manifest_manager_host_; |
1517 | 1520 |
1518 // The accessibility mode for all frames. This is queried when each frame | 1521 // The accessibility mode for all frames. This is queried when each frame |
1519 // is created, and broadcast to all frames when it changes. | 1522 // is created, and broadcast to all frames when it changes. |
1520 AccessibilityMode accessibility_mode_; | 1523 AccessibilityMode accessibility_mode_; |
1521 | 1524 |
1522 // Monitors power levels for audio streams associated with this WebContents. | 1525 // Monitors power levels for audio streams associated with this WebContents. |
1523 AudioStreamMonitor audio_stream_monitor_; | 1526 AudioStreamMonitor audio_stream_monitor_; |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1590 // Adds/removes a callback called on creation of each new WebContents. | 1593 // Adds/removes a callback called on creation of each new WebContents. |
1591 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); | 1594 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); |
1592 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); | 1595 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); |
1593 | 1596 |
1594 DISALLOW_COPY_AND_ASSIGN(FriendWrapper); | 1597 DISALLOW_COPY_AND_ASSIGN(FriendWrapper); |
1595 }; | 1598 }; |
1596 | 1599 |
1597 } // namespace content | 1600 } // namespace content |
1598 | 1601 |
1599 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1602 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
OLD | NEW |