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_UTILS_H_ | 5 #ifndef CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_UTILS_H_ |
6 #define CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_UTILS_H_ | 6 #define CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_UTILS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
11 #include "chrome/common/content_settings.h" | 11 #include "chrome/common/content_settings.h" |
12 #include "chrome/common/content_settings_pattern.h" | 12 #include "chrome/common/content_settings_pattern.h" |
13 #include "chrome/common/content_settings_types.h" | 13 #include "chrome/common/content_settings_types.h" |
| 14 #include "ipc/ipc_channel.h" |
14 | 15 |
15 namespace base { | 16 namespace base { |
16 class Value; | 17 class Value; |
17 } | 18 } |
18 | 19 |
19 class GURL; | 20 class GURL; |
| 21 class HostContentSettingsMap; |
20 | 22 |
21 namespace content_settings { | 23 namespace content_settings { |
22 | 24 |
23 class ProviderInterface; | 25 class ProviderInterface; |
24 class RuleIterator; | 26 class RuleIterator; |
25 | 27 |
26 typedef std::pair<ContentSettingsPattern, ContentSettingsPattern> PatternPair; | 28 typedef std::pair<ContentSettingsPattern, ContentSettingsPattern> PatternPair; |
27 | 29 |
28 std::string GetTypeName(ContentSettingsType type); | 30 std::string GetTypeName(ContentSettingsType type); |
29 | 31 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 bool include_incognito); | 80 bool include_incognito); |
79 | 81 |
80 ContentSetting GetContentSetting( | 82 ContentSetting GetContentSetting( |
81 const ProviderInterface* provider, | 83 const ProviderInterface* provider, |
82 const GURL& primary_url, | 84 const GURL& primary_url, |
83 const GURL& secondary_url, | 85 const GURL& secondary_url, |
84 ContentSettingsType content_type, | 86 ContentSettingsType content_type, |
85 const std::string& resource_identifier, | 87 const std::string& resource_identifier, |
86 bool include_incognito); | 88 bool include_incognito); |
87 | 89 |
| 90 void SendContentSettingRules(const HostContentSettingsMap* map, |
| 91 IPC::Channel::Sender* sender); |
| 92 |
88 } // namespace content_settings | 93 } // namespace content_settings |
89 | 94 |
90 #endif // CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_UTILS_H_ | 95 #endif // CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_UTILS_H_ |
OLD | NEW |