40 lines
1.4 KiB
C
40 lines
1.4 KiB
C
|
// 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 SHELL_COMMON_EXTENSIONS_ATOM_EXTENSIONS_API_PROVIDER_H_
|
||
|
#define SHELL_COMMON_EXTENSIONS_ATOM_EXTENSIONS_API_PROVIDER_H_
|
||
|
|
||
|
#include <string>
|
||
|
|
||
|
#include "base/macros.h"
|
||
|
#include "extensions/common/extensions_api_provider.h"
|
||
|
|
||
|
namespace electron {
|
||
|
|
||
|
class AtomExtensionsAPIProvider : public extensions::ExtensionsAPIProvider {
|
||
|
public:
|
||
|
AtomExtensionsAPIProvider();
|
||
|
~AtomExtensionsAPIProvider() override;
|
||
|
|
||
|
// ExtensionsAPIProvider:
|
||
|
void AddAPIFeatures(extensions::FeatureProvider* provider) override;
|
||
|
void AddManifestFeatures(extensions::FeatureProvider* provider) override;
|
||
|
void AddPermissionFeatures(extensions::FeatureProvider* provider) override;
|
||
|
void AddBehaviorFeatures(extensions::FeatureProvider* provider) override;
|
||
|
void AddAPIJSONSources(
|
||
|
extensions::JSONFeatureProviderSource* json_source) override;
|
||
|
bool IsAPISchemaGenerated(const std::string& name) override;
|
||
|
base::StringPiece GetAPISchema(const std::string& name) override;
|
||
|
void RegisterPermissions(
|
||
|
extensions::PermissionsInfo* permissions_info) override;
|
||
|
void RegisterManifestHandlers() override;
|
||
|
|
||
|
private:
|
||
|
DISALLOW_COPY_AND_ASSIGN(AtomExtensionsAPIProvider);
|
||
|
};
|
||
|
|
||
|
} // namespace electron
|
||
|
|
||
|
#endif // SHELL_COMMON_EXTENSIONS_ATOM_EXTENSIONS_API_PROVIDER_H_
|