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

Side by Side Diff: extensions/common/features/complex_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
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_COMPLEX_FEATURE_H_ 5 #ifndef EXTENSIONS_COMMON_FEATURES_COMPLEX_FEATURE_H_
6 #define EXTENSIONS_COMMON_FEATURES_COMPLEX_FEATURE_H_ 6 #define EXTENSIONS_COMMON_FEATURES_COMPLEX_FEATURE_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 21 matching lines...) Expand all
32 int manifest_version, 32 int manifest_version,
33 Platform platform) const OVERRIDE; 33 Platform platform) const OVERRIDE;
34 34
35 virtual Availability IsAvailableToContext(const Extension* extension, 35 virtual Availability IsAvailableToContext(const Extension* extension,
36 Context context, 36 Context context,
37 const GURL& url, 37 const GURL& url,
38 Platform platform) const OVERRIDE; 38 Platform platform) const OVERRIDE;
39 39
40 virtual bool IsIdInBlacklist(const std::string& extension_id) const OVERRIDE; 40 virtual bool IsIdInBlacklist(const std::string& extension_id) const OVERRIDE;
41 virtual bool IsIdInWhitelist(const std::string& extension_id) const OVERRIDE; 41 virtual bool IsIdInWhitelist(const std::string& extension_id) const OVERRIDE;
42 virtual bool IsBlockedInServiceWorker() const OVERRIDE;
43 42
44 protected: 43 protected:
45 // extensions::Feature: 44 // extensions::Feature:
46 virtual std::string GetAvailabilityMessage( 45 virtual std::string GetAvailabilityMessage(
47 AvailabilityResult result, 46 AvailabilityResult result,
48 Manifest::Type type, 47 Manifest::Type type,
49 const GURL& url, 48 const GURL& url,
50 Context context) const OVERRIDE; 49 Context context) const OVERRIDE;
51 50
52 virtual bool IsInternal() const OVERRIDE; 51 virtual bool IsInternal() const OVERRIDE;
53 52
54 private: 53 private:
55 FeatureList features_; 54 FeatureList features_;
56 55
57 DISALLOW_COPY_AND_ASSIGN(ComplexFeature); 56 DISALLOW_COPY_AND_ASSIGN(ComplexFeature);
58 }; 57 };
59 58
60 } // namespace extensions 59 } // namespace extensions
61 60
62 #endif // EXTENSIONS_COMMON_FEATURES_COMPLEX_FEATURE_H_ 61 #endif // EXTENSIONS_COMMON_FEATURES_COMPLEX_FEATURE_H_
OLDNEW
« no previous file with comments | « extensions/common/features/api_feature.cc ('k') | extensions/common/features/complex_feature.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698