| OLD | NEW |
| 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_FEATURES_COMPLEX_FEATURE_H_ | 5 #ifndef CHROME_COMMON_EXTENSIONS_FEATURES_COMPLEX_FEATURE_H_ |
| 6 #define CHROME_COMMON_EXTENSIONS_FEATURES_COMPLEX_FEATURE_H_ | 6 #define CHROME_COMMON_EXTENSIONS_FEATURES_COMPLEX_FEATURE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/scoped_vector.h" | 10 #include "base/memory/scoped_vector.h" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 Location location, | 30 Location location, |
| 31 int manifest_version, | 31 int manifest_version, |
| 32 Platform platform) const OVERRIDE; | 32 Platform platform) const OVERRIDE; |
| 33 | 33 |
| 34 virtual Availability IsAvailableToContext(const Extension* extension, | 34 virtual Availability IsAvailableToContext(const Extension* extension, |
| 35 Context context, | 35 Context context, |
| 36 const GURL& url, | 36 const GURL& url, |
| 37 Platform platform) const OVERRIDE; | 37 Platform platform) const OVERRIDE; |
| 38 | 38 |
| 39 virtual bool IsIdInWhitelist(const std::string& extension_id) const OVERRIDE; | 39 virtual bool IsIdInWhitelist(const std::string& extension_id) const OVERRIDE; |
| 40 virtual bool IsBlockedInServiceWorker() const OVERRIDE; |
| 40 | 41 |
| 41 protected: | 42 protected: |
| 42 // extensions::Feature: | 43 // extensions::Feature: |
| 43 virtual std::string GetAvailabilityMessage( | 44 virtual std::string GetAvailabilityMessage( |
| 44 AvailabilityResult result, | 45 AvailabilityResult result, |
| 45 Manifest::Type type, | 46 Manifest::Type type, |
| 46 const GURL& url, | 47 const GURL& url, |
| 47 Context context) const OVERRIDE; | 48 Context context) const OVERRIDE; |
| 48 | 49 |
| 49 virtual std::set<Context>* GetContexts() OVERRIDE; | 50 virtual std::set<Context>* GetContexts() OVERRIDE; |
| 50 | 51 |
| 51 virtual bool IsInternal() const OVERRIDE; | 52 virtual bool IsInternal() const OVERRIDE; |
| 52 | 53 |
| 53 private: | 54 private: |
| 54 FeatureList features_; | 55 FeatureList features_; |
| 55 | 56 |
| 56 DISALLOW_COPY_AND_ASSIGN(ComplexFeature); | 57 DISALLOW_COPY_AND_ASSIGN(ComplexFeature); |
| 57 }; | 58 }; |
| 58 | 59 |
| 59 } // namespace extensions | 60 } // namespace extensions |
| 60 | 61 |
| 61 #endif // CHROME_COMMON_EXTENSIONS_FEATURES_COMPLEX_FEATURE_H_ | 62 #endif // CHROME_COMMON_EXTENSIONS_FEATURES_COMPLEX_FEATURE_H_ |
| OLD | NEW |