OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_API_CONTENT_SETTINGS_CONTENT_SETTINGS_HELPERS_
H__ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_CONTENT_SETTINGS_CONTENT_SETTINGS_HELPERS_
H__ |
6 #define CHROME_BROWSER_EXTENSIONS_API_CONTENT_SETTINGS_CONTENT_SETTINGS_HELPERS_
H__ | 6 #define CHROME_BROWSER_EXTENSIONS_API_CONTENT_SETTINGS_CONTENT_SETTINGS_HELPERS_
H__ |
7 #pragma once | |
8 | 7 |
9 #include <string> | 8 #include <string> |
10 | 9 |
11 #include "chrome/common/content_settings.h" | 10 #include "chrome/common/content_settings.h" |
12 #include "chrome/common/content_settings_pattern.h" | 11 #include "chrome/common/content_settings_pattern.h" |
13 | 12 |
14 namespace extensions { | 13 namespace extensions { |
15 namespace content_settings_helpers { | 14 namespace content_settings_helpers { |
16 | 15 |
17 // Parses an extension match pattern and returns a corresponding | 16 // Parses an extension match pattern and returns a corresponding |
(...skipping 17 matching lines...) Expand all Loading... |
35 // false otherwise. | 34 // false otherwise. |
36 bool StringToContentSetting(const std::string& setting_str, | 35 bool StringToContentSetting(const std::string& setting_str, |
37 ContentSetting* setting); | 36 ContentSetting* setting); |
38 // Returns a string representation of a ContentSetting. | 37 // Returns a string representation of a ContentSetting. |
39 const char* ContentSettingToString(ContentSetting setting); | 38 const char* ContentSettingToString(ContentSetting setting); |
40 | 39 |
41 } // namespace content_settings_helpers | 40 } // namespace content_settings_helpers |
42 } // namespace extensions | 41 } // namespace extensions |
43 | 42 |
44 #endif // CHROME_BROWSER_EXTENSIONS_API_CONTENT_SETTINGS_CONTENT_SETTINGS_HELPE
RS_H__ | 43 #endif // CHROME_BROWSER_EXTENSIONS_API_CONTENT_SETTINGS_CONTENT_SETTINGS_HELPE
RS_H__ |
OLD | NEW |