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

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

Issue 556723002: Add delegate to install web_contents helpers for MimeHandlerView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove fwd declaring MimeHandlerViewGuest 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/BUILD.gn ('k') | extensions/browser/api/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 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"
11 #include "base/memory/scoped_ptr.h"
11 #include "extensions/browser/api/storage/settings_namespace.h" 12 #include "extensions/browser/api/storage/settings_namespace.h"
12 13
13 class GURL; 14 class GURL;
14 15
15 template <class T> 16 template <class T>
16 class ObserverListThreadSafe; 17 class ObserverListThreadSafe;
17 18
18 namespace content { 19 namespace content {
19 class BrowserContext; 20 class BrowserContext;
20 } 21 }
21 22
22 namespace extensions { 23 namespace extensions {
23 24
24 class AppViewGuestDelegate; 25 class AppViewGuestDelegate;
26 class MimeHandlerViewGuest;
27 class MimeHandlerViewGuestDelegate;
25 class WebViewGuest; 28 class WebViewGuest;
26 class WebViewGuestDelegate; 29 class WebViewGuestDelegate;
27 class WebViewPermissionHelper; 30 class WebViewPermissionHelper;
28 class WebViewPermissionHelperDelegate; 31 class WebViewPermissionHelperDelegate;
29 class SettingsObserver; 32 class SettingsObserver;
30 class SettingsStorageFactory; 33 class SettingsStorageFactory;
31 class ValueStoreCache; 34 class ValueStoreCache;
32 35
33 // Allows the embedder of the extensions module to customize its support for 36 // Allows the embedder of the extensions module to customize its support for
34 // API features. The embedder must create a single instance in the browser 37 // API features. The embedder must create a single instance in the browser
(...skipping 15 matching lines...) Expand all
50 // to |caches|. By default adds nothing. 53 // to |caches|. By default adds nothing.
51 virtual void AddAdditionalValueStoreCaches( 54 virtual void AddAdditionalValueStoreCaches(
52 content::BrowserContext* context, 55 content::BrowserContext* context,
53 const scoped_refptr<SettingsStorageFactory>& factory, 56 const scoped_refptr<SettingsStorageFactory>& factory,
54 const scoped_refptr<ObserverListThreadSafe<SettingsObserver> >& observers, 57 const scoped_refptr<ObserverListThreadSafe<SettingsObserver> >& observers,
55 std::map<settings_namespace::Namespace, ValueStoreCache*>* caches); 58 std::map<settings_namespace::Namespace, ValueStoreCache*>* caches);
56 59
57 // Creates the AppViewGuestDelegate. 60 // Creates the AppViewGuestDelegate.
58 virtual AppViewGuestDelegate* CreateAppViewGuestDelegate() const; 61 virtual AppViewGuestDelegate* CreateAppViewGuestDelegate() const;
59 62
63 // Creates a delegate for MimeHandlerViewGuest.
64 virtual scoped_ptr<MimeHandlerViewGuestDelegate>
65 CreateMimeHandlerViewGuestDelegate(MimeHandlerViewGuest* guest) const;
66
60 // Returns a delegate for some of WebViewGuest's behavior. The caller owns the 67 // Returns a delegate for some of WebViewGuest's behavior. The caller owns the
61 // returned WebViewGuestDelegate. 68 // returned WebViewGuestDelegate.
62 virtual WebViewGuestDelegate* CreateWebViewGuestDelegate ( 69 virtual WebViewGuestDelegate* CreateWebViewGuestDelegate (
63 WebViewGuest* web_view_guest) const; 70 WebViewGuest* web_view_guest) const;
64 71
65 // Returns a delegate for some of WebViewPermissionHelper's behavior. The 72 // Returns a delegate for some of WebViewPermissionHelper's behavior. The
66 // caller owns the returned WebViewPermissionHelperDelegate. 73 // caller owns the returned WebViewPermissionHelperDelegate.
67 virtual WebViewPermissionHelperDelegate* 74 virtual WebViewPermissionHelperDelegate*
68 CreateWebViewPermissionHelperDelegate ( 75 CreateWebViewPermissionHelperDelegate (
69 WebViewPermissionHelper* web_view_permission_helper) const; 76 WebViewPermissionHelper* web_view_permission_helper) const;
70 77
71 virtual void RegisterGuestViewTypes() {} 78 virtual void RegisterGuestViewTypes() {}
72 79
73 // NOTE: If this interface gains too many methods (perhaps more than 20) it 80 // NOTE: If this interface gains too many methods (perhaps more than 20) it
74 // should be split into one interface per API. 81 // should be split into one interface per API.
75 }; 82 };
76 83
77 } // namespace extensions 84 } // namespace extensions
78 85
79 #endif // EXTENSIONS_BROWSER_API_EXTENSIONS_API_CLIENT_H_ 86 #endif // EXTENSIONS_BROWSER_API_EXTENSIONS_API_CLIENT_H_
OLDNEW
« no previous file with comments | « extensions/browser/BUILD.gn ('k') | extensions/browser/api/extensions_api_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698