2020-01-13 15:55:58 -07:00
|
|
|
// Copyright (c) 2019 Slack Technologies, Inc.
|
|
|
|
// Use of this source code is governed by the MIT license that can be
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
2021-11-22 00:34:31 -07:00
|
|
|
#ifndef ELECTRON_SHELL_BROWSER_EXTENSIONS_ELECTRON_EXTENSIONS_API_CLIENT_H_
|
|
|
|
#define ELECTRON_SHELL_BROWSER_EXTENSIONS_ELECTRON_EXTENSIONS_API_CLIENT_H_
|
2020-01-13 15:55:58 -07:00
|
|
|
|
|
|
|
#include <memory>
|
|
|
|
|
|
|
|
#include "extensions/browser/api/extensions_api_client.h"
|
|
|
|
|
|
|
|
namespace extensions {
|
|
|
|
|
|
|
|
class ElectronMessagingDelegate;
|
|
|
|
|
|
|
|
class ElectronExtensionsAPIClient : public ExtensionsAPIClient {
|
|
|
|
public:
|
|
|
|
ElectronExtensionsAPIClient();
|
|
|
|
~ElectronExtensionsAPIClient() override;
|
|
|
|
|
|
|
|
// ExtensionsAPIClient
|
|
|
|
MessagingDelegate* GetMessagingDelegate() override;
|
|
|
|
void AttachWebContentsHelpers(
|
|
|
|
content::WebContents* web_contents) const override;
|
2020-02-12 17:39:12 -07:00
|
|
|
std::unique_ptr<MimeHandlerViewGuestDelegate>
|
|
|
|
CreateMimeHandlerViewGuestDelegate(
|
|
|
|
MimeHandlerViewGuest* guest) const override;
|
2020-09-01 18:59:56 -06:00
|
|
|
ManagementAPIDelegate* CreateManagementAPIDelegate() const override;
|
2021-04-23 14:51:37 -06:00
|
|
|
std::unique_ptr<guest_view::GuestViewManagerDelegate>
|
2023-07-18 16:26:27 -06:00
|
|
|
CreateGuestViewManagerDelegate() const override;
|
2020-01-13 15:55:58 -07:00
|
|
|
|
|
|
|
private:
|
|
|
|
std::unique_ptr<ElectronMessagingDelegate> messaging_delegate_;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace extensions
|
|
|
|
|
2021-11-22 00:34:31 -07:00
|
|
|
#endif // ELECTRON_SHELL_BROWSER_EXTENSIONS_ELECTRON_EXTENSIONS_API_CLIENT_H_
|