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 <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 class PluginContentOriginWhitelist; | 60 class PluginContentOriginWhitelist; |
61 class PowerSaveBlocker; | 61 class PowerSaveBlocker; |
62 class RenderViewHost; | 62 class RenderViewHost; |
63 class RenderViewHostDelegateView; | 63 class RenderViewHostDelegateView; |
64 class RenderWidgetHostImpl; | 64 class RenderWidgetHostImpl; |
65 class RenderWidgetHostInputEventRouter; | 65 class RenderWidgetHostInputEventRouter; |
66 class SavePackage; | 66 class SavePackage; |
67 class ScreenOrientationDispatcherHost; | 67 class ScreenOrientationDispatcherHost; |
68 class SiteInstance; | 68 class SiteInstance; |
69 class TestWebContents; | 69 class TestWebContents; |
| 70 class WakeLockServiceContext; |
70 class WebContentsAudioMuter; | 71 class WebContentsAudioMuter; |
71 class WebContentsDelegate; | 72 class WebContentsDelegate; |
72 class WebContentsImpl; | 73 class WebContentsImpl; |
73 class WebContentsObserver; | 74 class WebContentsObserver; |
74 class WebContentsView; | 75 class WebContentsView; |
75 class WebContentsViewDelegate; | 76 class WebContentsViewDelegate; |
76 struct AXEventNotificationDetails; | 77 struct AXEventNotificationDetails; |
77 struct ColorSuggestion; | 78 struct ColorSuggestion; |
78 struct FaviconURL; | 79 struct FaviconURL; |
79 struct LoadNotificationDetails; | 80 struct LoadNotificationDetails; |
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
421 const std::string& encoding) override; | 422 const std::string& encoding) override; |
422 WebContents* GetAsWebContents() override; | 423 WebContents* GetAsWebContents() override; |
423 bool IsNeverVisible() override; | 424 bool IsNeverVisible() override; |
424 AccessibilityMode GetAccessibilityMode() const override; | 425 AccessibilityMode GetAccessibilityMode() const override; |
425 void AccessibilityEventReceived( | 426 void AccessibilityEventReceived( |
426 const std::vector<AXEventNotificationDetails>& details) override; | 427 const std::vector<AXEventNotificationDetails>& details) override; |
427 RenderFrameHost* GetGuestByInstanceID( | 428 RenderFrameHost* GetGuestByInstanceID( |
428 RenderFrameHost* render_frame_host, | 429 RenderFrameHost* render_frame_host, |
429 int browser_plugin_instance_id) override; | 430 int browser_plugin_instance_id) override; |
430 GeolocationServiceContext* GetGeolocationServiceContext() override; | 431 GeolocationServiceContext* GetGeolocationServiceContext() override; |
| 432 WakeLockServiceContext* GetWakeLockServiceContext() override; |
431 void EnterFullscreenMode(const GURL& origin) override; | 433 void EnterFullscreenMode(const GURL& origin) override; |
432 void ExitFullscreenMode() override; | 434 void ExitFullscreenMode() override; |
433 bool ShouldRouteMessageEvent( | 435 bool ShouldRouteMessageEvent( |
434 RenderFrameHost* target_rfh, | 436 RenderFrameHost* target_rfh, |
435 SiteInstance* source_site_instance) const override; | 437 SiteInstance* source_site_instance) const override; |
436 void EnsureOpenerProxiesExist(RenderFrameHost* source_rfh) override; | 438 void EnsureOpenerProxiesExist(RenderFrameHost* source_rfh) override; |
437 #if defined(OS_WIN) | 439 #if defined(OS_WIN) |
438 gfx::NativeViewAccessible GetParentNativeViewAccessible() override; | 440 gfx::NativeViewAccessible GetParentNativeViewAccessible() override; |
439 #endif | 441 #endif |
440 | 442 |
(...skipping 836 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1277 scoped_ptr<OpenURLParams> delayed_open_url_params_; | 1279 scoped_ptr<OpenURLParams> delayed_open_url_params_; |
1278 | 1280 |
1279 // Whether overscroll should be unconditionally disabled. | 1281 // Whether overscroll should be unconditionally disabled. |
1280 bool force_disable_overscroll_content_; | 1282 bool force_disable_overscroll_content_; |
1281 | 1283 |
1282 // Whether the last JavaScript dialog shown was suppressed. Used for testing. | 1284 // Whether the last JavaScript dialog shown was suppressed. Used for testing. |
1283 bool last_dialog_suppressed_; | 1285 bool last_dialog_suppressed_; |
1284 | 1286 |
1285 scoped_ptr<GeolocationServiceContext> geolocation_service_context_; | 1287 scoped_ptr<GeolocationServiceContext> geolocation_service_context_; |
1286 | 1288 |
| 1289 scoped_ptr<WakeLockServiceContext> wake_lock_service_context_; |
| 1290 |
1287 scoped_ptr<ScreenOrientationDispatcherHost> | 1291 scoped_ptr<ScreenOrientationDispatcherHost> |
1288 screen_orientation_dispatcher_host_; | 1292 screen_orientation_dispatcher_host_; |
1289 | 1293 |
1290 scoped_ptr<ManifestManagerHost> manifest_manager_host_; | 1294 scoped_ptr<ManifestManagerHost> manifest_manager_host_; |
1291 | 1295 |
1292 // The accessibility mode for all frames. This is queried when each frame | 1296 // The accessibility mode for all frames. This is queried when each frame |
1293 // is created, and broadcast to all frames when it changes. | 1297 // is created, and broadcast to all frames when it changes. |
1294 AccessibilityMode accessibility_mode_; | 1298 AccessibilityMode accessibility_mode_; |
1295 | 1299 |
1296 // Monitors power levels for audio streams associated with this WebContents. | 1300 // Monitors power levels for audio streams associated with this WebContents. |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1328 // Adds/removes a callback called on creation of each new WebContents. | 1332 // Adds/removes a callback called on creation of each new WebContents. |
1329 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); | 1333 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); |
1330 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); | 1334 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); |
1331 | 1335 |
1332 DISALLOW_COPY_AND_ASSIGN(FriendZone); | 1336 DISALLOW_COPY_AND_ASSIGN(FriendZone); |
1333 }; | 1337 }; |
1334 | 1338 |
1335 } // namespace content | 1339 } // namespace content |
1336 | 1340 |
1337 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1341 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
OLD | NEW |