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

Side by Side Diff: chrome/browser/extensions/api/chrome_extensions_api_client.h

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 | « no previous file | chrome/browser/extensions/api/chrome_extensions_api_client.cc » ('j') | 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 #ifndef CHROME_BROWSER_EXTENSIONS_API_CHROME_EXTENSIONS_API_CLIENT_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_CHROME_EXTENSIONS_API_CLIENT_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_CHROME_EXTENSIONS_API_CLIENT_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_CHROME_EXTENSIONS_API_CLIENT_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "extensions/browser/api/extensions_api_client.h" 10 #include "extensions/browser/api/extensions_api_client.h"
11 11
12 namespace extensions { 12 namespace extensions {
13 13
14 // Extra support for extensions APIs in Chrome. 14 // Extra support for extensions APIs in Chrome.
15 class ChromeExtensionsAPIClient : public ExtensionsAPIClient { 15 class ChromeExtensionsAPIClient : public ExtensionsAPIClient {
16 public: 16 public:
17 ChromeExtensionsAPIClient(); 17 ChromeExtensionsAPIClient();
18 virtual ~ChromeExtensionsAPIClient(); 18 virtual ~ChromeExtensionsAPIClient();
19 19
20 // ExtensionsApiClient implementation. 20 // ExtensionsApiClient implementation.
21 virtual void AddAdditionalValueStoreCaches( 21 virtual void AddAdditionalValueStoreCaches(
22 content::BrowserContext* context, 22 content::BrowserContext* context,
23 const scoped_refptr<SettingsStorageFactory>& factory, 23 const scoped_refptr<SettingsStorageFactory>& factory,
24 const scoped_refptr<ObserverListThreadSafe<SettingsObserver> >& observers, 24 const scoped_refptr<ObserverListThreadSafe<SettingsObserver> >& observers,
25 std::map<settings_namespace::Namespace, ValueStoreCache*>* caches) 25 std::map<settings_namespace::Namespace, ValueStoreCache*>* caches)
26 OVERRIDE; 26 OVERRIDE;
27 virtual bool AppViewInternalAttachFrame(
28 content::BrowserContext* browser_context,
29 const GURL& url,
30 int guest_instance_id,
31 const std::string& guest_extension_id) OVERRIDE;
32 virtual bool AppViewInternalDenyRequest(
33 content::BrowserContext* browser_context,
34 int guest_instance_id,
35 const std::string& guest_extension_id) OVERRIDE;
36 virtual AppViewGuestDelegate* CreateAppViewGuestDelegate() const OVERRIDE; 27 virtual AppViewGuestDelegate* CreateAppViewGuestDelegate() const OVERRIDE;
37 virtual WebViewGuestDelegate* CreateWebViewGuestDelegate( 28 virtual WebViewGuestDelegate* CreateWebViewGuestDelegate(
38 WebViewGuest* web_view_guest) const OVERRIDE; 29 WebViewGuest* web_view_guest) const OVERRIDE;
39 virtual WebViewPermissionHelperDelegate* 30 virtual WebViewPermissionHelperDelegate*
40 CreateWebViewPermissionHelperDelegate( 31 CreateWebViewPermissionHelperDelegate(
41 WebViewPermissionHelper* web_view_permission_helper) const OVERRIDE; 32 WebViewPermissionHelper* web_view_permission_helper) const OVERRIDE;
42 virtual device::HidService* GetHidService() OVERRIDE; 33 virtual device::HidService* GetHidService() OVERRIDE;
43 virtual void RegisterGuestViewTypes() OVERRIDE; 34 virtual void RegisterGuestViewTypes() OVERRIDE;
44 35
45 private: 36 private:
46 scoped_ptr<device::HidService> hid_service_; 37 scoped_ptr<device::HidService> hid_service_;
47 38
48 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionsAPIClient); 39 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionsAPIClient);
49 }; 40 };
50 41
51 } // namespace extensions 42 } // namespace extensions
52 43
53 #endif // CHROME_BROWSER_EXTENSIONS_API_CHROME_EXTENSIONS_API_CLIENT_H_ 44 #endif // CHROME_BROWSER_EXTENSIONS_API_CHROME_EXTENSIONS_API_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/api/chrome_extensions_api_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698