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

Side by Side Diff: content/browser/tab_contents/render_view_host_manager.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
« no previous file with comments | « no previous file | content/browser/tab_contents/render_view_host_manager.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) 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_RENDER_VIEW_HOST_MANAGER_H_ 5 #ifndef CONTENT_BROWSER_TAB_CONTENTS_RENDER_VIEW_HOST_MANAGER_H_
6 #define CONTENT_BROWSER_TAB_CONTENTS_RENDER_VIEW_HOST_MANAGER_H_ 6 #define CONTENT_BROWSER_TAB_CONTENTS_RENDER_VIEW_HOST_MANAGER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 virtual void OnCrossSiteNavigationCanceled(); 178 virtual void OnCrossSiteNavigationCanceled();
179 179
180 // NotificationObserver implementation. 180 // NotificationObserver implementation.
181 virtual void Observe(int type, 181 virtual void Observe(int type,
182 const NotificationSource& source, 182 const NotificationSource& source,
183 const NotificationDetails& details); 183 const NotificationDetails& details);
184 184
185 // Called when a RenderViewHost is about to be deleted. 185 // Called when a RenderViewHost is about to be deleted.
186 void RenderViewDeleted(RenderViewHost* rvh); 186 void RenderViewDeleted(RenderViewHost* rvh);
187 187
188 // Allows a caller to swap in a provided RenderViewHost to replace the
189 // current RenderViewHost. The current RVH will be shutdown and ultimately
190 // deleted.
191 void SwapInRenderViewHost(RenderViewHost* rvh);
192
193 // Returns whether the given RenderViewHost is on the list of swapped out 188 // Returns whether the given RenderViewHost is on the list of swapped out
194 // RenderViewHosts. 189 // RenderViewHosts.
195 bool IsSwappedOut(RenderViewHost* rvh); 190 bool IsSwappedOut(RenderViewHost* rvh);
196 191
197 private: 192 private:
198 friend class TestTabContents; 193 friend class TestTabContents;
199 friend class RenderViewHostManagerTest; 194 friend class RenderViewHostManagerTest;
200 195
201 // Returns whether this tab should transition to a new renderer for 196 // Returns whether this tab should transition to a new renderer for
202 // cross-site URLs. Enabled unless we see the --process-per-tab command line 197 // cross-site URLs. Enabled unless we see the --process-per-tab command line
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 }; 282 };
288 283
289 // The "details" for a NOTIFY_RENDER_VIEW_HOST_CHANGED notification. The old 284 // The "details" for a NOTIFY_RENDER_VIEW_HOST_CHANGED notification. The old
290 // host can be NULL when the first RenderViewHost is set. 285 // host can be NULL when the first RenderViewHost is set.
291 struct RenderViewHostSwitchedDetails { 286 struct RenderViewHostSwitchedDetails {
292 RenderViewHost* old_host; 287 RenderViewHost* old_host;
293 RenderViewHost* new_host; 288 RenderViewHost* new_host;
294 }; 289 };
295 290
296 #endif // CONTENT_BROWSER_TAB_CONTENTS_RENDER_VIEW_HOST_MANAGER_H_ 291 #endif // CONTENT_BROWSER_TAB_CONTENTS_RENDER_VIEW_HOST_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/tab_contents/render_view_host_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698