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

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

Issue 1793793002: Remove ShellConnection::WaitForInitialize (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « content/browser/browser_main_loop.cc ('k') | content/child/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 #include "gpu/command_buffer/common/gles2_cmd_utils.h" 160 #include "gpu/command_buffer/common/gles2_cmd_utils.h"
161 #include "gpu/command_buffer/service/gpu_switches.h" 161 #include "gpu/command_buffer/service/gpu_switches.h"
162 #include "ipc/attachment_broker.h" 162 #include "ipc/attachment_broker.h"
163 #include "ipc/attachment_broker_privileged.h" 163 #include "ipc/attachment_broker_privileged.h"
164 #include "ipc/ipc_channel.h" 164 #include "ipc/ipc_channel.h"
165 #include "ipc/ipc_logging.h" 165 #include "ipc/ipc_logging.h"
166 #include "ipc/ipc_switches.h" 166 #include "ipc/ipc_switches.h"
167 #include "ipc/mojo/ipc_channel_mojo.h" 167 #include "ipc/mojo/ipc_channel_mojo.h"
168 #include "media/base/media_switches.h" 168 #include "media/base/media_switches.h"
169 #include "mojo/edk/embedder/embedder.h" 169 #include "mojo/edk/embedder/embedder.h"
170 #include "mojo/shell/runner/common/switches.h"
170 #include "net/url_request/url_request_context_getter.h" 171 #include "net/url_request/url_request_context_getter.h"
171 #include "ppapi/shared_impl/ppapi_switches.h" 172 #include "ppapi/shared_impl/ppapi_switches.h"
172 #include "storage/browser/fileapi/sandbox_file_system_backend.h" 173 #include "storage/browser/fileapi/sandbox_file_system_backend.h"
173 #include "third_party/skia/include/core/SkBitmap.h" 174 #include "third_party/skia/include/core/SkBitmap.h"
174 #include "ui/base/ui_base_switches.h" 175 #include "ui/base/ui_base_switches.h"
175 #include "ui/events/event_switches.h" 176 #include "ui/events/event_switches.h"
176 #include "ui/gfx/switches.h" 177 #include "ui/gfx/switches.h"
177 #include "ui/gl/gl_switches.h" 178 #include "ui/gl/gl_switches.h"
178 #include "ui/gl/gpu_switching_manager.h" 179 #include "ui/gl/gpu_switching_manager.h"
179 #include "ui/native_theme/native_theme_switches.h" 180 #include "ui/native_theme/native_theme_switches.h"
(...skipping 1449 matching lines...) Expand 10 before | Expand all | Expand 10 after
1629 if (browser_cmd.HasSwitch(switches::kWaitForDebuggerChildren)) { 1630 if (browser_cmd.HasSwitch(switches::kWaitForDebuggerChildren)) {
1630 // Look to pass-on the kWaitForDebugger flag. 1631 // Look to pass-on the kWaitForDebugger flag.
1631 std::string value = 1632 std::string value =
1632 browser_cmd.GetSwitchValueASCII(switches::kWaitForDebuggerChildren); 1633 browser_cmd.GetSwitchValueASCII(switches::kWaitForDebuggerChildren);
1633 if (value.empty() || value == switches::kRendererProcess) { 1634 if (value.empty() || value == switches::kRendererProcess) {
1634 renderer_cmd->AppendSwitch(switches::kWaitForDebugger); 1635 renderer_cmd->AppendSwitch(switches::kWaitForDebugger);
1635 } 1636 }
1636 } 1637 }
1637 1638
1638 if (!shell_pipe_token_.empty()) { 1639 if (!shell_pipe_token_.empty()) {
1639 renderer_cmd->AppendSwitchASCII(switches::kMojoPrimordialPipeToken, 1640 renderer_cmd->AppendSwitchASCII(switches::kPrimordialPipeToken,
1640 shell_pipe_token_); 1641 shell_pipe_token_);
1641 } 1642 }
1642 1643
1643 #if defined(OS_WIN) && !defined(OFFICIAL_BUILD) 1644 #if defined(OS_WIN) && !defined(OFFICIAL_BUILD)
1644 // Needed because we can't show the dialog from the sandbox. Don't pass 1645 // Needed because we can't show the dialog from the sandbox. Don't pass
1645 // --no-sandbox in official builds because that would bypass the bad_flgs 1646 // --no-sandbox in official builds because that would bypass the bad_flgs
1646 // prompt. 1647 // prompt.
1647 if (renderer_cmd->HasSwitch(switches::kRendererStartupDialog) && 1648 if (renderer_cmd->HasSwitch(switches::kRendererStartupDialog) &&
1648 !renderer_cmd->HasSwitch(switches::kNoSandbox)) { 1649 !renderer_cmd->HasSwitch(switches::kNoSandbox)) {
1649 renderer_cmd->AppendSwitch(switches::kNoSandbox); 1650 renderer_cmd->AppendSwitch(switches::kNoSandbox);
(...skipping 1169 matching lines...) Expand 10 before | Expand all | Expand 10 after
2819 2820
2820 // Skip widgets in other processes. 2821 // Skip widgets in other processes.
2821 if (rvh->GetProcess()->GetID() != GetID()) 2822 if (rvh->GetProcess()->GetID() != GetID())
2822 continue; 2823 continue;
2823 2824
2824 rvh->OnWebkitPreferencesChanged(); 2825 rvh->OnWebkitPreferencesChanged();
2825 } 2826 }
2826 } 2827 }
2827 2828
2828 } // namespace content 2829 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/browser_main_loop.cc ('k') | content/child/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698