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

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

Issue 8081019: Remove unused RenderViewHostManager::SwapInRenderViewHost() and TabContents::SwapInRenderViewHost() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 9 years, 2 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_TAB_CONTENTS_TAB_CONTENTS_H_ 5 #ifndef CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_
6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ 6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_
7 #pragma once 7 #pragma once
8 8
9 #include <deque> 9 #include <deque>
10 #include <map> 10 #include <map>
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 // fired. The value of this changes over time. For example, if true and the 244 // fired. The value of this changes over time. For example, if true and the
245 // before unload listener is executed and allows the user to exit, then this 245 // before unload listener is executed and allows the user to exit, then this
246 // returns false. 246 // returns false.
247 bool NeedToFireBeforeUnload(); 247 bool NeedToFireBeforeUnload();
248 248
249 // Expose the render manager for testing. 249 // Expose the render manager for testing.
250 RenderViewHostManager* render_manager_for_testing() { 250 RenderViewHostManager* render_manager_for_testing() {
251 return &render_manager_; 251 return &render_manager_;
252 } 252 }
253 253
254 // In the underlying RenderViewHostManager, swaps in the provided
255 // RenderViewHost to replace the current RenderViewHost. The current RVH
256 // will be shutdown and ultimately deleted.
257 void SwapInRenderViewHost(RenderViewHost* rvh);
258
259 // Commands ------------------------------------------------------------------ 254 // Commands ------------------------------------------------------------------
260 255
261 // Implementation of PageNavigator. 256 // Implementation of PageNavigator.
262 257
263 // Deprecated. Please use the one-argument variant instead. 258 // Deprecated. Please use the one-argument variant instead.
264 // TODO(adriansc): Remove this method once refactoring changed all call sites. 259 // TODO(adriansc): Remove this method once refactoring changed all call sites.
265 virtual TabContents* OpenURL(const GURL& url, 260 virtual TabContents* OpenURL(const GURL& url,
266 const GURL& referrer, 261 const GURL& referrer,
267 WindowOpenDisposition disposition, 262 WindowOpenDisposition disposition,
268 PageTransition::Type transition) OVERRIDE; 263 PageTransition::Type transition) OVERRIDE;
(...skipping 586 matching lines...) Expand 10 before | Expand all | Expand 10 after
855 ObserverList<TabContentsObserver> observers_; 850 ObserverList<TabContentsObserver> observers_;
856 851
857 // Content restrictions, used to disable print/copy etc based on content's 852 // Content restrictions, used to disable print/copy etc based on content's
858 // (full-page plugins for now only) permissions. 853 // (full-page plugins for now only) permissions.
859 int content_restrictions_; 854 int content_restrictions_;
860 855
861 DISALLOW_COPY_AND_ASSIGN(TabContents); 856 DISALLOW_COPY_AND_ASSIGN(TabContents);
862 }; 857 };
863 858
864 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ 859 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_
OLDNEW
« no previous file with comments | « content/browser/tab_contents/render_view_host_manager.cc ('k') | content/browser/tab_contents/tab_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698