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

Side by Side Diff: extensions/common/features/simple_feature.h

Issue 414633002: Remove service worker concepts from _api_features.json (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 | Annotate | Revision Log
« no previous file with comments | « extensions/common/features/feature.h ('k') | extensions/common/features/simple_feature.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_FEATURES_SIMPLE_FEATURE_H_ 5 #ifndef EXTENSIONS_COMMON_FEATURES_SIMPLE_FEATURE_H_
6 #define EXTENSIONS_COMMON_FEATURES_SIMPLE_FEATURE_H_ 6 #define EXTENSIONS_COMMON_FEATURES_SIMPLE_FEATURE_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 Context context, 99 Context context,
100 const GURL& url, 100 const GURL& url,
101 Platform platform) const OVERRIDE; 101 Platform platform) const OVERRIDE;
102 102
103 virtual std::string GetAvailabilityMessage(AvailabilityResult result, 103 virtual std::string GetAvailabilityMessage(AvailabilityResult result,
104 Manifest::Type type, 104 Manifest::Type type,
105 const GURL& url, 105 const GURL& url,
106 Context context) const OVERRIDE; 106 Context context) const OVERRIDE;
107 107
108 virtual bool IsInternal() const OVERRIDE; 108 virtual bool IsInternal() const OVERRIDE;
109 virtual bool IsBlockedInServiceWorker() const OVERRIDE;
110 109
111 virtual bool IsIdInBlacklist(const std::string& extension_id) const OVERRIDE; 110 virtual bool IsIdInBlacklist(const std::string& extension_id) const OVERRIDE;
112 virtual bool IsIdInWhitelist(const std::string& extension_id) const OVERRIDE; 111 virtual bool IsIdInWhitelist(const std::string& extension_id) const OVERRIDE;
113 static bool IsIdInList(const std::string& extension_id, 112 static bool IsIdInList(const std::string& extension_id,
114 const std::set<std::string>& list); 113 const std::set<std::string>& list);
115 114
116 protected: 115 protected:
117 Availability CreateAvailability(AvailabilityResult result) const; 116 Availability CreateAvailability(AvailabilityResult result) const;
118 Availability CreateAvailability(AvailabilityResult result, 117 Availability CreateAvailability(AvailabilityResult result,
119 Manifest::Type type) const; 118 Manifest::Type type) const;
(...skipping 27 matching lines...) Expand all
147 146
148 typedef std::vector<linked_ptr<SimpleFeatureFilter> > FilterList; 147 typedef std::vector<linked_ptr<SimpleFeatureFilter> > FilterList;
149 FilterList filters_; 148 FilterList filters_;
150 149
151 DISALLOW_COPY_AND_ASSIGN(SimpleFeature); 150 DISALLOW_COPY_AND_ASSIGN(SimpleFeature);
152 }; 151 };
153 152
154 } // namespace extensions 153 } // namespace extensions
155 154
156 #endif // EXTENSIONS_COMMON_FEATURES_SIMPLE_FEATURE_H_ 155 #endif // EXTENSIONS_COMMON_FEATURES_SIMPLE_FEATURE_H_
OLDNEW
« no previous file with comments | « extensions/common/features/feature.h ('k') | extensions/common/features/simple_feature.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698