| 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 EXTENSIONS_COMMMON_URL_PATTERN_SET_H_ | 5 #ifndef EXTENSIONS_COMMMON_URL_PATTERN_SET_H_ |
| 6 #define EXTENSIONS_COMMMON_URL_PATTERN_SET_H_ | 6 #define EXTENSIONS_COMMMON_URL_PATTERN_SET_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 int valid_schemes, | 89 int valid_schemes, |
| 90 bool allow_file_access, | 90 bool allow_file_access, |
| 91 std::string* error); | 91 std::string* error); |
| 92 | 92 |
| 93 bool Populate(const std::vector<std::string>& patterns, | 93 bool Populate(const std::vector<std::string>& patterns, |
| 94 int valid_schemes, | 94 int valid_schemes, |
| 95 bool allow_file_access, | 95 bool allow_file_access, |
| 96 std::string* error); | 96 std::string* error); |
| 97 | 97 |
| 98 private: | 98 private: |
| 99 // Inserts a pattern in the set without pattern containment normalization. |
| 100 bool InsertPattern(const URLPattern& pattern); |
| 101 |
| 99 // The list of URL patterns that comprise the extent. | 102 // The list of URL patterns that comprise the extent. |
| 100 std::set<URLPattern> patterns_; | 103 std::set<URLPattern> patterns_; |
| 101 }; | 104 }; |
| 102 | 105 |
| 103 } // namespace extensions | 106 } // namespace extensions |
| 104 | 107 |
| 105 #endif // EXTENSIONS_COMMMON_URL_PATTERN_SET_H_ | 108 #endif // EXTENSIONS_COMMMON_URL_PATTERN_SET_H_ |
| OLD | NEW |