| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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 // Represents the browser side of the browser <--> renderer communication | 5 // Represents the browser side of the browser <--> renderer communication |
| 6 // channel. There will be one RenderProcessHost per renderer process. | 6 // channel. There will be one RenderProcessHost per renderer process. |
| 7 | 7 |
| 8 #include "content/browser/renderer_host/render_process_host_impl.h" | 8 #include "content/browser/renderer_host/render_process_host_impl.h" |
| 9 | 9 |
| 10 #include <algorithm> | 10 #include <algorithm> |
| (...skipping 1556 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1567 #endif | 1567 #endif |
| 1568 #if defined(USE_OZONE) | 1568 #if defined(USE_OZONE) |
| 1569 switches::kOzonePlatform, | 1569 switches::kOzonePlatform, |
| 1570 #endif | 1570 #endif |
| 1571 #if defined(OS_CHROMEOS) | 1571 #if defined(OS_CHROMEOS) |
| 1572 switches::kDisableVaapiAcceleratedVideoEncode, | 1572 switches::kDisableVaapiAcceleratedVideoEncode, |
| 1573 #endif | 1573 #endif |
| 1574 #if defined(MOJO_SHELL_CLIENT) | 1574 #if defined(MOJO_SHELL_CLIENT) |
| 1575 switches::kUseMusInRenderer, | 1575 switches::kUseMusInRenderer, |
| 1576 #endif | 1576 #endif |
| 1577 #if defined(ENABLE_IPC_FUZZER) |
| 1578 switches::kIpcDumpDirectory, |
| 1579 switches::kIpcFuzzerTestcase, |
| 1580 #endif |
| 1577 }; | 1581 }; |
| 1578 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames, | 1582 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames, |
| 1579 arraysize(kSwitchNames)); | 1583 arraysize(kSwitchNames)); |
| 1580 | 1584 |
| 1581 BrowserChildProcessHostImpl::CopyFeatureAndFieldTrialFlags(renderer_cmd); | 1585 BrowserChildProcessHostImpl::CopyFeatureAndFieldTrialFlags(renderer_cmd); |
| 1582 | 1586 |
| 1583 if (browser_cmd.HasSwitch(switches::kTraceStartup) && | 1587 if (browser_cmd.HasSwitch(switches::kTraceStartup) && |
| 1584 BrowserMainLoop::GetInstance()->is_tracing_startup_for_duration()) { | 1588 BrowserMainLoop::GetInstance()->is_tracing_startup_for_duration()) { |
| 1585 // Pass kTraceStartup switch to renderer only if startup tracing has not | 1589 // Pass kTraceStartup switch to renderer only if startup tracing has not |
| 1586 // finished. | 1590 // finished. |
| (...skipping 1209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2796 | 2800 |
| 2797 // Skip widgets in other processes. | 2801 // Skip widgets in other processes. |
| 2798 if (rvh->GetProcess()->GetID() != GetID()) | 2802 if (rvh->GetProcess()->GetID() != GetID()) |
| 2799 continue; | 2803 continue; |
| 2800 | 2804 |
| 2801 rvh->OnWebkitPreferencesChanged(); | 2805 rvh->OnWebkitPreferencesChanged(); |
| 2802 } | 2806 } |
| 2803 } | 2807 } |
| 2804 | 2808 |
| 2805 } // namespace content | 2809 } // namespace content |
| OLD | NEW |