Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(566)

Side by Side Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 2194893002: services/ui: Revert CLs that broke Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 #endif 228 #endif
229 229
230 #if defined(ENABLE_WEBRTC) 230 #if defined(ENABLE_WEBRTC)
231 #include "content/browser/media/webrtc/webrtc_internals.h" 231 #include "content/browser/media/webrtc/webrtc_internals.h"
232 #include "content/browser/renderer_host/media/media_stream_track_metrics_host.h" 232 #include "content/browser/renderer_host/media/media_stream_track_metrics_host.h"
233 #include "content/browser/renderer_host/p2p/socket_dispatcher_host.h" 233 #include "content/browser/renderer_host/p2p/socket_dispatcher_host.h"
234 #include "content/common/media/aec_dump_messages.h" 234 #include "content/common/media/aec_dump_messages.h"
235 #include "content/common/media/media_stream_messages.h" 235 #include "content/common/media/media_stream_messages.h"
236 #endif 236 #endif
237 237
238 #if defined(MOJO_SHELL_CLIENT) && defined(USE_AURA)
239 #include "services/ui/common/switches.h" // nogncheck
240 #endif
241
238 #if defined(USE_MINIKIN_HYPHENATION) 242 #if defined(USE_MINIKIN_HYPHENATION)
239 #include "content/browser/hyphenation/hyphenation_impl.h" 243 #include "content/browser/hyphenation/hyphenation_impl.h"
240 #endif 244 #endif
241 245
242 #if defined(OS_WIN) 246 #if defined(OS_WIN)
243 #define IntToStringType base::IntToString16 247 #define IntToStringType base::IntToString16
244 #else 248 #else
245 #define IntToStringType base::IntToString 249 #define IntToStringType base::IntToString
246 #endif 250 #endif
247 251
(...skipping 1326 matching lines...) Expand 10 before | Expand all | Expand 10 after
1574 #endif 1578 #endif
1575 #if defined(OS_CHROMEOS) 1579 #if defined(OS_CHROMEOS)
1576 switches::kDisableVaapiAcceleratedVideoEncode, 1580 switches::kDisableVaapiAcceleratedVideoEncode,
1577 #endif 1581 #endif
1578 #if defined(ENABLE_IPC_FUZZER) 1582 #if defined(ENABLE_IPC_FUZZER)
1579 switches::kIpcDumpDirectory, 1583 switches::kIpcDumpDirectory,
1580 switches::kIpcFuzzerTestcase, 1584 switches::kIpcFuzzerTestcase,
1581 #endif 1585 #endif
1582 #if defined(MOJO_SHELL_CLIENT) && defined(USE_AURA) 1586 #if defined(MOJO_SHELL_CLIENT) && defined(USE_AURA)
1583 switches::kUseMusInRenderer, 1587 switches::kUseMusInRenderer,
1588 ui::switches::kUseMojoGpuCommandBufferInMus,
1584 #endif 1589 #endif
1585 }; 1590 };
1586 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames, 1591 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames,
1587 arraysize(kSwitchNames)); 1592 arraysize(kSwitchNames));
1588 1593
1589 BrowserChildProcessHostImpl::CopyFeatureAndFieldTrialFlags(renderer_cmd); 1594 BrowserChildProcessHostImpl::CopyFeatureAndFieldTrialFlags(renderer_cmd);
1590 1595
1591 if (browser_cmd.HasSwitch(switches::kTraceStartup) && 1596 if (browser_cmd.HasSwitch(switches::kTraceStartup) &&
1592 BrowserMainLoop::GetInstance()->is_tracing_startup_for_duration()) { 1597 BrowserMainLoop::GetInstance()->is_tracing_startup_for_duration()) {
1593 // Pass kTraceStartup switch to renderer only if startup tracing has not 1598 // Pass kTraceStartup switch to renderer only if startup tracing has not
(...skipping 1168 matching lines...) Expand 10 before | Expand all | Expand 10 after
2762 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; 2767 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error;
2763 2768
2764 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias 2769 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias
2765 // enough information here so that we can determine what the bad message was. 2770 // enough information here so that we can determine what the bad message was.
2766 base::debug::Alias(&error); 2771 base::debug::Alias(&error);
2767 bad_message::ReceivedBadMessage(process.get(), 2772 bad_message::ReceivedBadMessage(process.get(),
2768 bad_message::RPH_MOJO_PROCESS_ERROR); 2773 bad_message::RPH_MOJO_PROCESS_ERROR);
2769 } 2774 }
2770 2775
2771 } // namespace content 2776 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/gpu/gpu_data_manager_impl_private.cc ('k') | content/renderer/mus/render_widget_mus_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698