1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_EXTENSIONS_API_CHROME_EXTENSIONS_API_CLIENT_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_CHROME_EXTENSIONS_API_CLIENT_H_
8 #include "base/compiler_specific.h"
9 #include "extensions/browser/api/extensions_api_client.h"
11 namespace extensions
{
13 // Extra support for extensions APIs in Chrome.
14 class ChromeExtensionsAPIClient
: public ExtensionsAPIClient
{
16 ChromeExtensionsAPIClient();
17 virtual ~ChromeExtensionsAPIClient();
19 // ExtensionsApiClient implementation.
20 virtual void AddAdditionalValueStoreCaches(
21 content::BrowserContext
* context
,
22 const scoped_refptr
<SettingsStorageFactory
>& factory
,
23 const scoped_refptr
<ObserverListThreadSafe
<SettingsObserver
> >& observers
,
24 std::map
<settings_namespace::Namespace
, ValueStoreCache
*>* caches
)
26 virtual bool AppViewInternalAttachFrame(
27 content::BrowserContext
* browser_context
,
29 int guest_instance_id
,
30 const std::string
& guest_extension_id
) OVERRIDE
;
31 virtual bool AppViewInternalDenyRequest(
32 content::BrowserContext
* browser_context
,
33 int guest_instance_id
,
34 const std::string
& guest_extension_id
) OVERRIDE
;
37 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionsAPIClient
);
40 } // namespace extensions
42 #endif // CHROME_BROWSER_EXTENSIONS_API_CHROME_EXTENSIONS_API_CLIENT_H_