| 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 27 matching lines...) Expand all Loading... |
| 38 #include "content/public/browser/color_chooser.h" | 38 #include "content/public/browser/color_chooser.h" |
| 39 #include "content/public/browser/notification_observer.h" | 39 #include "content/public/browser/notification_observer.h" |
| 40 #include "content/public/browser/notification_registrar.h" | 40 #include "content/public/browser/notification_registrar.h" |
| 41 #include "content/public/browser/web_contents.h" | 41 #include "content/public/browser/web_contents.h" |
| 42 #include "content/public/browser/web_contents_binding_set.h" | 42 #include "content/public/browser/web_contents_binding_set.h" |
| 43 #include "content/public/browser/web_contents_observer.h" | 43 #include "content/public/browser/web_contents_observer.h" |
| 44 #include "content/public/common/page_importance_signals.h" | 44 #include "content/public/common/page_importance_signals.h" |
| 45 #include "content/public/common/renderer_preferences.h" | 45 #include "content/public/common/renderer_preferences.h" |
| 46 #include "content/public/common/resource_type.h" | 46 #include "content/public/common/resource_type.h" |
| 47 #include "content/public/common/three_d_api_types.h" | 47 #include "content/public/common/three_d_api_types.h" |
| 48 #include "device/wake_lock/public/interfaces/wake_lock_service.mojom.h" | 48 #include "device/wake_lock/public/interfaces/wake_lock.mojom.h" |
| 49 #include "net/base/load_states.h" | 49 #include "net/base/load_states.h" |
| 50 #include "net/http/http_response_headers.h" | 50 #include "net/http/http_response_headers.h" |
| 51 #include "ppapi/features/features.h" | 51 #include "ppapi/features/features.h" |
| 52 #include "third_party/WebKit/public/platform/WebDragOperation.h" | 52 #include "third_party/WebKit/public/platform/WebDragOperation.h" |
| 53 #include "ui/base/page_transition_types.h" | 53 #include "ui/base/page_transition_types.h" |
| 54 #include "ui/gfx/geometry/rect_f.h" | 54 #include "ui/gfx/geometry/rect_f.h" |
| 55 #include "ui/gfx/geometry/size.h" | 55 #include "ui/gfx/geometry/size.h" |
| 56 | 56 |
| 57 #if defined(OS_ANDROID) | 57 #if defined(OS_ANDROID) |
| 58 #include "content/browser/android/nfc_host.h" | 58 #include "content/browser/android/nfc_host.h" |
| (...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 513 AccessibilityMode GetAccessibilityMode() const override; | 513 AccessibilityMode GetAccessibilityMode() const override; |
| 514 void AccessibilityEventReceived( | 514 void AccessibilityEventReceived( |
| 515 const std::vector<AXEventNotificationDetails>& details) override; | 515 const std::vector<AXEventNotificationDetails>& details) override; |
| 516 void AccessibilityLocationChangesReceived( | 516 void AccessibilityLocationChangesReceived( |
| 517 const std::vector<AXLocationChangeNotificationDetails>& details) override; | 517 const std::vector<AXLocationChangeNotificationDetails>& details) override; |
| 518 RenderFrameHost* GetGuestByInstanceID( | 518 RenderFrameHost* GetGuestByInstanceID( |
| 519 RenderFrameHost* render_frame_host, | 519 RenderFrameHost* render_frame_host, |
| 520 int browser_plugin_instance_id) override; | 520 int browser_plugin_instance_id) override; |
| 521 device::GeolocationServiceContext* GetGeolocationServiceContext() override; | 521 device::GeolocationServiceContext* GetGeolocationServiceContext() override; |
| 522 device::mojom::WakeLockContext* GetWakeLockContext() override; | 522 device::mojom::WakeLockContext* GetWakeLockContext() override; |
| 523 device::mojom::WakeLockService* GetRendererWakeLock() override; | 523 device::mojom::WakeLock* GetRendererWakeLock() override; |
| 524 #if defined(OS_ANDROID) | 524 #if defined(OS_ANDROID) |
| 525 void GetNFC(device::mojom::NFCRequest request) override; | 525 void GetNFC(device::mojom::NFCRequest request) override; |
| 526 #endif | 526 #endif |
| 527 void EnterFullscreenMode(const GURL& origin) override; | 527 void EnterFullscreenMode(const GURL& origin) override; |
| 528 void ExitFullscreenMode(bool will_cause_resize) override; | 528 void ExitFullscreenMode(bool will_cause_resize) override; |
| 529 bool ShouldRouteMessageEvent( | 529 bool ShouldRouteMessageEvent( |
| 530 RenderFrameHost* target_rfh, | 530 RenderFrameHost* target_rfh, |
| 531 SiteInstance* source_site_instance) const override; | 531 SiteInstance* source_site_instance) const override; |
| 532 void EnsureOpenerProxiesExist(RenderFrameHost* source_rfh) override; | 532 void EnsureOpenerProxiesExist(RenderFrameHost* source_rfh) override; |
| 533 std::unique_ptr<WebUIImpl> CreateWebUIForRenderFrameHost( | 533 std::unique_ptr<WebUIImpl> CreateWebUIForRenderFrameHost( |
| (...skipping 1000 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1534 bool force_disable_overscroll_content_; | 1534 bool force_disable_overscroll_content_; |
| 1535 | 1535 |
| 1536 // Whether the last JavaScript dialog shown was suppressed. Used for testing. | 1536 // Whether the last JavaScript dialog shown was suppressed. Used for testing. |
| 1537 bool last_dialog_suppressed_; | 1537 bool last_dialog_suppressed_; |
| 1538 | 1538 |
| 1539 std::unique_ptr<device::GeolocationServiceContext> | 1539 std::unique_ptr<device::GeolocationServiceContext> |
| 1540 geolocation_service_context_; | 1540 geolocation_service_context_; |
| 1541 | 1541 |
| 1542 std::unique_ptr<WakeLockContextHost> wake_lock_context_host_; | 1542 std::unique_ptr<WakeLockContextHost> wake_lock_context_host_; |
| 1543 | 1543 |
| 1544 device::mojom::WakeLockServicePtr renderer_wake_lock_; | 1544 device::mojom::WakeLockPtr renderer_wake_lock_; |
| 1545 | 1545 |
| 1546 #if defined(OS_ANDROID) | 1546 #if defined(OS_ANDROID) |
| 1547 std::unique_ptr<NFCHost> nfc_host_; | 1547 std::unique_ptr<NFCHost> nfc_host_; |
| 1548 #endif | 1548 #endif |
| 1549 | 1549 |
| 1550 std::unique_ptr<ScreenOrientationProvider> screen_orientation_provider_; | 1550 std::unique_ptr<ScreenOrientationProvider> screen_orientation_provider_; |
| 1551 | 1551 |
| 1552 std::unique_ptr<ManifestManagerHost> manifest_manager_host_; | 1552 std::unique_ptr<ManifestManagerHost> manifest_manager_host_; |
| 1553 | 1553 |
| 1554 // The accessibility mode for all frames. This is queried when each frame | 1554 // The accessibility mode for all frames. This is queried when each frame |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1630 // Adds/removes a callback called on creation of each new WebContents. | 1630 // Adds/removes a callback called on creation of each new WebContents. |
| 1631 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); | 1631 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1632 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); | 1632 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1633 | 1633 |
| 1634 DISALLOW_COPY_AND_ASSIGN(FriendWrapper); | 1634 DISALLOW_COPY_AND_ASSIGN(FriendWrapper); |
| 1635 }; | 1635 }; |
| 1636 | 1636 |
| 1637 } // namespace content | 1637 } // namespace content |
| 1638 | 1638 |
| 1639 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1639 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| OLD | NEW |