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 #include "extensions/common/url_pattern_set.h" | 5 #include "extensions/common/url_pattern_set.h" |
6 | 6 |
7 #include <iterator> | 7 #include <iterator> |
8 #include <ostream> | 8 #include <ostream> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/memory/linked_ptr.h" | |
12 #include "base/memory/ptr_util.h" | 11 #include "base/memory/ptr_util.h" |
13 #include "base/stl_util.h" | 12 #include "base/stl_util.h" |
14 #include "base/values.h" | 13 #include "base/values.h" |
15 #include "extensions/common/error_utils.h" | 14 #include "extensions/common/error_utils.h" |
16 #include "extensions/common/url_pattern.h" | 15 #include "extensions/common/url_pattern.h" |
17 #include "url/gurl.h" | 16 #include "url/gurl.h" |
18 #include "url/origin.h" | 17 #include "url/origin.h" |
19 #include "url/url_constants.h" | 18 #include "url/url_constants.h" |
20 | 19 |
21 namespace extensions { | 20 namespace extensions { |
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 for (size_t i = 0; i < value.GetSize(); ++i) { | 282 for (size_t i = 0; i < value.GetSize(); ++i) { |
284 std::string item; | 283 std::string item; |
285 if (!value.GetString(i, &item)) | 284 if (!value.GetString(i, &item)) |
286 return false; | 285 return false; |
287 patterns.push_back(item); | 286 patterns.push_back(item); |
288 } | 287 } |
289 return Populate(patterns, valid_schemes, allow_file_access, error); | 288 return Populate(patterns, valid_schemes, allow_file_access, error); |
290 } | 289 } |
291 | 290 |
292 } // namespace extensions | 291 } // namespace extensions |
OLD | NEW |