| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_COMMON_EXTENSIONS_FEATURE_PROVIDER_H_ | |
| 6 #define CHROME_COMMON_EXTENSIONS_FEATURE_PROVIDER_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 #include <string> | |
| 10 | |
| 11 #include "base/memory/scoped_ptr.h" | |
| 12 | |
| 13 namespace extensions { | |
| 14 | |
| 15 class Feature; | |
| 16 | |
| 17 // Implemented by classes that can vend features. | |
| 18 class FeatureProvider { | |
| 19 public: | |
| 20 FeatureProvider() {} | |
| 21 virtual ~FeatureProvider() {} | |
| 22 | |
| 23 // Returns the feature with the specified name. | |
| 24 virtual scoped_ptr<Feature> GetFeature(const std::string& name) = 0; | |
| 25 }; | |
| 26 | |
| 27 } // namespace extensions | |
| 28 | |
| 29 #endif // CHROME_COMMON_EXTENSIONS_FEATURE_PROVIDER_H_ | |
| OLD | NEW |