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

Side by Side Diff: content/browser/tab_contents/render_view_host_manager.cc

Issue 9600036: Move Render(View|Widget)Host and associated classes to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Respond to review comments. Created 8 years, 9 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 #include "content/browser/tab_contents/render_view_host_manager.h" 5 #include "content/browser/tab_contents/render_view_host_manager.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 12 matching lines...) Expand all
23 #include "content/public/browser/render_view_host_delegate.h" 23 #include "content/public/browser/render_view_host_delegate.h"
24 #include "content/public/browser/web_contents_view.h" 24 #include "content/public/browser/web_contents_view.h"
25 #include "content/public/browser/web_ui_controller.h" 25 #include "content/public/browser/web_ui_controller.h"
26 #include "content/public/browser/web_ui_controller_factory.h" 26 #include "content/public/browser/web_ui_controller_factory.h"
27 #include "content/public/common/content_switches.h" 27 #include "content/public/common/content_switches.h"
28 #include "content/public/common/url_constants.h" 28 #include "content/public/common/url_constants.h"
29 29
30 using content::NavigationController; 30 using content::NavigationController;
31 using content::NavigationEntry; 31 using content::NavigationEntry;
32 using content::NavigationEntryImpl; 32 using content::NavigationEntryImpl;
33 using content::RenderViewHost;
34 using content::RenderViewHostImpl;
33 using content::RenderWidgetHostView; 35 using content::RenderWidgetHostView;
34 using content::RenderWidgetHostViewPort; 36 using content::RenderWidgetHostViewPort;
35 using content::SiteInstance; 37 using content::SiteInstance;
36 using content::WebUIControllerFactory; 38 using content::WebUIControllerFactory;
37 39
38 RenderViewHostManager::RenderViewHostManager( 40 RenderViewHostManager::RenderViewHostManager(
39 content::RenderViewHostDelegate* render_view_delegate, 41 content::RenderViewHostDelegate* render_view_delegate,
40 Delegate* delegate) 42 Delegate* delegate)
41 : delegate_(delegate), 43 : delegate_(delegate),
42 cross_navigation_pending_(false), 44 cross_navigation_pending_(false),
(...skipping 779 matching lines...) Expand 10 before | Expand all | Expand 10 after
822 } 824 }
823 } 825 }
824 826
825 bool RenderViewHostManager::IsSwappedOut(RenderViewHost* rvh) { 827 bool RenderViewHostManager::IsSwappedOut(RenderViewHost* rvh) {
826 if (!rvh->GetSiteInstance()) 828 if (!rvh->GetSiteInstance())
827 return false; 829 return false;
828 830
829 return swapped_out_hosts_.find(rvh->GetSiteInstance()->GetId()) != 831 return swapped_out_hosts_.find(rvh->GetSiteInstance()->GetId()) !=
830 swapped_out_hosts_.end(); 832 swapped_out_hosts_.end();
831 } 833 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698