| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_RENDERER_RENDER_FRAME_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
| 6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 | 67 |
| 68 namespace media { | 68 namespace media { |
| 69 class MediaPermission; | 69 class MediaPermission; |
| 70 class WebEncryptedMediaClientImpl; | 70 class WebEncryptedMediaClientImpl; |
| 71 } | 71 } |
| 72 | 72 |
| 73 namespace content { | 73 namespace content { |
| 74 | 74 |
| 75 class ChildFrameCompositingHelper; | 75 class ChildFrameCompositingHelper; |
| 76 class CompositorDependencies; | 76 class CompositorDependencies; |
| 77 class DevToolsAgent; |
| 77 class ExternalPopupMenu; | 78 class ExternalPopupMenu; |
| 78 class GeolocationDispatcher; | 79 class GeolocationDispatcher; |
| 79 class ManifestManager; | 80 class ManifestManager; |
| 80 class MediaStreamDispatcher; | 81 class MediaStreamDispatcher; |
| 81 class MediaStreamRendererFactory; | 82 class MediaStreamRendererFactory; |
| 82 class MediaPermissionDispatcher; | 83 class MediaPermissionDispatcher; |
| 83 class MidiDispatcher; | 84 class MidiDispatcher; |
| 84 class NotificationPermissionDispatcher; | 85 class NotificationPermissionDispatcher; |
| 85 class PageState; | 86 class PageState; |
| 86 class PepperPluginInstanceImpl; | 87 class PepperPluginInstanceImpl; |
| (...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 534 // TODO(nasko): Remove this method once swapped out state is no longer used. | 535 // TODO(nasko): Remove this method once swapped out state is no longer used. |
| 535 void NavigateToSwappedOutURL(); | 536 void NavigateToSwappedOutURL(); |
| 536 | 537 |
| 537 // Binds this render frame's service registry. | 538 // Binds this render frame's service registry. |
| 538 void BindServiceRegistry( | 539 void BindServiceRegistry( |
| 539 mojo::InterfaceRequest<mojo::ServiceProvider> services, | 540 mojo::InterfaceRequest<mojo::ServiceProvider> services, |
| 540 mojo::ServiceProviderPtr exposed_services); | 541 mojo::ServiceProviderPtr exposed_services); |
| 541 | 542 |
| 542 ManifestManager* manifest_manager(); | 543 ManifestManager* manifest_manager(); |
| 543 | 544 |
| 545 void CreateDevToolsAgent(); |
| 546 |
| 544 protected: | 547 protected: |
| 545 RenderFrameImpl(RenderViewImpl* render_view, int32 routing_id); | 548 RenderFrameImpl(RenderViewImpl* render_view, int32 routing_id); |
| 546 | 549 |
| 547 private: | 550 private: |
| 548 friend class RenderFrameObserver; | 551 friend class RenderFrameObserver; |
| 549 friend class RendererAccessibilityTest; | 552 friend class RendererAccessibilityTest; |
| 550 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuDisplayNoneTest, SelectItem); | 553 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuDisplayNoneTest, SelectItem); |
| 551 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuRemoveTest, RemoveOnChange); | 554 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuRemoveTest, RemoveOnChange); |
| 552 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuTest, NormalCase); | 555 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuTest, NormalCase); |
| 553 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuTest, ShowPopupThenNavigate); | 556 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuTest, ShowPopupThenNavigate); |
| 554 FRIEND_TEST_ALL_PREFIXES(RendererAccessibilityTest, | 557 FRIEND_TEST_ALL_PREFIXES(RendererAccessibilityTest, |
| 555 AccessibilityMessagesQueueWhileSwappedOut); | 558 AccessibilityMessagesQueueWhileSwappedOut); |
| 556 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, | 559 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, |
| 557 OnExtendSelectionAndDelete); | 560 OnExtendSelectionAndDelete); |
| 558 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, ReloadWhileSwappedOut); | 561 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, ReloadWhileSwappedOut); |
| 559 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, SendSwapOutACK); | 562 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, SendSwapOutACK); |
| 560 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OriginReplicationForSwapOut); | 563 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OriginReplicationForSwapOut); |
| 561 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, | 564 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, |
| 562 SetEditableSelectionAndComposition); | 565 SetEditableSelectionAndComposition); |
| 563 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, | 566 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, |
| 564 OnSetAccessibilityMode); | 567 OnSetAccessibilityMode); |
| 565 | 568 |
| 566 typedef std::map<GURL, double> HostZoomLevels; | 569 typedef std::map<GURL, double> HostZoomLevels; |
| 567 | 570 |
| 568 // Functions to add and remove observers for this object. | 571 // Functions to add and remove observers for this object. |
| 569 void AddObserver(RenderFrameObserver* observer); | 572 void AddObserver(RenderFrameObserver* observer); |
| 570 void RemoveObserver(RenderFrameObserver* observer); | 573 void RemoveObserver(RenderFrameObserver* observer); |
| 571 | 574 |
| 575 // Returns whether this frame is a root of a frame subtree, where all the |
| 576 // frames live in the same process. |
| 577 bool IsLocalRoot(); |
| 578 |
| 572 // Builds and sends DidCommitProvisionalLoad to the host. | 579 // Builds and sends DidCommitProvisionalLoad to the host. |
| 573 void SendDidCommitProvisionalLoad(blink::WebFrame* frame, | 580 void SendDidCommitProvisionalLoad(blink::WebFrame* frame, |
| 574 blink::WebHistoryCommitType commit_type); | 581 blink::WebHistoryCommitType commit_type); |
| 575 | 582 |
| 576 // IPC message handlers ------------------------------------------------------ | 583 // IPC message handlers ------------------------------------------------------ |
| 577 // | 584 // |
| 578 // The documentation for these functions should be in | 585 // The documentation for these functions should be in |
| 579 // content/common/*_messages.h for the message that the function is handling. | 586 // content/common/*_messages.h for the message that the function is handling. |
| 580 void OnBeforeUnload(); | 587 void OnBeforeUnload(); |
| 581 void OnSwapOut(int proxy_routing_id, | 588 void OnSwapOut(int proxy_routing_id, |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 839 // RenderFrameObserver. | 846 // RenderFrameObserver. |
| 840 RendererCdmManager* cdm_manager_; | 847 RendererCdmManager* cdm_manager_; |
| 841 #endif | 848 #endif |
| 842 | 849 |
| 843 #if defined(VIDEO_HOLE) | 850 #if defined(VIDEO_HOLE) |
| 844 // Whether or not this RenderFrameImpl contains a media player. Used to | 851 // Whether or not this RenderFrameImpl contains a media player. Used to |
| 845 // register as an observer for video-hole-specific events. | 852 // register as an observer for video-hole-specific events. |
| 846 bool contains_media_player_; | 853 bool contains_media_player_; |
| 847 #endif | 854 #endif |
| 848 | 855 |
| 856 // The devtools agent for this frame; only created for local frame roots. |
| 857 DevToolsAgent* devtools_agent_; |
| 858 |
| 849 // The geolocation dispatcher attached to this frame, lazily initialized. | 859 // The geolocation dispatcher attached to this frame, lazily initialized. |
| 850 GeolocationDispatcher* geolocation_dispatcher_; | 860 GeolocationDispatcher* geolocation_dispatcher_; |
| 851 | 861 |
| 852 // The push messaging dispatcher attached to this frame, lazily initialized. | 862 // The push messaging dispatcher attached to this frame, lazily initialized. |
| 853 PushMessagingDispatcher* push_messaging_dispatcher_; | 863 PushMessagingDispatcher* push_messaging_dispatcher_; |
| 854 | 864 |
| 855 // The presentation dispatcher implementation attached to this frame, lazily | 865 // The presentation dispatcher implementation attached to this frame, lazily |
| 856 // initialized. | 866 // initialized. |
| 857 PresentationDispatcher* presentation_dispatcher_; | 867 PresentationDispatcher* presentation_dispatcher_; |
| 858 | 868 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 881 #endif | 891 #endif |
| 882 | 892 |
| 883 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 893 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
| 884 | 894 |
| 885 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 895 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
| 886 }; | 896 }; |
| 887 | 897 |
| 888 } // namespace content | 898 } // namespace content |
| 889 | 899 |
| 890 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 900 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
| OLD | NEW |