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_content_browser_client.h" | 5 #include "extensions/shell/browser/shell_content_browser_client.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <utility> | 9 #include <utility> |
8 | 10 |
9 #include "base/command_line.h" | 11 #include "base/command_line.h" |
| 12 #include "base/macros.h" |
10 #include "components/guest_view/browser/guest_view_message_filter.h" | 13 #include "components/guest_view/browser/guest_view_message_filter.h" |
11 #include "content/public/browser/browser_thread.h" | 14 #include "content/public/browser/browser_thread.h" |
12 #include "content/public/browser/render_process_host.h" | 15 #include "content/public/browser/render_process_host.h" |
13 #include "content/public/browser/site_instance.h" | 16 #include "content/public/browser/site_instance.h" |
14 #include "content/public/common/content_descriptors.h" | 17 #include "content/public/common/content_descriptors.h" |
15 #include "content/public/common/content_switches.h" | 18 #include "content/public/common/content_switches.h" |
16 #include "content/public/common/url_constants.h" | 19 #include "content/public/common/url_constants.h" |
17 #include "content/shell/browser/shell_browser_context.h" | 20 #include "content/shell/browser/shell_browser_context.h" |
18 #include "content/shell/browser/shell_devtools_manager_delegate.h" | 21 #include "content/shell/browser/shell_devtools_manager_delegate.h" |
19 #include "extensions/browser/extension_message_filter.h" | 22 #include "extensions/browser/extension_message_filter.h" |
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 | 270 |
268 const Extension* ShellContentBrowserClient::GetExtension( | 271 const Extension* ShellContentBrowserClient::GetExtension( |
269 content::SiteInstance* site_instance) { | 272 content::SiteInstance* site_instance) { |
270 ExtensionRegistry* registry = | 273 ExtensionRegistry* registry = |
271 ExtensionRegistry::Get(site_instance->GetBrowserContext()); | 274 ExtensionRegistry::Get(site_instance->GetBrowserContext()); |
272 return registry->enabled_extensions().GetExtensionOrAppByURL( | 275 return registry->enabled_extensions().GetExtensionOrAppByURL( |
273 site_instance->GetSiteURL()); | 276 site_instance->GetSiteURL()); |
274 } | 277 } |
275 | 278 |
276 } // namespace extensions | 279 } // namespace extensions |
OLD | NEW |