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

Side by Side Diff: content/browser/browsing_instance.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
« no previous file with comments | « content/browser/DEPS ('k') | content/browser/child_process_security_policy.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 #include "content/browser/browsing_instance.h" 5 #include "content/browser/browsing_instance.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/url_constants.h"
12 #include "content/browser/content_browser_client.h" 11 #include "content/browser/content_browser_client.h"
13 #include "content/browser/site_instance.h" 12 #include "content/browser/site_instance.h"
14 #include "content/browser/webui/web_ui_factory.h" 13 #include "content/browser/webui/web_ui_factory.h"
15 #include "content/common/content_client.h" 14 #include "content/common/content_client.h"
15 #include "content/common/url_constants.h"
16 16
17 // static 17 // static
18 BrowsingInstance::ProfileSiteInstanceMap 18 BrowsingInstance::ProfileSiteInstanceMap
19 BrowsingInstance::profile_site_instance_map_; 19 BrowsingInstance::profile_site_instance_map_;
20 20
21 BrowsingInstance::BrowsingInstance(Profile* profile) 21 BrowsingInstance::BrowsingInstance(Profile* profile)
22 : profile_(profile) { 22 : profile_(profile) {
23 } 23 }
24 24
25 bool BrowsingInstance::ShouldUseProcessPerSite(const GURL& url) { 25 bool BrowsingInstance::ShouldUseProcessPerSite(const GURL& url) {
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 return true; 143 return true;
144 } 144 }
145 return false; 145 return false;
146 } 146 }
147 147
148 BrowsingInstance::~BrowsingInstance() { 148 BrowsingInstance::~BrowsingInstance() {
149 // We should only be deleted when all of the SiteInstances that refer to 149 // We should only be deleted when all of the SiteInstances that refer to
150 // us are gone. 150 // us are gone.
151 DCHECK(site_instance_map_.empty()); 151 DCHECK(site_instance_map_.empty());
152 } 152 }
OLDNEW
« no previous file with comments | « content/browser/DEPS ('k') | content/browser/child_process_security_policy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698