| 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 requesting frame only. This should |
| 31 // not generally be used. |
| 32 REQUESTING_DOMAIN_ONLY_SCOPE, |
| 33 |
| 30 // Settings scoped to the origin of the main frame only. | 34 // Settings scoped to the origin of the main frame only. |
| 31 TOP_LEVEL_ORIGIN_ONLY_SCOPE, | 35 TOP_LEVEL_ORIGIN_ONLY_SCOPE, |
| 32 | 36 |
| 33 // Settings scoped to the origin of the requesting frame only. | 37 // Settings scoped to the origin of the requesting frame only. |
| 34 REQUESTING_ORIGIN_ONLY_SCOPE, | 38 REQUESTING_ORIGIN_ONLY_SCOPE, |
| 35 | 39 |
| 36 // Settings scoped to the combination of the origin of the requesting | 40 // Settings scoped to the combination of the origin of the requesting |
| 37 // frame and the origin of the top level frame. | 41 // frame and the origin of the top level frame. |
| 38 REQUESTING_ORIGIN_AND_TOP_LEVEL_ORIGIN_SCOPE | 42 REQUESTING_ORIGIN_AND_TOP_LEVEL_ORIGIN_SCOPE |
| 39 }; | 43 }; |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 const LossyStatus lossy_status_; | 86 const LossyStatus lossy_status_; |
| 83 const ScopingType scoping_type_; | 87 const ScopingType scoping_type_; |
| 84 const IncognitoBehavior incognito_behavior_; | 88 const IncognitoBehavior incognito_behavior_; |
| 85 | 89 |
| 86 DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsInfo); | 90 DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsInfo); |
| 87 }; | 91 }; |
| 88 | 92 |
| 89 } // namespace content_settings | 93 } // namespace content_settings |
| 90 | 94 |
| 91 #endif // COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_WEBSITE_SETTINGS_INFO_H_ | 95 #endif // COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_WEBSITE_SETTINGS_INFO_H_ |
| OLD | NEW |