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_
|
|
|
|
|
|
|
|
#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>
|
2015-11-10 21:18:16 +01:00
|
|
|
CreateGuestViewManagerDelegate(
|
|
|
|
content::BrowserContext* context) 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;
|
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,
|
|
|
|
const scoped_refptr<ValueStoreFactory>& factory,
|
|
|
|
const scoped_refptr<base::ObserverListThreadSafe<SettingsObserver>>&
|
|
|
|
observers,
|
|
|
|
std::map<settings_namespace::Namespace, ValueStoreCache*>* caches)
|
|
|
|
override;
|
2015-07-16 23:40:01 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace extensions
|
|
|
|
|
|
|
|
#endif // CEF_LIBCEF_BROWSER_EXTENSIONS_EXTENSIONS_API_CLIENT_H_
|