| 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> |
| 11 #include <string> | 11 #include <string> |
| 12 | 12 |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "components/content_settings/core/common/content_settings_types.h" | 14 #include "components/content_settings/core/common/content_settings_types.h" |
| 15 | 15 |
| 16 namespace base { | 16 namespace base { |
| 17 class Value; | 17 class Value; |
| 18 } // namespace base | 18 } // namespace base |
| 19 | 19 |
| 20 namespace content_settings { | 20 namespace content_settings { |
| 21 | 21 |
| 22 // This class stores the properties related to a website setting. | 22 // This class stores the properties related to a website setting. |
| 23 class WebsiteSettingsInfo { | 23 class WebsiteSettingsInfo { |
| 24 public: | 24 public: |
| 25 enum SyncStatus { SYNCABLE, UNSYNCABLE }; | 25 enum SyncStatus { SYNCABLE, UNSYNCABLE }; |
| 26 | 26 |
| 27 enum LossyStatus { LOSSY, NOT_LOSSY }; | 27 enum LossyStatus { LOSSY, NOT_LOSSY }; |
| 28 | 28 |
| 29 enum ScopingType { | 29 enum ScopingType { |
| 30 // Settings scoped to the domain of the main frame only. | 30 // Settings scoped to the origin of the main frame only. |
| 31 TOP_LEVEL_DOMAIN_ONLY_SCOPE, | 31 TOP_LEVEL_ORIGIN_ONLY_SCOPE, |
| 32 | |
| 33 // Settings scoped to the domain of the requesting frame only. This should | |
| 34 // not generally be used. | |
| 35 REQUESTING_DOMAIN_ONLY_SCOPE, | |
| 36 | 32 |
| 37 // Settings scoped to the origin of the requesting frame only. | 33 // Settings scoped to the origin of the requesting frame only. |
| 38 REQUESTING_ORIGIN_ONLY_SCOPE, | 34 REQUESTING_ORIGIN_ONLY_SCOPE, |
| 39 | 35 |
| 40 // Settings scoped to the combination of the origin of the requesting | 36 // Settings scoped to the combination of the origin of the requesting |
| 41 // frame and the origin of the top level frame. | 37 // frame and the origin of the top level frame. |
| 42 REQUESTING_ORIGIN_AND_TOP_LEVEL_ORIGIN_SCOPE | 38 REQUESTING_ORIGIN_AND_TOP_LEVEL_ORIGIN_SCOPE |
| 43 }; | 39 }; |
| 44 | 40 |
| 45 enum IncognitoBehavior { | 41 enum IncognitoBehavior { |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 const LossyStatus lossy_status_; | 82 const LossyStatus lossy_status_; |
| 87 const ScopingType scoping_type_; | 83 const ScopingType scoping_type_; |
| 88 const IncognitoBehavior incognito_behavior_; | 84 const IncognitoBehavior incognito_behavior_; |
| 89 | 85 |
| 90 DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsInfo); | 86 DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsInfo); |
| 91 }; | 87 }; |
| 92 | 88 |
| 93 } // namespace content_settings | 89 } // namespace content_settings |
| 94 | 90 |
| 95 #endif // COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_WEBSITE_SETTINGS_INFO_H_ | 91 #endif // COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_WEBSITE_SETTINGS_INFO_H_ |
| OLD | NEW |