2015-07-16 23:40:01 +02:00
|
|
|
// Copyright 2015 The Chromium Embedded Framework Authors.
|
|
|
|
// Portions copyright 2014 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 CEF_LIBCEF_BROWSER_EXTENSIONS_EXTENSIONS_API_CLIENT_H_
|
|
|
|
#define CEF_LIBCEF_BROWSER_EXTENSIONS_EXTENSIONS_API_CLIENT_H_
|
|
|
|
|
2021-10-19 00:17:16 +02:00
|
|
|
#include "components/value_store/value_store_factory.h"
|
2015-07-16 23:40:01 +02:00
|
|
|
#include "extensions/browser/api/extensions_api_client.h"
|
|
|
|
|
|
|
|
namespace extensions {
|
|
|
|
|
|
|
|
class CefExtensionsAPIClient : public ExtensionsAPIClient {
|
|
|
|
public:
|
|
|
|
CefExtensionsAPIClient();
|
|
|
|
|
|
|
|
// ExtensionsAPIClient implementation.
|
|
|
|
AppViewGuestDelegate* CreateAppViewGuestDelegate() const override;
|
2016-04-27 22:38:52 +02:00
|
|
|
std::unique_ptr<guest_view::GuestViewManagerDelegate>
|
2023-07-21 00:11:34 +02:00
|
|
|
CreateGuestViewManagerDelegate() const override;
|
2016-04-27 22:38:52 +02:00
|
|
|
std::unique_ptr<MimeHandlerViewGuestDelegate>
|
2015-07-16 23:40:01 +02:00
|
|
|
CreateMimeHandlerViewGuestDelegate(
|
|
|
|
MimeHandlerViewGuest* guest) const override;
|
2017-05-17 11:29:28 +02:00
|
|
|
void AttachWebContentsHelpers(
|
|
|
|
content::WebContents* web_contents) const override;
|
2021-08-19 21:05:52 +02:00
|
|
|
FileSystemDelegate* GetFileSystemDelegate() override;
|
2017-09-11 20:42:30 +02:00
|
|
|
|
|
|
|
// Storage API support.
|
|
|
|
|
|
|
|
// Add any additional value store caches (e.g. for chrome.storage.managed)
|
|
|
|
// to |caches|. By default adds nothing.
|
|
|
|
void AddAdditionalValueStoreCaches(
|
|
|
|
content::BrowserContext* context,
|
2021-09-20 11:06:23 +02:00
|
|
|
const scoped_refptr<value_store::ValueStoreFactory>& factory,
|
2022-03-26 02:12:30 +01:00
|
|
|
SettingsChangedCallback observer,
|
2017-09-11 20:42:30 +02:00
|
|
|
std::map<settings_namespace::Namespace, ValueStoreCache*>* caches)
|
|
|
|
override;
|
2021-08-19 21:05:52 +02:00
|
|
|
|
|
|
|
private:
|
|
|
|
std::unique_ptr<FileSystemDelegate> file_system_delegate_;
|
2015-07-16 23:40:01 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace extensions
|
|
|
|
|
|
|
|
#endif // CEF_LIBCEF_BROWSER_EXTENSIONS_EXTENSIONS_API_CLIENT_H_
|