forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
core_extensions_api_provider.h
35 lines (27 loc) · 1.27 KB
/
core_extensions_api_provider.h
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
28
29
30
31
32
33
34
35
// Copyright 2018 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 EXTENSIONS_COMMON_CORE_EXTENSIONS_API_PROVIDER_H_
#define EXTENSIONS_COMMON_CORE_EXTENSIONS_API_PROVIDER_H_
#include "base/macros.h"
#include "extensions/common/extensions_api_provider.h"
namespace extensions {
class CoreExtensionsAPIProvider : public ExtensionsAPIProvider {
public:
CoreExtensionsAPIProvider();
~CoreExtensionsAPIProvider() override;
// ExtensionsAPIProvider:
void AddAPIFeatures(FeatureProvider* provider) override;
void AddManifestFeatures(FeatureProvider* provider) override;
void AddPermissionFeatures(FeatureProvider* provider) override;
void AddBehaviorFeatures(FeatureProvider* provider) override;
void AddAPIJSONSources(JSONFeatureProviderSource* json_source) override;
bool IsAPISchemaGenerated(const std::string& name) override;
base::StringPiece GetAPISchema(const std::string& name) override;
void RegisterPermissions(PermissionsInfo* permissions_info) override;
void RegisterManifestHandlers() override;
private:
DISALLOW_COPY_AND_ASSIGN(CoreExtensionsAPIProvider);
};
} // namespace extensions
#endif // EXTENSIONS_COMMON_CORE_EXTENSIONS_API_PROVIDER_H_