summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/feature_provider.h
blob: 1b2b611be9ac6e002d20eb3d5116b8f4cbf797b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CHROME_COMMON_EXTENSIONS_FEATURE_PROVIDER_H_
#define CHROME_COMMON_EXTENSIONS_FEATURE_PROVIDER_H_
#pragma once

#include <string>

namespace extensions {

class Feature;

// Implemented by classes that can vend features.
class FeatureProvider {
 public:
  FeatureProvider() {}
  virtual ~FeatureProvider() {}

  // Returns the feature with the specified name.
  virtual Feature* GetFeature(const std::string& name) = 0;
};

}  // namespace extensions

#endif  // CHROME_COMMON_EXTENSIONS_FEATURE_PROVIDER_H_