| OLD | NEW |
| 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 #include "extensions/shell/browser/shell_extensions_browser_client.h" | 5 #include "extensions/shell/browser/shell_extensions_browser_client.h" |
| 6 | 6 |
| 7 #include "content/public/browser/browser_context.h" | 7 #include "content/public/browser/browser_context.h" |
| 8 #include "content/public/browser/browser_thread.h" | 8 #include "content/public/browser/browser_thread.h" |
| 9 #include "content/public/browser/render_frame_host.h" | 9 #include "content/public/browser/render_frame_host.h" |
| 10 #include "extensions/browser/api/extensions_api_client.h" | 10 #include "extensions/browser/api/extensions_api_client.h" |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 } | 171 } |
| 172 | 172 |
| 173 ExtensionSystemProvider* | 173 ExtensionSystemProvider* |
| 174 ShellExtensionsBrowserClient::GetExtensionSystemFactory() { | 174 ShellExtensionsBrowserClient::GetExtensionSystemFactory() { |
| 175 return ShellExtensionSystemFactory::GetInstance(); | 175 return ShellExtensionSystemFactory::GetInstance(); |
| 176 } | 176 } |
| 177 | 177 |
| 178 void ShellExtensionsBrowserClient::RegisterExtensionFunctions( | 178 void ShellExtensionsBrowserClient::RegisterExtensionFunctions( |
| 179 ExtensionFunctionRegistry* registry) const { | 179 ExtensionFunctionRegistry* registry) const { |
| 180 // Register core extension-system APIs. | 180 // Register core extension-system APIs. |
| 181 core_api::GeneratedFunctionRegistry::RegisterAll(registry); | 181 api::GeneratedFunctionRegistry::RegisterAll(registry); |
| 182 | 182 |
| 183 // app_shell-only APIs. | 183 // app_shell-only APIs. |
| 184 shell::api::GeneratedFunctionRegistry::RegisterAll(registry); | 184 shell::api::ShellGeneratedFunctionRegistry::RegisterAll(registry); |
| 185 } | 185 } |
| 186 | 186 |
| 187 void ShellExtensionsBrowserClient::RegisterMojoServices( | 187 void ShellExtensionsBrowserClient::RegisterMojoServices( |
| 188 content::RenderFrameHost* render_frame_host, | 188 content::RenderFrameHost* render_frame_host, |
| 189 const Extension* extension) const { | 189 const Extension* extension) const { |
| 190 RegisterServicesForFrame(render_frame_host, extension); | 190 RegisterServicesForFrame(render_frame_host, extension); |
| 191 } | 191 } |
| 192 | 192 |
| 193 scoped_ptr<RuntimeAPIDelegate> | 193 scoped_ptr<RuntimeAPIDelegate> |
| 194 ShellExtensionsBrowserClient::CreateRuntimeAPIDelegate( | 194 ShellExtensionsBrowserClient::CreateRuntimeAPIDelegate( |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 api_client_.reset(api_client); | 240 api_client_.reset(api_client); |
| 241 } | 241 } |
| 242 | 242 |
| 243 ExtensionWebContentsObserver* | 243 ExtensionWebContentsObserver* |
| 244 ShellExtensionsBrowserClient::GetExtensionWebContentsObserver( | 244 ShellExtensionsBrowserClient::GetExtensionWebContentsObserver( |
| 245 content::WebContents* web_contents) { | 245 content::WebContents* web_contents) { |
| 246 return ShellExtensionWebContentsObserver::FromWebContents(web_contents); | 246 return ShellExtensionWebContentsObserver::FromWebContents(web_contents); |
| 247 } | 247 } |
| 248 | 248 |
| 249 } // namespace extensions | 249 } // namespace extensions |
| OLD | NEW |