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

Side by Side Diff: content/browser/web_contents/web_contents_impl.h

Issue 264773002: Start moving WebUserMediaClient on the chromium side to be per frame instead of view. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | content/browser/web_contents/web_contents_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 817 matching lines...) Expand 10 before | Expand all | Expand 10 after
828 828
829 // TODO(creis): This should take in a FrameTreeNode to know which node's 829 // TODO(creis): This should take in a FrameTreeNode to know which node's
830 // render manager to return. For now, we just return the root's. 830 // render manager to return. For now, we just return the root's.
831 RenderFrameHostManager* GetRenderManager() const; 831 RenderFrameHostManager* GetRenderManager() const;
832 832
833 RenderViewHostImpl* GetRenderViewHostImpl(); 833 RenderViewHostImpl* GetRenderViewHostImpl();
834 834
835 // Removes browser plugin embedder if there is one. 835 // Removes browser plugin embedder if there is one.
836 void RemoveBrowserPluginEmbedder(); 836 void RemoveBrowserPluginEmbedder();
837 837
838 // Clear |render_view_host|'s PowerSaveBlockers. 838 // Clear |render_frame_host|'s PowerSaveBlockers.
839 void ClearPowerSaveBlockers(RenderViewHost* render_view_host); 839 void ClearPowerSaveBlockers(RenderFrameHost* render_frame_host);
840 840
841 // Clear all PowerSaveBlockers, leave power_save_blocker_ empty. 841 // Clear all PowerSaveBlockers, leave power_save_blocker_ empty.
842 void ClearAllPowerSaveBlockers(); 842 void ClearAllPowerSaveBlockers();
843 843
844 // Helper function to invoke WebContentsDelegate::GetSizeForNewRenderView(). 844 // Helper function to invoke WebContentsDelegate::GetSizeForNewRenderView().
845 gfx::Size GetSizeForNewRenderView() const; 845 gfx::Size GetSizeForNewRenderView() const;
846 846
847 void OnFrameRemoved(RenderViewHostImpl* render_view_host, 847 void OnFrameRemoved(RenderViewHostImpl* render_view_host,
848 int frame_routing_id); 848 int frame_routing_id);
849 849
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
899 // True if this tab was opened by another tab. This is not unset if the opener 899 // True if this tab was opened by another tab. This is not unset if the opener
900 // is closed. 900 // is closed.
901 bool created_with_opener_; 901 bool created_with_opener_;
902 902
903 #if defined(OS_WIN) 903 #if defined(OS_WIN)
904 gfx::NativeViewAccessible accessible_parent_; 904 gfx::NativeViewAccessible accessible_parent_;
905 #endif 905 #endif
906 906
907 // Helper classes ------------------------------------------------------------ 907 // Helper classes ------------------------------------------------------------
908 908
909 // Maps the RenderViewHost to its media_player_cookie and PowerSaveBlocker 909 // Maps the RenderFrameHost to its media_player_cookie and PowerSaveBlocker
910 // pairs. Key is the RenderViewHost, value is the map which maps player_cookie 910 // pairs. Key is the RenderFrameHost, value is the map which maps
911 // on to PowerSaveBlocker. 911 // player_cookie on to PowerSaveBlocker.
912 typedef std::map<RenderViewHost*, std::map<int64, PowerSaveBlocker*> > 912 typedef std::map<RenderFrameHost*, std::map<int64, PowerSaveBlocker*> >
913 PowerSaveBlockerMap; 913 PowerSaveBlockerMap;
914 PowerSaveBlockerMap power_save_blockers_; 914 PowerSaveBlockerMap power_save_blockers_;
915 915
916 // Manages the frame tree of the page and process swaps in each node. 916 // Manages the frame tree of the page and process swaps in each node.
917 FrameTree frame_tree_; 917 FrameTree frame_tree_;
918 918
919 #if defined(OS_ANDROID) 919 #if defined(OS_ANDROID)
920 // Manages injecting Java objects into all RenderViewHosts associated with 920 // Manages injecting Java objects into all RenderViewHosts associated with
921 // this WebContentsImpl. 921 // this WebContentsImpl.
922 scoped_ptr<JavaBridgeDispatcherHostManager> 922 scoped_ptr<JavaBridgeDispatcherHostManager>
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
1097 1097
1098 // Whether the last JavaScript dialog shown was suppressed. Used for testing. 1098 // Whether the last JavaScript dialog shown was suppressed. Used for testing.
1099 bool last_dialog_suppressed_; 1099 bool last_dialog_suppressed_;
1100 1100
1101 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); 1101 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl);
1102 }; 1102 };
1103 1103
1104 } // namespace content 1104 } // namespace content
1105 1105
1106 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1106 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/web_contents/web_contents_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698