| 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 class PluginContentOriginWhitelist; | 66 class PluginContentOriginWhitelist; |
| 67 class PowerSaveBlocker; | 67 class PowerSaveBlocker; |
| 68 class RenderViewHost; | 68 class RenderViewHost; |
| 69 class RenderViewHostDelegateView; | 69 class RenderViewHostDelegateView; |
| 70 class RenderWidgetHostImpl; | 70 class RenderWidgetHostImpl; |
| 71 class RenderWidgetHostInputEventRouter; | 71 class RenderWidgetHostInputEventRouter; |
| 72 class SavePackage; | 72 class SavePackage; |
| 73 class ScreenOrientationDispatcherHost; | 73 class ScreenOrientationDispatcherHost; |
| 74 class SiteInstance; | 74 class SiteInstance; |
| 75 class TestWebContents; | 75 class TestWebContents; |
| 76 class TextInputManager; |
| 76 class WakeLockServiceContext; | 77 class WakeLockServiceContext; |
| 77 class WebContentsAudioMuter; | 78 class WebContentsAudioMuter; |
| 78 class WebContentsDelegate; | 79 class WebContentsDelegate; |
| 79 class WebContentsImpl; | 80 class WebContentsImpl; |
| 80 class WebContentsView; | 81 class WebContentsView; |
| 81 class WebContentsViewDelegate; | 82 class WebContentsViewDelegate; |
| 82 struct AXEventNotificationDetails; | 83 struct AXEventNotificationDetails; |
| 83 struct ColorSuggestion; | 84 struct ColorSuggestion; |
| 84 struct FaviconURL; | 85 struct FaviconURL; |
| 85 struct LoadNotificationDetails; | 86 struct LoadNotificationDetails; |
| (...skipping 538 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 624 bool IsFullscreenForCurrentTab( | 625 bool IsFullscreenForCurrentTab( |
| 625 RenderWidgetHostImpl* render_widget_host) const override; | 626 RenderWidgetHostImpl* render_widget_host) const override; |
| 626 blink::WebDisplayMode GetDisplayMode( | 627 blink::WebDisplayMode GetDisplayMode( |
| 627 RenderWidgetHostImpl* render_widget_host) const override; | 628 RenderWidgetHostImpl* render_widget_host) const override; |
| 628 void LostCapture(RenderWidgetHostImpl* render_widget_host) override; | 629 void LostCapture(RenderWidgetHostImpl* render_widget_host) override; |
| 629 void LostMouseLock(RenderWidgetHostImpl* render_widget_host) override; | 630 void LostMouseLock(RenderWidgetHostImpl* render_widget_host) override; |
| 630 void ForwardCompositorProto(RenderWidgetHostImpl* render_widget_host, | 631 void ForwardCompositorProto(RenderWidgetHostImpl* render_widget_host, |
| 631 const std::vector<uint8_t>& proto) override; | 632 const std::vector<uint8_t>& proto) override; |
| 632 void OnRenderFrameProxyVisibilityChanged(bool visible) override; | 633 void OnRenderFrameProxyVisibilityChanged(bool visible) override; |
| 633 void SendScreenRects() override; | 634 void SendScreenRects() override; |
| 635 TextInputManager* GetTextInputManager() override; |
| 634 | 636 |
| 635 // RenderFrameHostManager::Delegate ------------------------------------------ | 637 // RenderFrameHostManager::Delegate ------------------------------------------ |
| 636 | 638 |
| 637 bool CreateRenderViewForRenderManager( | 639 bool CreateRenderViewForRenderManager( |
| 638 RenderViewHost* render_view_host, | 640 RenderViewHost* render_view_host, |
| 639 int opener_frame_routing_id, | 641 int opener_frame_routing_id, |
| 640 int proxy_routing_id, | 642 int proxy_routing_id, |
| 641 const FrameReplicationState& replicated_frame_state) override; | 643 const FrameReplicationState& replicated_frame_state) override; |
| 642 void CreateRenderWidgetHostViewForRenderManager( | 644 void CreateRenderWidgetHostViewForRenderManager( |
| 643 RenderViewHost* render_view_host) override; | 645 RenderViewHost* render_view_host) override; |
| (...skipping 723 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1367 | 1369 |
| 1368 // Manages media players, CDMs, and power save blockers for media. | 1370 // Manages media players, CDMs, and power save blockers for media. |
| 1369 std::unique_ptr<MediaWebContentsObserver> media_web_contents_observer_; | 1371 std::unique_ptr<MediaWebContentsObserver> media_web_contents_observer_; |
| 1370 | 1372 |
| 1371 std::unique_ptr<RenderWidgetHostInputEventRouter> rwh_input_event_router_; | 1373 std::unique_ptr<RenderWidgetHostInputEventRouter> rwh_input_event_router_; |
| 1372 | 1374 |
| 1373 PageImportanceSignals page_importance_signals_; | 1375 PageImportanceSignals page_importance_signals_; |
| 1374 | 1376 |
| 1375 bool page_scale_factor_is_one_; | 1377 bool page_scale_factor_is_one_; |
| 1376 | 1378 |
| 1379 std::unique_ptr<TextInputManager> text_input_manager_; |
| 1380 |
| 1377 base::WeakPtrFactory<WebContentsImpl> loading_weak_factory_; | 1381 base::WeakPtrFactory<WebContentsImpl> loading_weak_factory_; |
| 1378 base::WeakPtrFactory<WebContentsImpl> weak_factory_; | 1382 base::WeakPtrFactory<WebContentsImpl> weak_factory_; |
| 1379 | 1383 |
| 1380 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); | 1384 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); |
| 1381 }; | 1385 }; |
| 1382 | 1386 |
| 1383 // Dangerous methods which should never be made part of the public API, so we | 1387 // Dangerous methods which should never be made part of the public API, so we |
| 1384 // grant their use only to an explicit friend list (c++ attorney/client idiom). | 1388 // grant their use only to an explicit friend list (c++ attorney/client idiom). |
| 1385 class CONTENT_EXPORT WebContentsImpl::FriendZone { | 1389 class CONTENT_EXPORT WebContentsImpl::FriendZone { |
| 1386 private: | 1390 private: |
| 1387 friend class TestNavigationObserver; | 1391 friend class TestNavigationObserver; |
| 1388 friend class WebContentsAddedObserver; | 1392 friend class WebContentsAddedObserver; |
| 1389 friend class ContentBrowserSanityChecker; | 1393 friend class ContentBrowserSanityChecker; |
| 1390 | 1394 |
| 1391 FriendZone(); // Not instantiable. | 1395 FriendZone(); // Not instantiable. |
| 1392 | 1396 |
| 1393 // Adds/removes a callback called on creation of each new WebContents. | 1397 // Adds/removes a callback called on creation of each new WebContents. |
| 1394 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); | 1398 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1395 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); | 1399 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1396 | 1400 |
| 1397 DISALLOW_COPY_AND_ASSIGN(FriendZone); | 1401 DISALLOW_COPY_AND_ASSIGN(FriendZone); |
| 1398 }; | 1402 }; |
| 1399 | 1403 |
| 1400 } // namespace content | 1404 } // namespace content |
| 1401 | 1405 |
| 1402 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1406 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| OLD | NEW |