OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "chrome/browser/browsing_instance.h" | 5 #include "chrome/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/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
10 #include "chrome/browser/renderer_host/site_instance.h" | 10 #include "chrome/browser/renderer_host/site_instance.h" |
11 #include "chrome/common/chrome_switches.h" | 11 #include "chrome/common/chrome_switches.h" |
12 #include "chrome/common/url_constants.h" | 12 #include "chrome/common/url_constants.h" |
13 | 13 |
14 /*static*/ | 14 /*static*/ |
15 BrowsingInstance::ProfileSiteInstanceMap | 15 BrowsingInstance::ProfileSiteInstanceMap |
16 BrowsingInstance::profile_site_instance_map_; | 16 BrowsingInstance::profile_site_instance_map_; |
17 | 17 |
18 BrowsingInstance::BrowsingInstance(Profile* profile) | 18 BrowsingInstance::BrowsingInstance(Profile* profile) |
19 : profile_(profile) { | 19 : profile_(profile) { |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 return true; | 147 return true; |
148 } | 148 } |
149 return false; | 149 return false; |
150 } | 150 } |
151 | 151 |
152 BrowsingInstance::~BrowsingInstance() { | 152 BrowsingInstance::~BrowsingInstance() { |
153 // We should only be deleted when all of the SiteInstances that refer to | 153 // We should only be deleted when all of the SiteInstances that refer to |
154 // us are gone. | 154 // us are gone. |
155 DCHECK(site_instance_map_.empty()); | 155 DCHECK(site_instance_map_.empty()); |
156 } | 156 } |
OLD | NEW |