Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(620)

Side by Side Diff: extensions/browser/api/extensions_api_client.cc

Issue 498303002: AppView internal API doesn't need to go through ExtensionsAPIClient anymore, since AppView is now i… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « extensions/browser/api/extensions_api_client.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "extensions/browser/api/extensions_api_client.h" 5 #include "extensions/browser/api/extensions_api_client.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 8
9 namespace extensions { 9 namespace extensions {
10 class AppViewGuestDelegate; 10 class AppViewGuestDelegate;
11 11
12 namespace { 12 namespace {
13 ExtensionsAPIClient* g_instance = NULL; 13 ExtensionsAPIClient* g_instance = NULL;
14 } // namespace 14 } // namespace
15 15
16 ExtensionsAPIClient::ExtensionsAPIClient() { g_instance = this; } 16 ExtensionsAPIClient::ExtensionsAPIClient() { g_instance = this; }
17 17
18 ExtensionsAPIClient::~ExtensionsAPIClient() { g_instance = NULL; } 18 ExtensionsAPIClient::~ExtensionsAPIClient() { g_instance = NULL; }
19 19
20 // static 20 // static
21 ExtensionsAPIClient* ExtensionsAPIClient::Get() { return g_instance; } 21 ExtensionsAPIClient* ExtensionsAPIClient::Get() { return g_instance; }
22 22
23 void ExtensionsAPIClient::AddAdditionalValueStoreCaches( 23 void ExtensionsAPIClient::AddAdditionalValueStoreCaches(
24 content::BrowserContext* context, 24 content::BrowserContext* context,
25 const scoped_refptr<SettingsStorageFactory>& factory, 25 const scoped_refptr<SettingsStorageFactory>& factory,
26 const scoped_refptr<ObserverListThreadSafe<SettingsObserver> >& observers, 26 const scoped_refptr<ObserverListThreadSafe<SettingsObserver> >& observers,
27 std::map<settings_namespace::Namespace, ValueStoreCache*>* caches) {} 27 std::map<settings_namespace::Namespace, ValueStoreCache*>* caches) {}
28 28
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;
35 }
36
37 bool ExtensionsAPIClient::AppViewInternalDenyRequest(
38 content::BrowserContext* browser_context,
39 int guest_instance_id,
40 const std::string& guest_extension_id) {
41 return false;
42 }
43
44 AppViewGuestDelegate* ExtensionsAPIClient::CreateAppViewGuestDelegate() const { 29 AppViewGuestDelegate* ExtensionsAPIClient::CreateAppViewGuestDelegate() const {
45 return NULL; 30 return NULL;
46 } 31 }
47 32
48 device::HidService* ExtensionsAPIClient::GetHidService() { 33 device::HidService* ExtensionsAPIClient::GetHidService() {
49 // This should never be called by clients which don't support the HID API. 34 // This should never be called by clients which don't support the HID API.
50 NOTIMPLEMENTED(); 35 NOTIMPLEMENTED();
51 return NULL; 36 return NULL;
52 } 37 }
53 38
54 WebViewGuestDelegate* ExtensionsAPIClient::CreateWebViewGuestDelegate( 39 WebViewGuestDelegate* ExtensionsAPIClient::CreateWebViewGuestDelegate(
55 WebViewGuest* web_view_guest) const { 40 WebViewGuest* web_view_guest) const {
56 return NULL; 41 return NULL;
57 } 42 }
58 43
59 WebViewPermissionHelperDelegate* ExtensionsAPIClient:: 44 WebViewPermissionHelperDelegate* ExtensionsAPIClient::
60 CreateWebViewPermissionHelperDelegate( 45 CreateWebViewPermissionHelperDelegate(
61 WebViewPermissionHelper* web_view_permission_helper) const { 46 WebViewPermissionHelper* web_view_permission_helper) const {
62 return NULL; 47 return NULL;
63 } 48 }
64 49
65 } // namespace extensions 50 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/browser/api/extensions_api_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698