| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 54 class GeolocationServiceContext; | 54 class GeolocationServiceContext; | 
| 55 class InterstitialPageImpl; | 55 class InterstitialPageImpl; | 
| 56 class JavaScriptDialogManager; | 56 class JavaScriptDialogManager; | 
| 57 class ManifestManagerHost; | 57 class ManifestManagerHost; | 
| 58 class MediaWebContentsObserver; | 58 class MediaWebContentsObserver; | 
| 59 class PluginContentOriginWhitelist; | 59 class PluginContentOriginWhitelist; | 
| 60 class PowerSaveBlocker; | 60 class PowerSaveBlocker; | 
| 61 class RenderViewHost; | 61 class RenderViewHost; | 
| 62 class RenderViewHostDelegateView; | 62 class RenderViewHostDelegateView; | 
| 63 class RenderWidgetHostImpl; | 63 class RenderWidgetHostImpl; | 
|  | 64 class RenderWidgetHostInputEventRouter; | 
| 64 class SavePackage; | 65 class SavePackage; | 
| 65 class ScreenOrientationDispatcherHost; | 66 class ScreenOrientationDispatcherHost; | 
| 66 class SiteInstance; | 67 class SiteInstance; | 
| 67 class TestWebContents; | 68 class TestWebContents; | 
| 68 class WebContentsAudioMuter; | 69 class WebContentsAudioMuter; | 
| 69 class WebContentsDelegate; | 70 class WebContentsDelegate; | 
| 70 class WebContentsImpl; | 71 class WebContentsImpl; | 
| 71 class WebContentsObserver; | 72 class WebContentsObserver; | 
| 72 class WebContentsView; | 73 class WebContentsView; | 
| 73 class WebContentsViewDelegate; | 74 class WebContentsViewDelegate; | 
| (...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 573       override; | 574       override; | 
| 574   // The following 4 functions are already listed under WebContents overrides: | 575   // The following 4 functions are already listed under WebContents overrides: | 
| 575   // void Cut() override; | 576   // void Cut() override; | 
| 576   // void Copy() override; | 577   // void Copy() override; | 
| 577   // void Paste() override; | 578   // void Paste() override; | 
| 578   // void SelectAll() override; | 579   // void SelectAll() override; | 
| 579   void MoveRangeSelectionExtent(const gfx::Point& extent) override; | 580   void MoveRangeSelectionExtent(const gfx::Point& extent) override; | 
| 580   void SelectRange(const gfx::Point& base, const gfx::Point& extent) override; | 581   void SelectRange(const gfx::Point& base, const gfx::Point& extent) override; | 
| 581   void AdjustSelectionByCharacterOffset(int start_adjust, int end_adjust) | 582   void AdjustSelectionByCharacterOffset(int start_adjust, int end_adjust) | 
| 582       override; | 583       override; | 
|  | 584   RenderWidgetHostInputEventRouter* GetInputEventRouter() override; | 
| 583 | 585 | 
| 584   // RenderFrameHostManager::Delegate ------------------------------------------ | 586   // RenderFrameHostManager::Delegate ------------------------------------------ | 
| 585 | 587 | 
| 586   bool CreateRenderViewForRenderManager( | 588   bool CreateRenderViewForRenderManager( | 
| 587       RenderViewHost* render_view_host, | 589       RenderViewHost* render_view_host, | 
| 588       int opener_frame_routing_id, | 590       int opener_frame_routing_id, | 
| 589       int proxy_routing_id, | 591       int proxy_routing_id, | 
| 590       const FrameReplicationState& replicated_frame_state, | 592       const FrameReplicationState& replicated_frame_state, | 
| 591       bool for_main_frame_navigation) override; | 593       bool for_main_frame_navigation) override; | 
| 592   bool CreateRenderFrameForRenderManager(RenderFrameHost* render_frame_host, | 594   bool CreateRenderFrameForRenderManager(RenderFrameHost* render_frame_host, | 
| (...skipping 687 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1280   // Created on-demand to mute all audio output from this WebContents. | 1282   // Created on-demand to mute all audio output from this WebContents. | 
| 1281   scoped_ptr<WebContentsAudioMuter> audio_muter_; | 1283   scoped_ptr<WebContentsAudioMuter> audio_muter_; | 
| 1282 | 1284 | 
| 1283   bool virtual_keyboard_requested_; | 1285   bool virtual_keyboard_requested_; | 
| 1284 | 1286 | 
| 1285 #if defined(ENABLE_BROWSER_CDMS) | 1287 #if defined(ENABLE_BROWSER_CDMS) | 
| 1286   // Manages all the media player and CDM managers and forwards IPCs to them. | 1288   // Manages all the media player and CDM managers and forwards IPCs to them. | 
| 1287   scoped_ptr<MediaWebContentsObserver> media_web_contents_observer_; | 1289   scoped_ptr<MediaWebContentsObserver> media_web_contents_observer_; | 
| 1288 #endif | 1290 #endif | 
| 1289 | 1291 | 
|  | 1292   scoped_ptr<RenderWidgetHostInputEventRouter> rwh_input_event_router_; | 
|  | 1293 | 
| 1290   base::WeakPtrFactory<WebContentsImpl> loading_weak_factory_; | 1294   base::WeakPtrFactory<WebContentsImpl> loading_weak_factory_; | 
| 1291 | 1295 | 
| 1292   DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); | 1296   DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); | 
| 1293 }; | 1297 }; | 
| 1294 | 1298 | 
| 1295 // Dangerous methods which should never be made part of the public API, so we | 1299 // Dangerous methods which should never be made part of the public API, so we | 
| 1296 // grant their use only to an explicit friend list (c++ attorney/client idiom). | 1300 // grant their use only to an explicit friend list (c++ attorney/client idiom). | 
| 1297 class CONTENT_EXPORT WebContentsImpl::FriendZone { | 1301 class CONTENT_EXPORT WebContentsImpl::FriendZone { | 
| 1298  private: | 1302  private: | 
| 1299   friend class TestNavigationObserver; | 1303   friend class TestNavigationObserver; | 
| 1300   friend class WebContentsAddedObserver; | 1304   friend class WebContentsAddedObserver; | 
| 1301   friend class ContentBrowserSanityChecker; | 1305   friend class ContentBrowserSanityChecker; | 
| 1302 | 1306 | 
| 1303   FriendZone();  // Not instantiable. | 1307   FriendZone();  // Not instantiable. | 
| 1304 | 1308 | 
| 1305   // Adds/removes a callback called on creation of each new WebContents. | 1309   // Adds/removes a callback called on creation of each new WebContents. | 
| 1306   static void AddCreatedCallbackForTesting(const CreatedCallback& callback); | 1310   static void AddCreatedCallbackForTesting(const CreatedCallback& callback); | 
| 1307   static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); | 1311   static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); | 
| 1308 | 1312 | 
| 1309   DISALLOW_COPY_AND_ASSIGN(FriendZone); | 1313   DISALLOW_COPY_AND_ASSIGN(FriendZone); | 
| 1310 }; | 1314 }; | 
| 1311 | 1315 | 
| 1312 }  // namespace content | 1316 }  // namespace content | 
| 1313 | 1317 | 
| 1314 #endif  // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1318 #endif  // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 
| OLD | NEW | 
|---|