| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_BROWSER_BROWSING_INSTANCE_H_ | 5 #ifndef CHROME_BROWSER_BROWSING_INSTANCE_H_ |
| 6 #define CHROME_BROWSER_BROWSING_INSTANCE_H_ | 6 #define CHROME_BROWSER_BROWSING_INSTANCE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/hash_tables.h" | 9 #include "base/hash_tables.h" |
| 10 #include "base/ref_counted.h" | 10 #include "base/ref_counted.h" |
| 11 #include "chrome/browser/profile.h" | 11 #include "chrome/browser/profiles/profile.h" |
| 12 | 12 |
| 13 class GURL; | 13 class GURL; |
| 14 class SiteInstance; | 14 class SiteInstance; |
| 15 | 15 |
| 16 /////////////////////////////////////////////////////////////////////////////// | 16 /////////////////////////////////////////////////////////////////////////////// |
| 17 // | 17 // |
| 18 // BrowsingInstance class | 18 // BrowsingInstance class |
| 19 // | 19 // |
| 20 // A browsing instance corresponds to the notion of a "unit of related browsing | 20 // A browsing instance corresponds to the notion of a "unit of related browsing |
| 21 // contexts" in the HTML 5 spec. Intuitively, it represents a collection of | 21 // contexts" in the HTML 5 spec. Intuitively, it represents a collection of |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 // This field is only used if we are not using process-per-site. | 126 // This field is only used if we are not using process-per-site. |
| 127 SiteInstanceMap site_instance_map_; | 127 SiteInstanceMap site_instance_map_; |
| 128 | 128 |
| 129 // Global map of Profile to SiteInstanceMap, for process-per-site. | 129 // Global map of Profile to SiteInstanceMap, for process-per-site. |
| 130 static ProfileSiteInstanceMap profile_site_instance_map_; | 130 static ProfileSiteInstanceMap profile_site_instance_map_; |
| 131 | 131 |
| 132 DISALLOW_COPY_AND_ASSIGN(BrowsingInstance); | 132 DISALLOW_COPY_AND_ASSIGN(BrowsingInstance); |
| 133 }; | 133 }; |
| 134 | 134 |
| 135 #endif // CHROME_BROWSER_BROWSING_INSTANCE_H_ | 135 #endif // CHROME_BROWSER_BROWSING_INSTANCE_H_ |
| OLD | NEW |