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

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

Issue 1169223002: [Extensions] Clean up the handling of ExtensionHostMsg_Request (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Latest master Created 5 years, 6 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
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 EXTENSIONS_BROWSER_API_EXTENSIONS_API_CLIENT_H_ 5 #ifndef EXTENSIONS_BROWSER_API_EXTENSIONS_API_CLIENT_H_
6 #define EXTENSIONS_BROWSER_API_EXTENSIONS_API_CLIENT_H_ 6 #define EXTENSIONS_BROWSER_API_EXTENSIONS_API_CLIENT_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 13 matching lines...) Expand all
24 class WebContents; 24 class WebContents;
25 } 25 }
26 26
27 namespace extensions { 27 namespace extensions {
28 28
29 class AppViewGuestDelegate; 29 class AppViewGuestDelegate;
30 class ContentRulesRegistry; 30 class ContentRulesRegistry;
31 class DevicePermissionsPrompt; 31 class DevicePermissionsPrompt;
32 class ExtensionOptionsGuest; 32 class ExtensionOptionsGuest;
33 class ExtensionOptionsGuestDelegate; 33 class ExtensionOptionsGuestDelegate;
34 class ExtensionViewGuest;
35 class ExtensionViewGuestDelegate;
36 class ManagementAPIDelegate; 34 class ManagementAPIDelegate;
37 class MimeHandlerViewGuest; 35 class MimeHandlerViewGuest;
38 class MimeHandlerViewGuestDelegate; 36 class MimeHandlerViewGuestDelegate;
39 class WebViewGuest; 37 class WebViewGuest;
40 class WebViewGuestDelegate; 38 class WebViewGuestDelegate;
41 class WebViewPermissionHelper; 39 class WebViewPermissionHelper;
42 class WebViewPermissionHelperDelegate; 40 class WebViewPermissionHelperDelegate;
43 class WebRequestEventRouterDelegate; 41 class WebRequestEventRouterDelegate;
44 class RulesCacheDelegate; 42 class RulesCacheDelegate;
45 class SettingsObserver; 43 class SettingsObserver;
(...skipping 19 matching lines...) Expand all
65 63
66 // Add any additional value store caches (e.g. for chrome.storage.managed) 64 // Add any additional value store caches (e.g. for chrome.storage.managed)
67 // to |caches|. By default adds nothing. 65 // to |caches|. By default adds nothing.
68 virtual void AddAdditionalValueStoreCaches( 66 virtual void AddAdditionalValueStoreCaches(
69 content::BrowserContext* context, 67 content::BrowserContext* context,
70 const scoped_refptr<SettingsStorageFactory>& factory, 68 const scoped_refptr<SettingsStorageFactory>& factory,
71 const scoped_refptr<base::ObserverListThreadSafe<SettingsObserver>>& 69 const scoped_refptr<base::ObserverListThreadSafe<SettingsObserver>>&
72 observers, 70 observers,
73 std::map<settings_namespace::Namespace, ValueStoreCache*>* caches); 71 std::map<settings_namespace::Namespace, ValueStoreCache*>* caches);
74 72
73 // Attaches any extra web contents helpers (like ExtensionWebContentsObserver)
74 // to |web_contents|.
75 virtual void AttachWebContentsHelpers(content::WebContents* web_contents)
76 const;
77
75 // Creates the AppViewGuestDelegate. 78 // Creates the AppViewGuestDelegate.
76 virtual AppViewGuestDelegate* CreateAppViewGuestDelegate() const; 79 virtual AppViewGuestDelegate* CreateAppViewGuestDelegate() const;
77 80
78 // Returns a delegate for ExtensionOptionsGuest. The caller owns the returned 81 // Returns a delegate for ExtensionOptionsGuest. The caller owns the returned
79 // ExtensionOptionsGuestDelegate. 82 // ExtensionOptionsGuestDelegate.
80 virtual ExtensionOptionsGuestDelegate* CreateExtensionOptionsGuestDelegate( 83 virtual ExtensionOptionsGuestDelegate* CreateExtensionOptionsGuestDelegate(
81 ExtensionOptionsGuest* guest) const; 84 ExtensionOptionsGuest* guest) const;
82 85
83 // Returns a delegate for ExtensionViewGuest. The caller owns the returned
84 // ExtensionViewGuestDelegate.
85 virtual ExtensionViewGuestDelegate* CreateExtensionViewGuestDelegate(
86 ExtensionViewGuest* guest) const;
87
88 // Creates a delegate for MimeHandlerViewGuest. 86 // Creates a delegate for MimeHandlerViewGuest.
89 virtual scoped_ptr<MimeHandlerViewGuestDelegate> 87 virtual scoped_ptr<MimeHandlerViewGuestDelegate>
90 CreateMimeHandlerViewGuestDelegate(MimeHandlerViewGuest* guest) const; 88 CreateMimeHandlerViewGuestDelegate(MimeHandlerViewGuest* guest) const;
91 89
92 // Returns a delegate for some of WebViewGuest's behavior. The caller owns the 90 // Returns a delegate for some of WebViewGuest's behavior. The caller owns the
93 // returned WebViewGuestDelegate. 91 // returned WebViewGuestDelegate.
94 virtual WebViewGuestDelegate* CreateWebViewGuestDelegate ( 92 virtual WebViewGuestDelegate* CreateWebViewGuestDelegate (
95 WebViewGuest* web_view_guest) const; 93 WebViewGuest* web_view_guest) const;
96 94
97 // Returns a delegate for some of WebViewPermissionHelper's behavior. The 95 // Returns a delegate for some of WebViewPermissionHelper's behavior. The
(...skipping 23 matching lines...) Expand all
121 // Creates a delegate for handling the management extension api. 119 // Creates a delegate for handling the management extension api.
122 virtual ManagementAPIDelegate* CreateManagementAPIDelegate() const; 120 virtual ManagementAPIDelegate* CreateManagementAPIDelegate() const;
123 121
124 // NOTE: If this interface gains too many methods (perhaps more than 20) it 122 // NOTE: If this interface gains too many methods (perhaps more than 20) it
125 // should be split into one interface per API. 123 // should be split into one interface per API.
126 }; 124 };
127 125
128 } // namespace extensions 126 } // namespace extensions
129 127
130 #endif // EXTENSIONS_BROWSER_API_EXTENSIONS_API_CLIENT_H_ 128 #endif // EXTENSIONS_BROWSER_API_EXTENSIONS_API_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698