Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(142)

Side by Side Diff: chrome/browser/extensions/api/content_settings/content_settings_helpers.h

Issue 410993002: Componentize content_settings_types.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: removed empty DEPS Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 7
8 #include <string> 8 #include <string>
9 9
10 #include "chrome/common/content_settings.h" 10 #include "chrome/common/content_settings.h"
11 #include "chrome/common/content_settings_pattern.h" 11 #include "chrome/common/content_settings_pattern.h"
12 #include "components/content_settings/core/common/content_settings_types.h"
12 13
13 namespace extensions { 14 namespace extensions {
14 namespace content_settings_helpers { 15 namespace content_settings_helpers {
15 16
16 // Parses an extension match pattern and returns a corresponding 17 // Parses an extension match pattern and returns a corresponding
17 // content settings pattern object. 18 // content settings pattern object.
18 // If |pattern_str| is invalid or can't be converted to a content settings 19 // If |pattern_str| is invalid or can't be converted to a content settings
19 // pattern, |error| is set to the parsing error and an invalid pattern 20 // pattern, |error| is set to the parsing error and an invalid pattern
20 // is returned. 21 // is returned.
21 ContentSettingsPattern ParseExtensionPattern(const std::string& pattern_str, 22 ContentSettingsPattern ParseExtensionPattern(const std::string& pattern_str,
(...skipping 12 matching lines...) Expand all
34 // false otherwise. 35 // false otherwise.
35 bool StringToContentSetting(const std::string& setting_str, 36 bool StringToContentSetting(const std::string& setting_str,
36 ContentSetting* setting); 37 ContentSetting* setting);
37 // Returns a string representation of a ContentSetting. 38 // Returns a string representation of a ContentSetting.
38 const char* ContentSettingToString(ContentSetting setting); 39 const char* ContentSettingToString(ContentSetting setting);
39 40
40 } // namespace content_settings_helpers 41 } // namespace content_settings_helpers
41 } // namespace extensions 42 } // namespace extensions
42 43
43 #endif // CHROME_BROWSER_EXTENSIONS_API_CONTENT_SETTINGS_CONTENT_SETTINGS_HELPE RS_H__ 44 #endif // CHROME_BROWSER_EXTENSIONS_API_CONTENT_SETTINGS_CONTENT_SETTINGS_HELPE RS_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698