OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_CONTENT_SETTINGS_CONTENT_SETTINGS_DETAILS_H_ | 5 #ifndef CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_DETAILS_H_ |
6 #define CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_DETAILS_H_ | 6 #define CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_DETAILS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "chrome/common/content_settings.h" | 12 #include "chrome/common/content_settings.h" |
| 13 #include "chrome/common/content_settings_types.h" |
13 #include "chrome/common/content_settings_pattern.h" | 14 #include "chrome/common/content_settings_pattern.h" |
14 | 15 |
15 // Details for the CONTENT_SETTINGS_CHANGED notification. This is sent when | 16 // Details for the CONTENT_SETTINGS_CHANGED notification. This is sent when |
16 // content settings change for at least one host. If settings change for more | 17 // content settings change for at least one host. If settings change for more |
17 // than one pattern in one user interaction, this will usually send a single | 18 // than one pattern in one user interaction, this will usually send a single |
18 // notification with update_all() returning true instead of one notification | 19 // notification with update_all() returning true instead of one notification |
19 // for each pattern. | 20 // for each pattern. |
20 class ContentSettingsDetails { | 21 class ContentSettingsDetails { |
21 public: | 22 public: |
22 // Update the setting that matches this pattern/content type/resource. | 23 // Update the setting that matches this pattern/content type/resource. |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 private: | 59 private: |
59 ContentSettingsPattern primary_pattern_; | 60 ContentSettingsPattern primary_pattern_; |
60 ContentSettingsPattern secondary_pattern_; | 61 ContentSettingsPattern secondary_pattern_; |
61 ContentSettingsType type_; | 62 ContentSettingsType type_; |
62 std::string resource_identifier_; | 63 std::string resource_identifier_; |
63 | 64 |
64 DISALLOW_COPY_AND_ASSIGN(ContentSettingsDetails); | 65 DISALLOW_COPY_AND_ASSIGN(ContentSettingsDetails); |
65 }; | 66 }; |
66 | 67 |
67 #endif // CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_DETAILS_H_ | 68 #endif // CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_DETAILS_H_ |
OLD | NEW |