| OLD | NEW |
| 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 <memory> | 8 #include <memory> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 int manifest_version, | 34 int manifest_version, |
| 35 Platform platform) const override; | 35 Platform platform) const override; |
| 36 | 36 |
| 37 Availability IsAvailableToContext(const Extension* extension, | 37 Availability IsAvailableToContext(const Extension* extension, |
| 38 Context context, | 38 Context context, |
| 39 const GURL& url, | 39 const GURL& url, |
| 40 Platform platform) const override; | 40 Platform platform) const override; |
| 41 | 41 |
| 42 bool IsIdInBlacklist(const std::string& extension_id) const override; | 42 bool IsIdInBlacklist(const std::string& extension_id) const override; |
| 43 bool IsIdInWhitelist(const std::string& extension_id) const override; | 43 bool IsIdInWhitelist(const std::string& extension_id) const override; |
| 44 Availability IsAvailableToChannel( | |
| 45 version_info::Channel channel) const override; | |
| 46 | 44 |
| 47 protected: | 45 protected: |
| 48 // Feature: | 46 // Feature: |
| 49 bool IsInternal() const override; | 47 bool IsInternal() const override; |
| 50 | 48 |
| 51 private: | 49 private: |
| 52 FRIEND_TEST_ALL_PREFIXES(FeaturesGenerationTest, FeaturesTest); | 50 FRIEND_TEST_ALL_PREFIXES(FeaturesGenerationTest, FeaturesTest); |
| 53 | 51 |
| 54 using FeatureList = std::vector<std::unique_ptr<Feature>>; | 52 using FeatureList = std::vector<std::unique_ptr<Feature>>; |
| 55 FeatureList features_; | 53 FeatureList features_; |
| 56 | 54 |
| 57 DISALLOW_COPY_AND_ASSIGN(ComplexFeature); | 55 DISALLOW_COPY_AND_ASSIGN(ComplexFeature); |
| 58 }; | 56 }; |
| 59 | 57 |
| 60 } // namespace extensions | 58 } // namespace extensions |
| 61 | 59 |
| 62 #endif // EXTENSIONS_COMMON_FEATURES_COMPLEX_FEATURE_H_ | 60 #endif // EXTENSIONS_COMMON_FEATURES_COMPLEX_FEATURE_H_ |
| OLD | NEW |