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

Side by Side Diff: chrome/browser/tab_contents/tab_contents.h

Issue 208040: Remove all direct references to NavigationController from the RenderViewHostM... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 3 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_
6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ 6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_
7 7
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 9
10 #include <map> 10 #include <map>
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 class DOMUIContents; 75 class DOMUIContents;
76 class DownloadItem; 76 class DownloadItem;
77 class LoadNotificationDetails; 77 class LoadNotificationDetails;
78 class OmniboxSearchHint; 78 class OmniboxSearchHint;
79 class PageAction; 79 class PageAction;
80 class PasswordManager; 80 class PasswordManager;
81 class PluginInstaller; 81 class PluginInstaller;
82 class Profile; 82 class Profile;
83 struct RendererPreferences; 83 struct RendererPreferences;
84 class RenderViewHost; 84 class RenderViewHost;
85 struct RenderViewHostSwitchedDetails;
85 class TabContentsDelegate; 86 class TabContentsDelegate;
86 class TabContentsFactory; 87 class TabContentsFactory;
87 class SkBitmap; 88 class SkBitmap;
88 class SiteInstance; 89 class SiteInstance;
89 class TabContentsView; 90 class TabContentsView;
90 struct ThumbnailScore; 91 struct ThumbnailScore;
91 struct ViewHostMsg_FrameNavigate_Params; 92 struct ViewHostMsg_FrameNavigate_Params;
92 struct ViewHostMsg_DidPrintPage_Params; 93 struct ViewHostMsg_DidPrintPage_Params;
93 class TabContents; 94 class TabContents;
94 95
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 // Returns the currently active RenderWidgetHostView. This may change over 167 // Returns the currently active RenderWidgetHostView. This may change over
167 // time and can be NULL (during setup and teardown). 168 // time and can be NULL (during setup and teardown).
168 RenderWidgetHostView* render_widget_host_view() const { 169 RenderWidgetHostView* render_widget_host_view() const {
169 return render_manager_.current_view(); 170 return render_manager_.current_view();
170 } 171 }
171 172
172 // The TabContentsView will never change and is guaranteed non-NULL. 173 // The TabContentsView will never change and is guaranteed non-NULL.
173 TabContentsView* view() const { 174 TabContentsView* view() const {
174 return view_.get(); 175 return view_.get();
175 } 176 }
176 177 void NotifyRenderViewHostSwitchedFromRenderManager(
178 RenderViewHostSwitchedDetails*details);
177 #ifdef UNIT_TEST 179 #ifdef UNIT_TEST
178 // Expose the render manager for testing. 180 // Expose the render manager for testing.
179 RenderViewHostManager* render_manager() { return &render_manager_; } 181 RenderViewHostManager* render_manager() { return &render_manager_; }
180 #endif 182 #endif
181 183
182 // Tab navigation state ------------------------------------------------------ 184 // Tab navigation state ------------------------------------------------------
183 185
184 // Returns the current navigation properties, which if a navigation is 186 // Returns the current navigation properties, which if a navigation is
185 // pending may be provisional (e.g., the navigation could result in a 187 // pending may be provisional (e.g., the navigation could result in a
186 // download, in which case the URL would revert to what it was previously). 188 // download, in which case the URL would revert to what it was previously).
(...skipping 726 matching lines...) Expand 10 before | Expand all | Expand 10 after
913 bool* proceed_to_fire_unload); 915 bool* proceed_to_fire_unload);
914 virtual void DidStartLoadingFromRenderManager( 916 virtual void DidStartLoadingFromRenderManager(
915 RenderViewHost* render_view_host) { 917 RenderViewHost* render_view_host) {
916 DidStartLoading(render_view_host); 918 DidStartLoading(render_view_host);
917 } 919 }
918 virtual void RenderViewGoneFromRenderManager( 920 virtual void RenderViewGoneFromRenderManager(
919 RenderViewHost* render_view_host) { 921 RenderViewHost* render_view_host) {
920 RenderViewGone(render_view_host); 922 RenderViewGone(render_view_host);
921 } 923 }
922 virtual void UpdateRenderViewSizeForRenderManager(); 924 virtual void UpdateRenderViewSizeForRenderManager();
925
926 virtual Profile* GetProfileForRenderManager()const {
927 return profile();
928 }
929
923 virtual void NotifySwappedFromRenderManager() { 930 virtual void NotifySwappedFromRenderManager() {
924 NotifySwapped(); 931 NotifySwapped();
925 } 932 }
933 virtual NavigationEntry* GetEntryAtOffsetForRenderManager(int offset);
926 virtual NavigationController& GetControllerForRenderManager() { 934 virtual NavigationController& GetControllerForRenderManager() {
927 return controller(); 935 return controller();
928 } 936 }
929 virtual DOMUI* CreateDOMUIForRenderManager(const GURL& url); 937 virtual DOMUI* CreateDOMUIForRenderManager(const GURL& url);
930 virtual NavigationEntry* GetLastCommittedNavigationEntryForRenderManager(); 938 virtual NavigationEntry* GetLastCommittedNavigationEntryForRenderManager();
931 939
932 // Initializes the given renderer if necessary and creates the view ID 940 // Initializes the given renderer if necessary and creates the view ID
933 // corresponding to this view host. If this method is not called and the 941 // corresponding to this view host. If this method is not called and the
934 // process is not shared, then the TabContents will act as though the renderer 942 // process is not shared, then the TabContents will act as though the renderer
935 // is not running (i.e., it will render "sad tab"). This method is 943 // is not running (i.e., it will render "sad tab"). This method is
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
1137 // If this tab was created from a renderer using window.open, this will be 1145 // If this tab was created from a renderer using window.open, this will be
1138 // non-NULL and represent the DOMUI of the opening renderer. 1146 // non-NULL and represent the DOMUI of the opening renderer.
1139 DOMUITypeID opener_dom_ui_type_; 1147 DOMUITypeID opener_dom_ui_type_;
1140 1148
1141 // --------------------------------------------------------------------------- 1149 // ---------------------------------------------------------------------------
1142 1150
1143 DISALLOW_COPY_AND_ASSIGN(TabContents); 1151 DISALLOW_COPY_AND_ASSIGN(TabContents);
1144 }; 1152 };
1145 1153
1146 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ 1154 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/render_view_host_manager.cc ('k') | chrome/browser/tab_contents/tab_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698