OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_SITE_DETAILS_H_ | 5 #ifndef CHROME_BROWSER_SITE_DETAILS_H_ |
6 #define CHROME_BROWSER_SITE_DETAILS_H_ | 6 #define CHROME_BROWSER_SITE_DETAILS_H_ |
7 | 7 |
| 8 #include <stdint.h> |
| 9 |
8 #include "base/containers/hash_tables.h" | 10 #include "base/containers/hash_tables.h" |
| 11 #include "base/macros.h" |
9 #include "content/public/browser/browser_context.h" | 12 #include "content/public/browser/browser_context.h" |
10 #include "content/public/browser/site_instance.h" | 13 #include "content/public/browser/site_instance.h" |
11 #include "content/public/browser/web_contents.h" | 14 #include "content/public/browser/web_contents.h" |
12 | 15 |
13 // Maps an ID representing each BrowsingInstance to a set of site URLs. | 16 // Maps an ID representing each BrowsingInstance to a set of site URLs. |
14 using BrowsingInstanceSiteMap = base::hash_map<int32, std::set<GURL>>; | 17 using BrowsingInstanceSiteMap = base::hash_map<int32_t, std::set<GURL>>; |
15 | 18 |
16 // Maps a SiteInstance to a set of all SiteInstances in the same | 19 // Maps a SiteInstance to a set of all SiteInstances in the same |
17 // BrowsingInstance. | 20 // BrowsingInstance. |
18 using SiteInstanceMap = | 21 using SiteInstanceMap = |
19 base::hash_map<content::SiteInstance*, std::set<content::SiteInstance*>>; | 22 base::hash_map<content::SiteInstance*, std::set<content::SiteInstance*>>; |
20 | 23 |
21 // This enum represents various alternative process model policies that we want | 24 // This enum represents various alternative process model policies that we want |
22 // to evaluate. We'll estimate the process cost of each scenario. | 25 // to evaluate. We'll estimate the process cost of each scenario. |
23 enum IsolationScenarioType { | 26 enum IsolationScenarioType { |
24 ISOLATE_NOTHING, | 27 ISOLATE_NOTHING, |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 | 79 |
77 private: | 80 private: |
78 // Never needs to be constructed. | 81 // Never needs to be constructed. |
79 SiteDetails(); | 82 SiteDetails(); |
80 ~SiteDetails(); | 83 ~SiteDetails(); |
81 | 84 |
82 DISALLOW_COPY_AND_ASSIGN(SiteDetails); | 85 DISALLOW_COPY_AND_ASSIGN(SiteDetails); |
83 }; | 86 }; |
84 | 87 |
85 #endif // CHROME_BROWSER_SITE_DETAILS_H_ | 88 #endif // CHROME_BROWSER_SITE_DETAILS_H_ |
OLD | NEW |