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

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

Issue 172063002: Unify frame IDs with RenderFrameHost routing IDs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix type Created 6 years, 10 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
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 821 matching lines...) Expand 10 before | Expand all | Expand 10 after
832 832
833 // Clear |render_view_host|'s PowerSaveBlockers. 833 // Clear |render_view_host|'s PowerSaveBlockers.
834 void ClearPowerSaveBlockers(RenderViewHost* render_view_host); 834 void ClearPowerSaveBlockers(RenderViewHost* render_view_host);
835 835
836 // Clear all PowerSaveBlockers, leave power_save_blocker_ empty. 836 // Clear all PowerSaveBlockers, leave power_save_blocker_ empty.
837 void ClearAllPowerSaveBlockers(); 837 void ClearAllPowerSaveBlockers();
838 838
839 // Helper function to invoke WebContentsDelegate::GetSizeForNewRenderView(). 839 // Helper function to invoke WebContentsDelegate::GetSizeForNewRenderView().
840 gfx::Size GetSizeForNewRenderView() const; 840 gfx::Size GetSizeForNewRenderView() const;
841 841
842 void OnFrameRemoved(RenderViewHostImpl* render_view_host, int64 frame_id); 842 void OnFrameRemoved(RenderViewHostImpl* render_view_host,
843 int frame_routing_id);
843 844
844 // Helper method that's called whenever |preferred_size_| or 845 // Helper method that's called whenever |preferred_size_| or
845 // |preferred_size_for_capture_| changes, to propagate the new value to the 846 // |preferred_size_for_capture_| changes, to propagate the new value to the
846 // |delegate_|. 847 // |delegate_|.
847 void OnPreferredSizeChanged(const gfx::Size& old_size); 848 void OnPreferredSizeChanged(const gfx::Size& old_size);
848 849
849 // Adds/removes a callback called on creation of each new WebContents. 850 // Adds/removes a callback called on creation of each new WebContents.
850 // Deprecated, about to remove. 851 // Deprecated, about to remove.
851 static void AddCreatedCallback(const CreatedCallback& callback); 852 static void AddCreatedCallback(const CreatedCallback& callback);
852 static void RemoveCreatedCallback(const CreatedCallback& callback); 853 static void RemoveCreatedCallback(const CreatedCallback& callback);
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
1060 // Whether this WebContents is responsible for displaying a subframe in a 1061 // Whether this WebContents is responsible for displaying a subframe in a
1061 // different process from its parent page. 1062 // different process from its parent page.
1062 bool is_subframe_; 1063 bool is_subframe_;
1063 1064
1064 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); 1065 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl);
1065 }; 1066 };
1066 1067
1067 } // namespace content 1068 } // namespace content
1068 1069
1069 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1070 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/site_per_process_browsertest.cc ('k') | content/browser/web_contents/web_contents_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698