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 "chrome/browser/extensions/chrome_content_browser_client_extensions_par
t.h" | 5 #include "chrome/browser/extensions/chrome_content_browser_client_extensions_par
t.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "chrome/browser/browser_process.h" | 10 #include "chrome/browser/browser_process.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 #include "chrome/common/chrome_constants.h" | 22 #include "chrome/common/chrome_constants.h" |
23 #include "chrome/common/extensions/extension_constants.h" | 23 #include "chrome/common/extensions/extension_constants.h" |
24 #include "chrome/common/extensions/extension_process_policy.h" | 24 #include "chrome/common/extensions/extension_process_policy.h" |
25 #include "chrome/common/extensions/manifest_handlers/app_isolation_info.h" | 25 #include "chrome/common/extensions/manifest_handlers/app_isolation_info.h" |
26 #include "content/public/browser/browser_thread.h" | 26 #include "content/public/browser/browser_thread.h" |
27 #include "content/public/browser/browser_url_handler.h" | 27 #include "content/public/browser/browser_url_handler.h" |
28 #include "content/public/browser/render_process_host.h" | 28 #include "content/public/browser/render_process_host.h" |
29 #include "content/public/browser/render_view_host.h" | 29 #include "content/public/browser/render_view_host.h" |
30 #include "content/public/browser/site_instance.h" | 30 #include "content/public/browser/site_instance.h" |
31 #include "content/public/browser/web_contents.h" | 31 #include "content/public/browser/web_contents.h" |
| 32 #include "content/public/common/content_switches.h" |
32 #include "extensions/browser/extension_host.h" | 33 #include "extensions/browser/extension_host.h" |
33 #include "extensions/browser/extension_message_filter.h" | 34 #include "extensions/browser/extension_message_filter.h" |
34 #include "extensions/browser/extension_registry.h" | 35 #include "extensions/browser/extension_registry.h" |
35 #include "extensions/browser/extension_system.h" | 36 #include "extensions/browser/extension_system.h" |
36 #include "extensions/browser/info_map.h" | 37 #include "extensions/browser/info_map.h" |
37 #include "extensions/browser/view_type_utils.h" | 38 #include "extensions/browser/view_type_utils.h" |
38 #include "extensions/common/constants.h" | 39 #include "extensions/common/constants.h" |
39 #include "extensions/common/manifest_handlers/background_info.h" | 40 #include "extensions/common/manifest_handlers/background_info.h" |
40 #include "extensions/common/manifest_handlers/web_accessible_resources_info.h" | 41 #include "extensions/common/manifest_handlers/web_accessible_resources_info.h" |
41 #include "extensions/common/switches.h" | 42 #include "extensions/common/switches.h" |
(...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
519 Profile::FromBrowserContext(browser_context))); | 520 Profile::FromBrowserContext(browser_context))); |
520 } | 521 } |
521 | 522 |
522 void ChromeContentBrowserClientExtensionsPart:: | 523 void ChromeContentBrowserClientExtensionsPart:: |
523 AppendExtraRendererCommandLineSwitches(base::CommandLine* command_line, | 524 AppendExtraRendererCommandLineSwitches(base::CommandLine* command_line, |
524 content::RenderProcessHost* process, | 525 content::RenderProcessHost* process, |
525 Profile* profile) { | 526 Profile* profile) { |
526 if (!process) | 527 if (!process) |
527 return; | 528 return; |
528 DCHECK(profile); | 529 DCHECK(profile); |
529 if (ProcessMap::Get(profile)->Contains(process->GetID())) | 530 if (ProcessMap::Get(profile)->Contains(process->GetID())) { |
530 command_line->AppendSwitch(switches::kExtensionProcess); | 531 command_line->AppendSwitch(switches::kExtensionProcess); |
| 532 #if defined(ENABLE_WEBRTC) |
| 533 command_line->AppendSwitch(::switches::kEnableWebRtcHWH264Encoding); |
| 534 #endif |
| 535 } |
531 } | 536 } |
532 | 537 |
533 } // namespace extensions | 538 } // namespace extensions |
OLD | NEW |