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 17 matching lines...) Expand all Loading... |
28 | 28 |
29 // extensions::Feature: | 29 // extensions::Feature: |
30 virtual Availability IsAvailableToManifest(const std::string& extension_id, | 30 virtual Availability IsAvailableToManifest(const std::string& extension_id, |
31 Manifest::Type type, | 31 Manifest::Type type, |
32 Location location, | 32 Location location, |
33 int manifest_version, | 33 int manifest_version, |
34 Platform platform) const OVERRIDE; | 34 Platform platform) const OVERRIDE; |
35 | 35 |
36 virtual Availability IsAvailableToContext(const Extension* extension, | 36 virtual Availability IsAvailableToContext(const Extension* extension, |
37 Context context, | 37 Context context, |
| 38 const GURL& url, |
38 Platform platform) const OVERRIDE; | 39 Platform platform) const OVERRIDE; |
39 | 40 |
40 protected: | 41 protected: |
41 // extensions::Feature: | 42 // extensions::Feature: |
42 virtual std::string GetAvailabilityMessage( | 43 virtual std::string GetAvailabilityMessage( |
43 AvailabilityResult result, | 44 AvailabilityResult result, |
44 Manifest::Type type) const OVERRIDE; | 45 Manifest::Type type, |
| 46 const GURL& url) const OVERRIDE; |
45 | 47 |
46 virtual std::set<Context>* GetContexts() OVERRIDE; | 48 virtual std::set<Context>* GetContexts() OVERRIDE; |
47 | 49 |
48 private: | 50 private: |
49 FeatureList features_; | 51 FeatureList features_; |
50 | 52 |
51 DISALLOW_COPY_AND_ASSIGN(ComplexFeature); | 53 DISALLOW_COPY_AND_ASSIGN(ComplexFeature); |
52 }; | 54 }; |
53 | 55 |
54 } // namespace extensions | 56 } // namespace extensions |
55 | 57 |
56 #endif // CHROME_COMMON_EXTENSIONS_FEATURES_COMPLEX_FEATURE_H_ | 58 #endif // CHROME_COMMON_EXTENSIONS_FEATURES_COMPLEX_FEATURE_H_ |
OLD | NEW |