• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2015 The Chromium Embedded Framework Authors.
2 // Portions copyright 2014 The Chromium Authors. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file.
5 
6 #ifndef CEF_LIBCEF_BROWSER_EXTENSIONS_EXTENSIONS_API_CLIENT_H_
7 #define CEF_LIBCEF_BROWSER_EXTENSIONS_EXTENSIONS_API_CLIENT_H_
8 
9 #include "extensions/browser/api/extensions_api_client.h"
10 
11 namespace extensions {
12 
13 class CefExtensionsAPIClient : public ExtensionsAPIClient {
14  public:
15   CefExtensionsAPIClient();
16 
17   // ExtensionsAPIClient implementation.
18   AppViewGuestDelegate* CreateAppViewGuestDelegate() const override;
19   std::unique_ptr<guest_view::GuestViewManagerDelegate>
20   CreateGuestViewManagerDelegate(
21       content::BrowserContext* context) const override;
22   std::unique_ptr<MimeHandlerViewGuestDelegate>
23   CreateMimeHandlerViewGuestDelegate(
24       MimeHandlerViewGuest* guest) const override;
25   void AttachWebContentsHelpers(
26       content::WebContents* web_contents) const override;
27 
28   // Storage API support.
29 
30   // Add any additional value store caches (e.g. for chrome.storage.managed)
31   // to |caches|. By default adds nothing.
32   void AddAdditionalValueStoreCaches(
33       content::BrowserContext* context,
34       const scoped_refptr<ValueStoreFactory>& factory,
35       const scoped_refptr<base::ObserverListThreadSafe<SettingsObserver>>&
36           observers,
37       std::map<settings_namespace::Namespace, ValueStoreCache*>* caches)
38       override;
39 };
40 
41 }  // namespace extensions
42 
43 #endif  // CEF_LIBCEF_BROWSER_EXTENSIONS_EXTENSIONS_API_CLIENT_H_
44