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

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

Issue 11312228: Move extension_error_utils.* and url_pattern_set.* into (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: hate Created 8 years, 1 month 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
« no previous file with comments | « extensions/common/error_utils.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 CHROME_COMMON_EXTENSIONS_URL_PATTERN_SET_H_ 5 #ifndef EXTENSIONS_COMMMON_URL_PATTERN_SET_H_
6 #define CHROME_COMMON_EXTENSIONS_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"
11 #include "extensions/common/url_pattern.h" 11 #include "extensions/common/url_pattern.h"
12 12
13 class GURL; 13 class GURL;
14 14
15 namespace base { 15 namespace base {
16 class ListValue; 16 class ListValue;
17 class Value; 17 class Value;
18 } 18 }
19 19
20 namespace extensions {
21
20 // Represents the set of URLs an extension uses for web content. 22 // Represents the set of URLs an extension uses for web content.
21 class URLPatternSet { 23 class URLPatternSet {
22 public: 24 public:
23 typedef std::set<URLPattern>::const_iterator const_iterator; 25 typedef std::set<URLPattern>::const_iterator const_iterator;
24 typedef std::set<URLPattern>::iterator iterator; 26 typedef std::set<URLPattern>::iterator iterator;
25 27
26 // Clears |out| and populates the set with |set1| - |set2|. 28 // Clears |out| and populates the set with |set1| - |set2|.
27 static void CreateDifference(const URLPatternSet& set1, 29 static void CreateDifference(const URLPatternSet& set1,
28 const URLPatternSet& set2, 30 const URLPatternSet& set2,
29 URLPatternSet* out); 31 URLPatternSet* out);
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 bool Populate(const std::vector<std::string>& patterns, 89 bool Populate(const std::vector<std::string>& patterns,
88 int valid_schemes, 90 int valid_schemes,
89 bool allow_file_access, 91 bool allow_file_access,
90 std::string* error); 92 std::string* error);
91 93
92 private: 94 private:
93 // The list of URL patterns that comprise the extent. 95 // The list of URL patterns that comprise the extent.
94 std::set<URLPattern> patterns_; 96 std::set<URLPattern> patterns_;
95 }; 97 };
96 98
97 #endif // CHROME_COMMON_EXTENSIONS_URL_PATTERN_SET_H_ 99 } // namespace extensions
100
101 #endif // EXTENSIONS_COMMMON_URL_PATTERN_SET_H_
OLDNEW
« no previous file with comments | « extensions/common/error_utils.cc ('k') | extensions/common/url_pattern_set.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698