Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(100)

Side by Side Diff: content/renderer/render_frame_impl.h

Issue 1023783004: [DevTools] Move DevToolsAgent to RenderFrameImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cleanup Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 645 matching lines...) Expand 10 before | Expand all | Expand 10 after
732 #if defined(ENABLE_BROWSER_CDMS) 733 #if defined(ENABLE_BROWSER_CDMS)
733 RendererCdmManager* GetCdmManager(); 734 RendererCdmManager* GetCdmManager();
734 #endif 735 #endif
735 736
736 // Stores the WebLocalFrame we are associated with. This is null from the 737 // Stores the WebLocalFrame we are associated with. This is null from the
737 // constructor until SetWebFrame is called, and it is null after 738 // constructor until SetWebFrame is called, and it is null after
738 // frameDetached is called until destruction (which is asynchronous in the 739 // frameDetached is called until destruction (which is asynchronous in the
739 // case of the main frame, but not subframes). 740 // case of the main frame, but not subframes).
740 blink::WebLocalFrame* frame_; 741 blink::WebLocalFrame* frame_;
741 742
743 // Whether this frame is a root of a subtree, where all frames live
744 // in the same process.
nasko 2015/03/25 22:26:04 This comment is not quite correct. It is a local f
dgozman 2015/03/26 13:25:49 Updated comment. I also renamed this to |is_main_o
745 bool is_local_root_;
746
742 base::WeakPtr<RenderViewImpl> render_view_; 747 base::WeakPtr<RenderViewImpl> render_view_;
743 int routing_id_; 748 int routing_id_;
744 bool is_swapped_out_; 749 bool is_swapped_out_;
745 // RenderFrameProxy exists only when is_swapped_out_ is true. 750 // RenderFrameProxy exists only when is_swapped_out_ is true.
746 // TODO(nasko): This can be removed once we don't have a swapped out state on 751 // TODO(nasko): This can be removed once we don't have a swapped out state on
747 // RenderFrame. See https://crbug.com/357747. 752 // RenderFrame. See https://crbug.com/357747.
748 RenderFrameProxy* render_frame_proxy_; 753 RenderFrameProxy* render_frame_proxy_;
749 bool is_detaching_; 754 bool is_detaching_;
750 755
751 // If this frame was created to replace a proxy, this will store the routing 756 // If this frame was created to replace a proxy, this will store the routing
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
839 // RenderFrameObserver. 844 // RenderFrameObserver.
840 RendererCdmManager* cdm_manager_; 845 RendererCdmManager* cdm_manager_;
841 #endif 846 #endif
842 847
843 #if defined(VIDEO_HOLE) 848 #if defined(VIDEO_HOLE)
844 // Whether or not this RenderFrameImpl contains a media player. Used to 849 // Whether or not this RenderFrameImpl contains a media player. Used to
845 // register as an observer for video-hole-specific events. 850 // register as an observer for video-hole-specific events.
846 bool contains_media_player_; 851 bool contains_media_player_;
847 #endif 852 #endif
848 853
854 // The devtools agent for this frame; only created for local frame roots.
nasko 2015/03/25 22:26:04 nit: the frame is a local root, not that the local
dgozman 2015/03/26 13:25:49 Done.
855 DevToolsAgent* devtools_agent_;
856
849 // The geolocation dispatcher attached to this frame, lazily initialized. 857 // The geolocation dispatcher attached to this frame, lazily initialized.
850 GeolocationDispatcher* geolocation_dispatcher_; 858 GeolocationDispatcher* geolocation_dispatcher_;
851 859
852 // The push messaging dispatcher attached to this frame, lazily initialized. 860 // The push messaging dispatcher attached to this frame, lazily initialized.
853 PushMessagingDispatcher* push_messaging_dispatcher_; 861 PushMessagingDispatcher* push_messaging_dispatcher_;
854 862
855 // The presentation dispatcher implementation attached to this frame, lazily 863 // The presentation dispatcher implementation attached to this frame, lazily
856 // initialized. 864 // initialized.
857 PresentationDispatcher* presentation_dispatcher_; 865 PresentationDispatcher* presentation_dispatcher_;
858 866
(...skipping 22 matching lines...) Expand all
881 #endif 889 #endif
882 890
883 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; 891 base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
884 892
885 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 893 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
886 }; 894 };
887 895
888 } // namespace content 896 } // namespace content
889 897
890 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 898 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698