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

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

Issue 14267002: Change IsSwappedOut to const and do a more restrictive check. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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_RENDER_VIEW_HOST_MANAGER_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_RENDER_VIEW_HOST_MANAGER_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_RENDER_VIEW_HOST_MANAGER_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_RENDER_VIEW_HOST_MANAGER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 // NotificationObserver implementation. 214 // NotificationObserver implementation.
215 virtual void Observe(int type, 215 virtual void Observe(int type,
216 const NotificationSource& source, 216 const NotificationSource& source,
217 const NotificationDetails& details) OVERRIDE; 217 const NotificationDetails& details) OVERRIDE;
218 218
219 // Called when a RenderViewHost is about to be deleted. 219 // Called when a RenderViewHost is about to be deleted.
220 void RenderViewDeleted(RenderViewHost* rvh); 220 void RenderViewDeleted(RenderViewHost* rvh);
221 221
222 // Returns whether the given RenderViewHost is on the list of swapped out 222 // Returns whether the given RenderViewHost is on the list of swapped out
223 // RenderViewHosts. 223 // RenderViewHosts.
224 bool IsSwappedOut(RenderViewHost* rvh); 224 bool IsSwappedOut(RenderViewHost* rvh) const;
225 225
226 // Returns the swapped out RenderViewHost for the given SiteInstance, if any. 226 // Returns the swapped out RenderViewHost for the given SiteInstance, if any.
227 RenderViewHostImpl* GetSwappedOutRenderViewHost(SiteInstance* instance); 227 RenderViewHostImpl* GetSwappedOutRenderViewHost(SiteInstance* instance);
228 228
229 private: 229 private:
230 friend class RenderViewHostManagerTest; 230 friend class RenderViewHostManagerTest;
231 friend class TestWebContents; 231 friend class TestWebContents;
232 232
233 // Returns whether this tab should transition to a new renderer for 233 // Returns whether this tab should transition to a new renderer for
234 // cross-site URLs. Enabled unless we see the --process-per-tab command line 234 // 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
319 319
320 // The intersitial page currently shown if any, not own by this class 320 // The intersitial page currently shown if any, not own by this class
321 // (the InterstitialPage is self-owned, it deletes itself when hidden). 321 // (the InterstitialPage is self-owned, it deletes itself when hidden).
322 InterstitialPageImpl* interstitial_page_; 322 InterstitialPageImpl* interstitial_page_;
323 323
324 NotificationRegistrar registrar_; 324 NotificationRegistrar registrar_;
325 325
326 DISALLOW_COPY_AND_ASSIGN(RenderViewHostManager); 326 DISALLOW_COPY_AND_ASSIGN(RenderViewHostManager);
327 }; 327 };
328 328
329 } // namespace content 329 } // namespace content
330 330
331 #endif // CONTENT_BROWSER_WEB_CONTENTS_RENDER_VIEW_HOST_MANAGER_H_ 331 #endif // CONTENT_BROWSER_WEB_CONTENTS_RENDER_VIEW_HOST_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698