feat: [extensions] background pages (#21591)
This commit is contained in:
parent
cf497ea478
commit
8bc0c92137
23 changed files with 477 additions and 11 deletions
32
shell/browser/extensions/electron_extensions_api_client.h
Normal file
32
shell/browser/extensions/electron_extensions_api_client.h
Normal file
|
@ -0,0 +1,32 @@
|
|||
// 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.
|
||||
|
||||
#ifndef SHELL_BROWSER_EXTENSIONS_ELECTRON_EXTENSIONS_API_CLIENT_H_
|
||||
#define SHELL_BROWSER_EXTENSIONS_ELECTRON_EXTENSIONS_API_CLIENT_H_
|
||||
|
||||
#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;
|
||||
|
||||
private:
|
||||
std::unique_ptr<ElectronMessagingDelegate> messaging_delegate_;
|
||||
};
|
||||
|
||||
} // namespace extensions
|
||||
|
||||
#endif // SHELL_BROWSER_EXTENSIONS_ELECTRON_EXTENSIONS_API_CLIENT_H_
|
Loading…
Add table
Add a link
Reference in a new issue