• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
3 // found in the LICENSE file.
4 
5 #ifndef EXTENSIONS_COMMON_FEATURES_PERMISSION_FEATURE_H_
6 #define EXTENSIONS_COMMON_FEATURES_PERMISSION_FEATURE_H_
7 
8 #include <string>
9 
10 #include "extensions/common/features/simple_feature.h"
11 
12 namespace extensions {
13 
14 class PermissionFeature : public SimpleFeature {
15  public:
16   PermissionFeature();
17   virtual ~PermissionFeature();
18 
19   virtual Feature::Availability IsAvailableToContext(
20       const Extension* extension,
21       Feature::Context context,
22       const GURL& url,
23       Feature::Platform platform) const OVERRIDE;
24 
25   virtual std::string Parse(const base::DictionaryValue* value) OVERRIDE;
26 };
27 
28 }  // namespace extensions
29 
30 #endif  // EXTENSIONS_COMMON_FEATURES_PERMISSION_FEATURE_H_
31