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

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

Issue 7044013: Drop url_constants dependency in content/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: reinsert Created 9 years, 7 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 #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 "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "chrome/browser/profiles/profile.h" 9 #include "chrome/browser/profiles/profile.h"
10 #include "chrome/common/chrome_switches.h" 10 #include "chrome/common/chrome_switches.h"
11 #include "chrome/common/render_messages.h" 11 #include "chrome/common/render_messages.h"
12 #include "chrome/common/url_constants.h"
13 #include "content/browser/content_browser_client.h" 12 #include "content/browser/content_browser_client.h"
14 #include "content/browser/renderer_host/render_view_host.h" 13 #include "content/browser/renderer_host/render_view_host.h"
15 #include "content/browser/renderer_host/render_view_host_delegate.h" 14 #include "content/browser/renderer_host/render_view_host_delegate.h"
16 #include "content/browser/renderer_host/render_view_host_factory.h" 15 #include "content/browser/renderer_host/render_view_host_factory.h"
17 #include "content/browser/renderer_host/render_widget_host_view.h" 16 #include "content/browser/renderer_host/render_widget_host_view.h"
18 #include "content/browser/site_instance.h" 17 #include "content/browser/site_instance.h"
19 #include "content/browser/tab_contents/navigation_controller.h" 18 #include "content/browser/tab_contents/navigation_controller.h"
20 #include "content/browser/tab_contents/navigation_entry.h" 19 #include "content/browser/tab_contents/navigation_entry.h"
21 #include "content/browser/tab_contents/tab_contents_view.h" 20 #include "content/browser/tab_contents/tab_contents_view.h"
22 #include "content/browser/webui/web_ui.h" 21 #include "content/browser/webui/web_ui.h"
23 #include "content/browser/webui/web_ui_factory.h" 22 #include "content/browser/webui/web_ui_factory.h"
24 #include "content/common/content_client.h" 23 #include "content/common/content_client.h"
25 #include "content/common/notification_service.h" 24 #include "content/common/notification_service.h"
26 #include "content/common/notification_type.h" 25 #include "content/common/notification_type.h"
26 #include "content/common/url_constants.h"
27 #include "content/common/view_messages.h" 27 #include "content/common/view_messages.h"
28 28
29 namespace base { 29 namespace base {
30 class WaitableEvent; 30 class WaitableEvent;
31 } 31 }
32 32
33 RenderViewHostManager::RenderViewHostManager( 33 RenderViewHostManager::RenderViewHostManager(
34 RenderViewHostDelegate* render_view_delegate, 34 RenderViewHostDelegate* render_view_delegate,
35 Delegate* delegate) 35 Delegate* delegate)
36 : delegate_(delegate), 36 : delegate_(delegate),
(...skipping 817 matching lines...) Expand 10 before | Expand all | Expand 10 after
854 delegate_->NotifySwappedFromRenderManager(); 854 delegate_->NotifySwappedFromRenderManager();
855 } 855 }
856 856
857 bool RenderViewHostManager::IsSwappedOut(RenderViewHost* rvh) { 857 bool RenderViewHostManager::IsSwappedOut(RenderViewHost* rvh) {
858 if (!rvh->site_instance()) 858 if (!rvh->site_instance())
859 return false; 859 return false;
860 860
861 return swapped_out_hosts_.find(rvh->site_instance()->id()) != 861 return swapped_out_hosts_.find(rvh->site_instance()->id()) !=
862 swapped_out_hosts_.end(); 862 swapped_out_hosts_.end();
863 } 863 }
OLDNEW
« no previous file with comments | « content/browser/tab_contents/navigation_entry.cc ('k') | content/browser/tab_contents/tab_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698