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

Side by Side Diff: extensions/common/url_pattern_set.h

Issue 300573002: Add stream operators for URLPattern and URLPatternSet and unit test for URLPatternSet (Closed) Base URL: https://chromium.googlesource.com/chromium/src@permissions
Patch Set: rebase 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
« no previous file with comments | « extensions/common/url_pattern.cc ('k') | extensions/common/url_pattern_set.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 EXTENSIONS_COMMON_URL_PATTERN_SET_H_ 5 #ifndef EXTENSIONS_COMMON_URL_PATTERN_SET_H_
6 #define EXTENSIONS_COMMON_URL_PATTERN_SET_H_ 6 #define EXTENSIONS_COMMON_URL_PATTERN_SET_H_
7 7
8 #include <iosfwd>
8 #include <set> 9 #include <set>
9 10
10 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
11 #include "extensions/common/url_pattern.h" 12 #include "extensions/common/url_pattern.h"
12 13
13 class GURL; 14 class GURL;
14 15
15 namespace base { 16 namespace base {
16 class ListValue; 17 class ListValue;
17 class Value; 18 class Value;
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 bool Populate(const std::vector<std::string>& patterns, 94 bool Populate(const std::vector<std::string>& patterns,
94 int valid_schemes, 95 int valid_schemes,
95 bool allow_file_access, 96 bool allow_file_access,
96 std::string* error); 97 std::string* error);
97 98
98 private: 99 private:
99 // The list of URL patterns that comprise the extent. 100 // The list of URL patterns that comprise the extent.
100 std::set<URLPattern> patterns_; 101 std::set<URLPattern> patterns_;
101 }; 102 };
102 103
104 std::ostream& operator<<(std::ostream& out,
105 const URLPatternSet& url_pattern_set);
106
103 } // namespace extensions 107 } // namespace extensions
104 108
105 #endif // EXTENSIONS_COMMON_URL_PATTERN_SET_H_ 109 #endif // EXTENSIONS_COMMON_URL_PATTERN_SET_H_
OLDNEW
« no previous file with comments | « extensions/common/url_pattern.cc ('k') | extensions/common/url_pattern_set.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698