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 <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 virtual bool IsBlockedInServiceWorker() const OVERRIDE; | 42 virtual bool IsBlockedInServiceWorker() const OVERRIDE; |
43 | 43 |
44 protected: | 44 protected: |
45 // extensions::Feature: | 45 // extensions::Feature: |
46 virtual std::string GetAvailabilityMessage( | 46 virtual std::string GetAvailabilityMessage( |
47 AvailabilityResult result, | 47 AvailabilityResult result, |
48 Manifest::Type type, | 48 Manifest::Type type, |
49 const GURL& url, | 49 const GURL& url, |
50 Context context) const OVERRIDE; | 50 Context context) const OVERRIDE; |
51 | 51 |
52 virtual std::set<Context>* GetContexts() OVERRIDE; | |
53 | |
54 virtual bool IsInternal() const OVERRIDE; | 52 virtual bool IsInternal() const OVERRIDE; |
55 | 53 |
56 private: | 54 private: |
57 FeatureList features_; | 55 FeatureList features_; |
58 | 56 |
59 DISALLOW_COPY_AND_ASSIGN(ComplexFeature); | 57 DISALLOW_COPY_AND_ASSIGN(ComplexFeature); |
60 }; | 58 }; |
61 | 59 |
62 } // namespace extensions | 60 } // namespace extensions |
63 | 61 |
64 #endif // EXTENSIONS_COMMON_FEATURES_COMPLEX_FEATURE_H_ | 62 #endif // EXTENSIONS_COMMON_FEATURES_COMPLEX_FEATURE_H_ |
OLD | NEW |