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

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

Issue 562353002: Refactor ExtensionOptionsGuestDelegate to have an ExtensionOptionsGuest (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments 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 "extensions/browser/api/extensions_api_client.h" 9 #include "extensions/browser/api/extensions_api_client.h"
10 10
11 namespace extensions { 11 namespace extensions {
12 12
13 // Extra support for extensions APIs in Chrome. 13 // Extra support for extensions APIs in Chrome.
14 class ChromeExtensionsAPIClient : public ExtensionsAPIClient { 14 class ChromeExtensionsAPIClient : public ExtensionsAPIClient {
15 public: 15 public:
16 ChromeExtensionsAPIClient(); 16 ChromeExtensionsAPIClient();
17 virtual ~ChromeExtensionsAPIClient(); 17 virtual ~ChromeExtensionsAPIClient();
18 18
19 // ExtensionsApiClient implementation. 19 // ExtensionsApiClient implementation.
20 virtual void AddAdditionalValueStoreCaches( 20 virtual void AddAdditionalValueStoreCaches(
21 content::BrowserContext* context, 21 content::BrowserContext* context,
22 const scoped_refptr<SettingsStorageFactory>& factory, 22 const scoped_refptr<SettingsStorageFactory>& factory,
23 const scoped_refptr<ObserverListThreadSafe<SettingsObserver> >& observers, 23 const scoped_refptr<ObserverListThreadSafe<SettingsObserver> >& observers,
24 std::map<settings_namespace::Namespace, ValueStoreCache*>* caches) 24 std::map<settings_namespace::Namespace, ValueStoreCache*>* caches)
25 OVERRIDE; 25 OVERRIDE;
26 virtual AppViewGuestDelegate* CreateAppViewGuestDelegate() const OVERRIDE; 26 virtual AppViewGuestDelegate* CreateAppViewGuestDelegate() const OVERRIDE;
27 virtual ExtensionOptionsGuestDelegate* CreateExtensionOptionsGuestDelegate() 27 virtual ExtensionOptionsGuestDelegate* CreateExtensionOptionsGuestDelegate(
28 const OVERRIDE; 28 ExtensionOptionsGuest* guest) const OVERRIDE;
29 virtual scoped_ptr<MimeHandlerViewGuestDelegate> 29 virtual scoped_ptr<MimeHandlerViewGuestDelegate>
30 CreateMimeHandlerViewGuestDelegate( 30 CreateMimeHandlerViewGuestDelegate(
31 MimeHandlerViewGuest* guest) const OVERRIDE; 31 MimeHandlerViewGuest* guest) const OVERRIDE;
32 virtual WebViewGuestDelegate* CreateWebViewGuestDelegate( 32 virtual WebViewGuestDelegate* CreateWebViewGuestDelegate(
33 WebViewGuest* web_view_guest) const OVERRIDE; 33 WebViewGuest* web_view_guest) const OVERRIDE;
34 virtual WebViewPermissionHelperDelegate* 34 virtual WebViewPermissionHelperDelegate*
35 CreateWebViewPermissionHelperDelegate( 35 CreateWebViewPermissionHelperDelegate(
36 WebViewPermissionHelper* web_view_permission_helper) const OVERRIDE; 36 WebViewPermissionHelper* web_view_permission_helper) const OVERRIDE;
37 virtual scoped_refptr<RulesRegistry> GetRulesRegistry( 37 virtual scoped_refptr<RulesRegistry> GetRulesRegistry(
38 content::BrowserContext* browser_context, 38 content::BrowserContext* browser_context,
39 const RulesRegistry::WebViewKey& webview_key, 39 const RulesRegistry::WebViewKey& webview_key,
40 const std::string& event_name) OVERRIDE; 40 const std::string& event_name) OVERRIDE;
41 41
42 private: 42 private:
43 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionsAPIClient); 43 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionsAPIClient);
44 }; 44 };
45 45
46 } // namespace extensions 46 } // namespace extensions
47 47
48 #endif // CHROME_BROWSER_EXTENSIONS_API_CHROME_EXTENSIONS_API_CLIENT_H_ 48 #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