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