OLD | NEW |
---|---|
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_WEBSITE_SETTINGS_INFO_H_ | 5 #ifndef COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_WEBSITE_SETTINGS_INFO_H_ |
6 #define COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_WEBSITE_SETTINGS_INFO_H_ | 6 #define COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_WEBSITE_SETTINGS_INFO_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
43 }; | 43 }; |
44 | 44 |
45 enum IncognitoBehavior { | 45 enum IncognitoBehavior { |
46 // Settings will be inherited from regular to incognito profiles as usual. | 46 // Settings will be inherited from regular to incognito profiles as usual. |
47 INHERIT_IN_INCOGNITO, | 47 INHERIT_IN_INCOGNITO, |
48 | 48 |
49 // Settings will not be inherited from regular to incognito profiles. | 49 // Settings will not be inherited from regular to incognito profiles. |
50 DONT_INHERIT_IN_INCOGNITO, | 50 DONT_INHERIT_IN_INCOGNITO, |
51 }; | 51 }; |
52 | 52 |
53 enum AppliedPlatform { | |
raymes
2016/05/20 19:10:16
nit: Maybe just Platform?
I wonder if we should m
lshang
2016/05/24 11:55:45
Done.
| |
54 // Settings applied to all platforms, including win, mac, linux, chromeos, | |
55 // android, ios. | |
56 ALL_PLATFORMS, | |
57 | |
58 // Settings only applied to win, mac, linux and chromeos. | |
59 DESKTOP_ONLY, | |
60 | |
61 // Settings applied to win, mac, linux, chromeos and android, but not ios. | |
62 DESKTOP_AND_ANDROID_ONLY, | |
63 | |
64 // Settings only applied to android and chromeos. | |
65 ANDROID_AND_CHROMEOS_ONLY | |
66 }; | |
67 | |
53 WebsiteSettingsInfo(ContentSettingsType type, | 68 WebsiteSettingsInfo(ContentSettingsType type, |
54 const std::string& name, | 69 const std::string& name, |
55 std::unique_ptr<base::Value> initial_default_value, | 70 std::unique_ptr<base::Value> initial_default_value, |
56 SyncStatus sync_status, | 71 SyncStatus sync_status, |
57 LossyStatus lossy_status, | 72 LossyStatus lossy_status, |
58 ScopingType scoping_type, | 73 ScopingType scoping_type, |
59 IncognitoBehavior incognito_behavior); | 74 IncognitoBehavior incognito_behavior); |
60 ~WebsiteSettingsInfo(); | 75 ~WebsiteSettingsInfo(); |
61 | 76 |
62 ContentSettingsType type() const { return type_; } | 77 ContentSettingsType type() const { return type_; } |
(...skipping 23 matching lines...) Expand all Loading... | |
86 const LossyStatus lossy_status_; | 101 const LossyStatus lossy_status_; |
87 const ScopingType scoping_type_; | 102 const ScopingType scoping_type_; |
88 const IncognitoBehavior incognito_behavior_; | 103 const IncognitoBehavior incognito_behavior_; |
89 | 104 |
90 DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsInfo); | 105 DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsInfo); |
91 }; | 106 }; |
92 | 107 |
93 } // namespace content_settings | 108 } // namespace content_settings |
94 | 109 |
95 #endif // COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_WEBSITE_SETTINGS_INFO_H_ | 110 #endif // COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_WEBSITE_SETTINGS_INFO_H_ |
OLD | NEW |