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 // Patterns used in content setting rules. | 5 // Patterns used in content setting rules. |
6 | 6 |
7 #ifndef CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_PATTERN_H_ | 7 #ifndef CHROME_COMMON_CONTENT_SETTINGS_PATTERN_H_ |
8 #define CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_PATTERN_H_ | 8 #define CHROME_COMMON_CONTENT_SETTINGS_PATTERN_H_ |
9 #pragma once | 9 #pragma once |
10 | 10 |
11 #include <ostream> | 11 #include <ostream> |
12 #include <string> | 12 #include <string> |
13 | 13 |
14 #include "base/basictypes.h" | 14 #include "base/basictypes.h" |
15 | 15 |
16 class GURL; | 16 class GURL; |
17 | 17 |
18 namespace content_settings { | 18 namespace content_settings { |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 bool is_valid_; | 247 bool is_valid_; |
248 }; | 248 }; |
249 | 249 |
250 // Stream operator so ContentSettingsPattern can be used in assertion | 250 // Stream operator so ContentSettingsPattern can be used in assertion |
251 // statements. | 251 // statements. |
252 inline std::ostream& operator<<( | 252 inline std::ostream& operator<<( |
253 std::ostream& out, const ContentSettingsPattern& pattern) { | 253 std::ostream& out, const ContentSettingsPattern& pattern) { |
254 return out << pattern.ToString(); | 254 return out << pattern.ToString(); |
255 } | 255 } |
256 | 256 |
257 #endif // CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_PATTERN_H_ | 257 #endif // CHROME_COMMON_CONTENT_SETTINGS_PATTERN_H_ |
OLD | NEW |