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 <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <set> | 9 #include <set> |
10 | 10 |
(...skipping 667 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
678 | 678 |
679 void ChromeContentBrowserClientExtensionsPart:: | 679 void ChromeContentBrowserClientExtensionsPart:: |
680 AppendExtraRendererCommandLineSwitches(base::CommandLine* command_line, | 680 AppendExtraRendererCommandLineSwitches(base::CommandLine* command_line, |
681 content::RenderProcessHost* process, | 681 content::RenderProcessHost* process, |
682 Profile* profile) { | 682 Profile* profile) { |
683 if (!process) | 683 if (!process) |
684 return; | 684 return; |
685 DCHECK(profile); | 685 DCHECK(profile); |
686 if (ProcessMap::Get(profile)->Contains(process->GetID())) { | 686 if (ProcessMap::Get(profile)->Contains(process->GetID())) { |
687 command_line->AppendSwitch(switches::kExtensionProcess); | 687 command_line->AppendSwitch(switches::kExtensionProcess); |
688 #if defined(ENABLE_WEBRTC) | |
689 command_line->AppendSwitch(::switches::kEnableWebRtcHWH264Encoding); | |
690 #endif | |
691 } | 688 } |
692 } | 689 } |
693 | 690 |
694 void ChromeContentBrowserClientExtensionsPart::ResourceDispatcherHostCreated() { | 691 void ChromeContentBrowserClientExtensionsPart::ResourceDispatcherHostCreated() { |
695 content::ResourceDispatcherHost::Get()->RegisterInterceptor( | 692 content::ResourceDispatcherHost::Get()->RegisterInterceptor( |
696 "Origin", kExtensionScheme, base::Bind(&OnHttpHeaderReceived)); | 693 "Origin", kExtensionScheme, base::Bind(&OnHttpHeaderReceived)); |
697 } | 694 } |
698 | 695 |
699 } // namespace extensions | 696 } // namespace extensions |
OLD | NEW |