OLD | NEW |
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 #include "apps/shell/browser/shell_extensions_browser_client.h" | 5 #include "apps/shell/browser/shell_extensions_browser_client.h" |
6 | 6 |
7 #include "apps/common/api/generated_api.h" | 7 #include "apps/common/api/generated_api.h" |
8 #include "apps/shell/browser/shell_app_sorting.h" | 8 #include "apps/shell/browser/shell_app_sorting.h" |
9 #include "apps/shell/browser/shell_extension_system_factory.h" | 9 #include "apps/shell/browser/shell_extension_system_factory.h" |
10 #include "apps/shell/browser/shell_extension_web_contents_observer.h" | 10 #include "apps/shell/browser/shell_extension_web_contents_observer.h" |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 scoped_ptr<ExtensionHostDelegate> | 167 scoped_ptr<ExtensionHostDelegate> |
168 ShellExtensionsBrowserClient::CreateExtensionHostDelegate() { | 168 ShellExtensionsBrowserClient::CreateExtensionHostDelegate() { |
169 return scoped_ptr<ExtensionHostDelegate>(new ShellExtensionHostDelegate); | 169 return scoped_ptr<ExtensionHostDelegate>(new ShellExtensionHostDelegate); |
170 } | 170 } |
171 | 171 |
172 bool ShellExtensionsBrowserClient::DidVersionUpdate(BrowserContext* context) { | 172 bool ShellExtensionsBrowserClient::DidVersionUpdate(BrowserContext* context) { |
173 // TODO(jamescook): We might want to tell extensions when app_shell updates. | 173 // TODO(jamescook): We might want to tell extensions when app_shell updates. |
174 return false; | 174 return false; |
175 } | 175 } |
176 | 176 |
177 void ShellExtensionsBrowserClient::PermitExternalProtocolHandler() { | |
178 } | |
179 | |
180 scoped_ptr<AppSorting> ShellExtensionsBrowserClient::CreateAppSorting() { | 177 scoped_ptr<AppSorting> ShellExtensionsBrowserClient::CreateAppSorting() { |
181 return scoped_ptr<AppSorting>(new apps::ShellAppSorting); | 178 return scoped_ptr<AppSorting>(new apps::ShellAppSorting); |
182 } | 179 } |
183 | 180 |
184 bool ShellExtensionsBrowserClient::IsRunningInForcedAppMode() { | 181 bool ShellExtensionsBrowserClient::IsRunningInForcedAppMode() { |
185 return false; | 182 return false; |
186 } | 183 } |
187 | 184 |
188 ApiActivityMonitor* ShellExtensionsBrowserClient::GetApiActivityMonitor( | 185 ApiActivityMonitor* ShellExtensionsBrowserClient::GetApiActivityMonitor( |
189 BrowserContext* context) { | 186 BrowserContext* context) { |
(...skipping 11 matching lines...) Expand all Loading... |
201 // Generated APIs from lower-level modules. | 198 // Generated APIs from lower-level modules. |
202 extensions::core_api::GeneratedFunctionRegistry::RegisterAll(registry); | 199 extensions::core_api::GeneratedFunctionRegistry::RegisterAll(registry); |
203 apps::api::GeneratedFunctionRegistry::RegisterAll(registry); | 200 apps::api::GeneratedFunctionRegistry::RegisterAll(registry); |
204 | 201 |
205 // TODO(rockot): Remove dependency on src/chrome once we have some core APIs | 202 // TODO(rockot): Remove dependency on src/chrome once we have some core APIs |
206 // moved out. See http://crbug.com/349042. | 203 // moved out. See http://crbug.com/349042. |
207 extensions::api::GeneratedFunctionRegistry::RegisterAll(registry); | 204 extensions::api::GeneratedFunctionRegistry::RegisterAll(registry); |
208 } | 205 } |
209 | 206 |
210 } // namespace extensions | 207 } // namespace extensions |
OLD | NEW |