Updating trunk VERSION from 2139.0 to 2140.0
[chromium-blink-merge.git] / extensions / browser / api / extensions_api_client.cc
blobb75428d2322065672de7ea33d5c413c8b496073f
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 #include "extensions/browser/api/extensions_api_client.h"
7 #include "base/logging.h"
9 namespace extensions {
10 class AppViewGuestDelegate;
12 namespace {
13 ExtensionsAPIClient* g_instance = NULL;
14 } // namespace
16 ExtensionsAPIClient::ExtensionsAPIClient() { g_instance = this; }
18 ExtensionsAPIClient::~ExtensionsAPIClient() { g_instance = NULL; }
20 // static
21 ExtensionsAPIClient* ExtensionsAPIClient::Get() { return g_instance; }
23 void ExtensionsAPIClient::AddAdditionalValueStoreCaches(
24 content::BrowserContext* context,
25 const scoped_refptr<SettingsStorageFactory>& factory,
26 const scoped_refptr<ObserverListThreadSafe<SettingsObserver> >& observers,
27 std::map<settings_namespace::Namespace, ValueStoreCache*>* caches) {}
29 bool ExtensionsAPIClient::AppViewInternalAttachFrame(
30 content::BrowserContext* browser_context,
31 const GURL& url,
32 int guest_instance_id,
33 const std::string& guest_extension_id) {
34 return false;
37 bool ExtensionsAPIClient::AppViewInternalDenyRequest(
38 content::BrowserContext* browser_context,
39 int guest_instance_id,
40 const std::string& guest_extension_id) {
41 return false;
44 AppViewGuestDelegate* ExtensionsAPIClient::CreateAppViewGuestDelegate() const {
45 return NULL;
48 device::HidService* ExtensionsAPIClient::GetHidService() {
49 // This should never be called by clients which don't support the HID API.
50 NOTIMPLEMENTED();
51 return NULL;
54 WebViewGuestDelegate* ExtensionsAPIClient::CreateWebViewGuestDelegate(
55 WebViewGuest* web_view_guest) const {
56 return NULL;
59 WebViewPermissionHelperDelegate* ExtensionsAPIClient::
60 CreateWebViewPermissionHelperDelegate(
61 WebViewPermissionHelper* web_view_permission_helper) const {
62 return NULL;
65 } // namespace extensions