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

Side by Side Diff: extensions/browser/extensions_browser_client.h

Issue 221283006: Revert of Fix the handling of user gestures for external protocol handler dialogs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_EXTENSIONS_BROWSER_CLIENT_H_ 5 #ifndef EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_
6 #define EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ 6 #define EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 99
100 // Creates a new ExtensionHostDelegate instance. 100 // Creates a new ExtensionHostDelegate instance.
101 virtual scoped_ptr<ExtensionHostDelegate> CreateExtensionHostDelegate() = 0; 101 virtual scoped_ptr<ExtensionHostDelegate> CreateExtensionHostDelegate() = 0;
102 102
103 // Returns true if the client version has updated since the last run. Called 103 // Returns true if the client version has updated since the last run. Called
104 // once each time the extensions system is loaded per browser_context. The 104 // once each time the extensions system is loaded per browser_context. The
105 // implementation may wish to use the BrowserContext to record the current 105 // implementation may wish to use the BrowserContext to record the current
106 // version for later comparison. 106 // version for later comparison.
107 virtual bool DidVersionUpdate(content::BrowserContext* context) = 0; 107 virtual bool DidVersionUpdate(content::BrowserContext* context) = 0;
108 108
109 // Permits an external protocol handler to be launched. See
110 // ExternalProtocolHandler::PermitLaunchUrl() in Chrome.
111 virtual void PermitExternalProtocolHandler() = 0;
112
109 // Creates a new AppSorting instance. 113 // Creates a new AppSorting instance.
110 virtual scoped_ptr<AppSorting> CreateAppSorting() = 0; 114 virtual scoped_ptr<AppSorting> CreateAppSorting() = 0;
111 115
112 // Return true if the system is run in forced app mode. 116 // Return true if the system is run in forced app mode.
113 virtual bool IsRunningInForcedAppMode() = 0; 117 virtual bool IsRunningInForcedAppMode() = 0;
114 118
115 // Returns the embedder's ApiActivityMonitor for |context|. Returns NULL if 119 // Returns the embedder's ApiActivityMonitor for |context|. Returns NULL if
116 // the embedder does not monitor extension API activity. 120 // the embedder does not monitor extension API activity.
117 virtual ApiActivityMonitor* GetApiActivityMonitor( 121 virtual ApiActivityMonitor* GetApiActivityMonitor(
118 content::BrowserContext* context) = 0; 122 content::BrowserContext* context) = 0;
119 123
120 // Returns the factory that provides an ExtensionSystem to be returned from 124 // Returns the factory that provides an ExtensionSystem to be returned from
121 // ExtensionSystem::Get. 125 // ExtensionSystem::Get.
122 virtual ExtensionSystemProvider* GetExtensionSystemFactory() = 0; 126 virtual ExtensionSystemProvider* GetExtensionSystemFactory() = 0;
123 127
124 // Registers extension functions not belonging to the core extensions APIs. 128 // Registers extension functions not belonging to the core extensions APIs.
125 virtual void RegisterExtensionFunctions( 129 virtual void RegisterExtensionFunctions(
126 ExtensionFunctionRegistry* registry) const = 0; 130 ExtensionFunctionRegistry* registry) const = 0;
127 131
128 // Returns the single instance of |this|. 132 // Returns the single instance of |this|.
129 static ExtensionsBrowserClient* Get(); 133 static ExtensionsBrowserClient* Get();
130 134
131 // Initialize the single instance. 135 // Initialize the single instance.
132 static void Set(ExtensionsBrowserClient* client); 136 static void Set(ExtensionsBrowserClient* client);
133 }; 137 };
134 138
135 } // namespace extensions 139 } // namespace extensions
136 140
137 #endif // EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ 141 #endif // EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « extensions/browser/extension_function_dispatcher.cc ('k') | extensions/browser/test_extensions_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698