| 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> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/containers/hash_tables.h" | 10 #include "base/containers/hash_tables.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 }; | 36 }; |
| 37 using BrowsingInstanceMap = | 37 using BrowsingInstanceMap = |
| 38 base::hash_map<content::SiteInstance*, BrowsingInstanceInfo>; | 38 base::hash_map<content::SiteInstance*, BrowsingInstanceInfo>; |
| 39 | 39 |
| 40 // This enum represents various alternative process model policies that we want | 40 // This enum represents various alternative process model policies that we want |
| 41 // to evaluate. We'll estimate the process cost of each scenario. | 41 // to evaluate. We'll estimate the process cost of each scenario. |
| 42 enum IsolationScenarioType { | 42 enum IsolationScenarioType { |
| 43 ISOLATE_NOTHING, | 43 ISOLATE_NOTHING, |
| 44 ISOLATE_ALL_SITES, | 44 ISOLATE_ALL_SITES, |
| 45 ISOLATE_HTTPS_SITES, | 45 ISOLATE_HTTPS_SITES, |
| 46 ISOLATE_EXTENSIONS, | 46 ISOLATION_SCENARIO_LAST = ISOLATE_HTTPS_SITES |
| 47 ISOLATION_SCENARIO_LAST = ISOLATE_EXTENSIONS | |
| 48 }; | 47 }; |
| 49 | 48 |
| 50 // Contains the state required to estimate the process count under a particular | 49 // Contains the state required to estimate the process count under a particular |
| 51 // process model. We have one of these per IsolationScenarioType. | 50 // process model. We have one of these per IsolationScenarioType. |
| 52 struct IsolationScenario { | 51 struct IsolationScenario { |
| 53 IsolationScenario(); | 52 IsolationScenario(); |
| 54 IsolationScenario(const IsolationScenario& other); | 53 IsolationScenario(const IsolationScenario& other); |
| 55 ~IsolationScenario(); | 54 ~IsolationScenario(); |
| 56 | 55 |
| 57 IsolationScenarioType policy = ISOLATE_NOTHING; | 56 IsolationScenarioType policy = ISOLATE_NOTHING; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 | 96 |
| 98 private: | 97 private: |
| 99 // Never needs to be constructed. | 98 // Never needs to be constructed. |
| 100 SiteDetails(); | 99 SiteDetails(); |
| 101 ~SiteDetails(); | 100 ~SiteDetails(); |
| 102 | 101 |
| 103 DISALLOW_COPY_AND_ASSIGN(SiteDetails); | 102 DISALLOW_COPY_AND_ASSIGN(SiteDetails); |
| 104 }; | 103 }; |
| 105 | 104 |
| 106 #endif // CHROME_BROWSER_SITE_DETAILS_H_ | 105 #endif // CHROME_BROWSER_SITE_DETAILS_H_ |
| OLD | NEW |