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_EXTENSIONS_EXTENSION_CONTENT_SETTINGS_HELPERS_H__ | 5 #ifndef CHROME_BROWSER_CONTENT_SETTINGS_EXTENSION_CONTENT_SETTINGS_HELPERS_H__ |
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_CONTENT_SETTINGS_HELPERS_H__ | 6 #define CHROME_BROWSER_CONTENT_SETTINGS_EXTENSION_CONTENT_SETTINGS_HELPERS_H__ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
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 | 13 |
14 namespace extension_content_settings_helpers { | 14 namespace extension_content_settings_helpers { |
15 | 15 |
16 // Parses an extension match pattern and returns a corresponding | 16 // Parses an extension match pattern and returns a corresponding |
(...skipping 15 matching lines...) Expand all Loading... |
32 // Converts a content setting string to the corresponding ContentSetting. | 32 // Converts a content setting string to the corresponding ContentSetting. |
33 // Returns true if |setting_str| specifies a valid content setting, | 33 // Returns true if |setting_str| specifies a valid content setting, |
34 // false otherwise. | 34 // false otherwise. |
35 bool StringToContentSetting(const std::string& setting_str, | 35 bool StringToContentSetting(const std::string& setting_str, |
36 ContentSetting* setting); | 36 ContentSetting* setting); |
37 // Returns a string representation of a ContentSetting. | 37 // Returns a string representation of a ContentSetting. |
38 const char* ContentSettingToString(ContentSetting setting); | 38 const char* ContentSettingToString(ContentSetting setting); |
39 | 39 |
40 } // namespace extension_content_settings_helpers | 40 } // namespace extension_content_settings_helpers |
41 | 41 |
42 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_CONTENT_SETTINGS_HELPERS_H__ | 42 #endif // CHROME_BROWSER_CONTENT_SETTINGS_EXTENSION_CONTENT_SETTINGS_HELPERS_H_
_ |
OLD | NEW |