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

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

Issue 2196503003: Revert of 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
242 #if defined(USE_MINIKIN_HYPHENATION) 238 #if defined(USE_MINIKIN_HYPHENATION)
243 #include "content/browser/hyphenation/hyphenation_impl.h" 239 #include "content/browser/hyphenation/hyphenation_impl.h"
244 #endif 240 #endif
245 241
246 #if defined(OS_WIN) 242 #if defined(OS_WIN)
247 #define IntToStringType base::IntToString16 243 #define IntToStringType base::IntToString16
248 #else 244 #else
249 #define IntToStringType base::IntToString 245 #define IntToStringType base::IntToString
250 #endif 246 #endif
251 247
(...skipping 1326 matching lines...) Expand 10 before | Expand all | Expand 10 after
1578 #endif 1574 #endif
1579 #if defined(OS_CHROMEOS) 1575 #if defined(OS_CHROMEOS)
1580 switches::kDisableVaapiAcceleratedVideoEncode, 1576 switches::kDisableVaapiAcceleratedVideoEncode,
1581 #endif 1577 #endif
1582 #if defined(ENABLE_IPC_FUZZER) 1578 #if defined(ENABLE_IPC_FUZZER)
1583 switches::kIpcDumpDirectory, 1579 switches::kIpcDumpDirectory,
1584 switches::kIpcFuzzerTestcase, 1580 switches::kIpcFuzzerTestcase,
1585 #endif 1581 #endif
1586 #if defined(MOJO_SHELL_CLIENT) && defined(USE_AURA) 1582 #if defined(MOJO_SHELL_CLIENT) && defined(USE_AURA)
1587 switches::kUseMusInRenderer, 1583 switches::kUseMusInRenderer,
1588 ui::switches::kUseMojoGpuCommandBufferInMus,
1589 #endif 1584 #endif
1590 }; 1585 };
1591 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames, 1586 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames,
1592 arraysize(kSwitchNames)); 1587 arraysize(kSwitchNames));
1593 1588
1594 BrowserChildProcessHostImpl::CopyFeatureAndFieldTrialFlags(renderer_cmd); 1589 BrowserChildProcessHostImpl::CopyFeatureAndFieldTrialFlags(renderer_cmd);
1595 1590
1596 if (browser_cmd.HasSwitch(switches::kTraceStartup) && 1591 if (browser_cmd.HasSwitch(switches::kTraceStartup) &&
1597 BrowserMainLoop::GetInstance()->is_tracing_startup_for_duration()) { 1592 BrowserMainLoop::GetInstance()->is_tracing_startup_for_duration()) {
1598 // Pass kTraceStartup switch to renderer only if startup tracing has not 1593 // Pass kTraceStartup switch to renderer only if startup tracing has not
(...skipping 1168 matching lines...) Expand 10 before | Expand all | Expand 10 after
2767 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; 2762 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error;
2768 2763
2769 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias 2764 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias
2770 // enough information here so that we can determine what the bad message was. 2765 // enough information here so that we can determine what the bad message was.
2771 base::debug::Alias(&error); 2766 base::debug::Alias(&error);
2772 bad_message::ReceivedBadMessage(process.get(), 2767 bad_message::ReceivedBadMessage(process.get(),
2773 bad_message::RPH_MOJO_PROCESS_ERROR); 2768 bad_message::RPH_MOJO_PROCESS_ERROR);
2774 } 2769 }
2775 2770
2776 } // namespace content 2771 } // 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