| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 #include "ui/gfx/geometry/rect_f.h" | 43 #include "ui/gfx/geometry/rect_f.h" |
| 44 #include "ui/gfx/geometry/size.h" | 44 #include "ui/gfx/geometry/size.h" |
| 45 | 45 |
| 46 struct ViewHostMsg_DateTimeDialogValue_Params; | 46 struct ViewHostMsg_DateTimeDialogValue_Params; |
| 47 | 47 |
| 48 namespace content { | 48 namespace content { |
| 49 class BrowserPluginEmbedder; | 49 class BrowserPluginEmbedder; |
| 50 class BrowserPluginGuest; | 50 class BrowserPluginGuest; |
| 51 class DateTimeChooserAndroid; | 51 class DateTimeChooserAndroid; |
| 52 class DownloadItem; | 52 class DownloadItem; |
| 53 class GeolocationServiceContext; | |
| 54 class InterstitialPageImpl; | 53 class InterstitialPageImpl; |
| 55 class JavaScriptDialogManager; | 54 class JavaScriptDialogManager; |
| 56 class ManifestManagerHost; | 55 class ManifestManagerHost; |
| 57 class MediaWebContentsObserver; | 56 class MediaWebContentsObserver; |
| 58 class PluginContentOriginWhitelist; | 57 class PluginContentOriginWhitelist; |
| 59 class PowerSaveBlocker; | 58 class PowerSaveBlocker; |
| 60 class RenderViewHost; | 59 class RenderViewHost; |
| 61 class RenderViewHostDelegateView; | 60 class RenderViewHostDelegateView; |
| 62 class RenderWidgetHostImpl; | 61 class RenderWidgetHostImpl; |
| 63 class RenderWidgetHostInputEventRouter; | 62 class RenderWidgetHostInputEventRouter; |
| (...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 425 void UpdateEncoding(RenderFrameHost* render_frame_host, | 424 void UpdateEncoding(RenderFrameHost* render_frame_host, |
| 426 const std::string& encoding) override; | 425 const std::string& encoding) override; |
| 427 WebContents* GetAsWebContents() override; | 426 WebContents* GetAsWebContents() override; |
| 428 bool IsNeverVisible() override; | 427 bool IsNeverVisible() override; |
| 429 AccessibilityMode GetAccessibilityMode() const override; | 428 AccessibilityMode GetAccessibilityMode() const override; |
| 430 void AccessibilityEventReceived( | 429 void AccessibilityEventReceived( |
| 431 const std::vector<AXEventNotificationDetails>& details) override; | 430 const std::vector<AXEventNotificationDetails>& details) override; |
| 432 RenderFrameHost* GetGuestByInstanceID( | 431 RenderFrameHost* GetGuestByInstanceID( |
| 433 RenderFrameHost* render_frame_host, | 432 RenderFrameHost* render_frame_host, |
| 434 int browser_plugin_instance_id) override; | 433 int browser_plugin_instance_id) override; |
| 435 GeolocationServiceContext* GetGeolocationServiceContext() override; | |
| 436 WakeLockServiceContext* GetWakeLockServiceContext() override; | 434 WakeLockServiceContext* GetWakeLockServiceContext() override; |
| 437 void EnterFullscreenMode(const GURL& origin) override; | 435 void EnterFullscreenMode(const GURL& origin) override; |
| 438 void ExitFullscreenMode() override; | 436 void ExitFullscreenMode() override; |
| 439 bool ShouldRouteMessageEvent( | 437 bool ShouldRouteMessageEvent( |
| 440 RenderFrameHost* target_rfh, | 438 RenderFrameHost* target_rfh, |
| 441 SiteInstance* source_site_instance) const override; | 439 SiteInstance* source_site_instance) const override; |
| 442 void EnsureOpenerProxiesExist(RenderFrameHost* source_rfh) override; | 440 void EnsureOpenerProxiesExist(RenderFrameHost* source_rfh) override; |
| 443 #if defined(OS_WIN) | 441 #if defined(OS_WIN) |
| 444 gfx::NativeViewAccessible GetParentNativeViewAccessible() override; | 442 gfx::NativeViewAccessible GetParentNativeViewAccessible() override; |
| 445 #endif | 443 #endif |
| (...skipping 848 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1294 // When a new tab is created asynchronously, stores the OpenURLParams needed | 1292 // When a new tab is created asynchronously, stores the OpenURLParams needed |
| 1295 // to continue loading the page once the tab is ready. | 1293 // to continue loading the page once the tab is ready. |
| 1296 scoped_ptr<OpenURLParams> delayed_open_url_params_; | 1294 scoped_ptr<OpenURLParams> delayed_open_url_params_; |
| 1297 | 1295 |
| 1298 // Whether overscroll should be unconditionally disabled. | 1296 // Whether overscroll should be unconditionally disabled. |
| 1299 bool force_disable_overscroll_content_; | 1297 bool force_disable_overscroll_content_; |
| 1300 | 1298 |
| 1301 // Whether the last JavaScript dialog shown was suppressed. Used for testing. | 1299 // Whether the last JavaScript dialog shown was suppressed. Used for testing. |
| 1302 bool last_dialog_suppressed_; | 1300 bool last_dialog_suppressed_; |
| 1303 | 1301 |
| 1304 scoped_ptr<GeolocationServiceContext> geolocation_service_context_; | |
| 1305 | |
| 1306 scoped_ptr<WakeLockServiceContext> wake_lock_service_context_; | 1302 scoped_ptr<WakeLockServiceContext> wake_lock_service_context_; |
| 1307 | 1303 |
| 1308 scoped_ptr<ScreenOrientationDispatcherHost> | 1304 scoped_ptr<ScreenOrientationDispatcherHost> |
| 1309 screen_orientation_dispatcher_host_; | 1305 screen_orientation_dispatcher_host_; |
| 1310 | 1306 |
| 1311 scoped_ptr<ManifestManagerHost> manifest_manager_host_; | 1307 scoped_ptr<ManifestManagerHost> manifest_manager_host_; |
| 1312 | 1308 |
| 1313 // The accessibility mode for all frames. This is queried when each frame | 1309 // The accessibility mode for all frames. This is queried when each frame |
| 1314 // is created, and broadcast to all frames when it changes. | 1310 // is created, and broadcast to all frames when it changes. |
| 1315 AccessibilityMode accessibility_mode_; | 1311 AccessibilityMode accessibility_mode_; |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1351 // Adds/removes a callback called on creation of each new WebContents. | 1347 // Adds/removes a callback called on creation of each new WebContents. |
| 1352 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); | 1348 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1353 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); | 1349 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1354 | 1350 |
| 1355 DISALLOW_COPY_AND_ASSIGN(FriendZone); | 1351 DISALLOW_COPY_AND_ASSIGN(FriendZone); |
| 1356 }; | 1352 }; |
| 1357 | 1353 |
| 1358 } // namespace content | 1354 } // namespace content |
| 1359 | 1355 |
| 1360 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1356 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| OLD | NEW |