OLD | NEW |
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 #ifndef CONTENT_BROWSER_BROWSING_INSTANCE_H_ | 5 #ifndef CONTENT_BROWSER_BROWSING_INSTANCE_H_ |
6 #define CONTENT_BROWSER_BROWSING_INSTANCE_H_ | 6 #define CONTENT_BROWSER_BROWSING_INSTANCE_H_ |
7 #pragma once | |
8 | 7 |
9 #include "base/hash_tables.h" | 8 #include "base/hash_tables.h" |
10 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
11 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
12 #include "content/common/content_export.h" | 11 #include "content/common/content_export.h" |
13 #include "content/public/browser/browser_context.h" | 12 #include "content/public/browser/browser_context.h" |
14 | 13 |
15 class GURL; | 14 class GURL; |
16 class SiteInstanceImpl; | 15 class SiteInstanceImpl; |
17 | 16 |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 // site. The site string should be the possibly_invalid_spec() of a GURL | 100 // site. The site string should be the possibly_invalid_spec() of a GURL |
102 // obtained with SiteInstanceImpl::GetSiteForURL. Note that this map may not | 101 // obtained with SiteInstanceImpl::GetSiteForURL. Note that this map may not |
103 // contain every active SiteInstance, because a race exists where two | 102 // contain every active SiteInstance, because a race exists where two |
104 // SiteInstances can be assigned to the same site. This is ok in rare cases. | 103 // SiteInstances can be assigned to the same site. This is ok in rare cases. |
105 SiteInstanceMap site_instance_map_; | 104 SiteInstanceMap site_instance_map_; |
106 | 105 |
107 DISALLOW_COPY_AND_ASSIGN(BrowsingInstance); | 106 DISALLOW_COPY_AND_ASSIGN(BrowsingInstance); |
108 }; | 107 }; |
109 | 108 |
110 #endif // CONTENT_BROWSER_BROWSING_INSTANCE_H_ | 109 #endif // CONTENT_BROWSER_BROWSING_INSTANCE_H_ |
OLD | NEW |