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

Side by Side Diff: content/browser/utility_process_host_impl.cc

Issue 2867213004: [Mojo Video Capture] Hook up video capture service behind a feature flag (Closed)
Patch Set: Rebase to May 19th Created 3 years, 7 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/service_manager/service_manager_context.cc ('k') | content/public/app/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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 #include "content/browser/utility_process_host_impl.h" 5 #include "content/browser/utility_process_host_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/base_switches.h" 9 #include "base/base_switches.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 21 matching lines...) Expand all
32 #include "content/public/browser/browser_thread.h" 32 #include "content/public/browser/browser_thread.h"
33 #include "content/public/browser/content_browser_client.h" 33 #include "content/public/browser/content_browser_client.h"
34 #include "content/public/browser/utility_process_host_client.h" 34 #include "content/public/browser/utility_process_host_client.h"
35 #include "content/public/common/content_switches.h" 35 #include "content/public/common/content_switches.h"
36 #include "content/public/common/mojo_channel_switches.h" 36 #include "content/public/common/mojo_channel_switches.h"
37 #include "content/public/common/process_type.h" 37 #include "content/public/common/process_type.h"
38 #include "content/public/common/sandbox_type.h" 38 #include "content/public/common/sandbox_type.h"
39 #include "content/public/common/sandboxed_process_launcher_delegate.h" 39 #include "content/public/common/sandboxed_process_launcher_delegate.h"
40 #include "content/public/common/service_manager_connection.h" 40 #include "content/public/common/service_manager_connection.h"
41 #include "content/public/common/service_names.mojom.h" 41 #include "content/public/common/service_names.mojom.h"
42 #include "media/base/media_switches.h"
42 #include "mojo/edk/embedder/embedder.h" 43 #include "mojo/edk/embedder/embedder.h"
43 #include "services/service_manager/public/cpp/interface_provider.h" 44 #include "services/service_manager/public/cpp/interface_provider.h"
44 #include "ui/base/ui_base_switches.h" 45 #include "ui/base/ui_base_switches.h"
45 46
46 #if defined(OS_POSIX) && !defined(OS_ANDROID) && !defined(OS_MACOSX) 47 #if defined(OS_POSIX) && !defined(OS_ANDROID) && !defined(OS_MACOSX)
47 #include "content/public/browser/zygote_handle_linux.h" 48 #include "content/public/browser/zygote_handle_linux.h"
48 #endif // defined(OS_POSIX) && !defined(OS_ANDROID) && !defined(OS_MACOSX) 49 #endif // defined(OS_POSIX) && !defined(OS_ANDROID) && !defined(OS_MACOSX)
49 50
50 #if defined(OS_WIN) 51 #if defined(OS_WIN)
51 #include "sandbox/win/src/sandbox_policy.h" 52 #include "sandbox/win/src/sandbox_policy.h"
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 switches::kIgnoreCertificateErrors, 306 switches::kIgnoreCertificateErrors,
306 switches::kLogNetLog, 307 switches::kLogNetLog,
307 switches::kNoSandbox, 308 switches::kNoSandbox,
308 switches::kProfilerTiming, 309 switches::kProfilerTiming,
309 switches::kProxyServer, 310 switches::kProxyServer,
310 switches::kTestingFixedHttpPort, 311 switches::kTestingFixedHttpPort,
311 switches::kTestingFixedHttpsPort, 312 switches::kTestingFixedHttpsPort,
312 #if defined(OS_MACOSX) 313 #if defined(OS_MACOSX)
313 switches::kEnableSandboxLogging, 314 switches::kEnableSandboxLogging,
314 #endif 315 #endif
316 switches::kUseFakeDeviceForMediaStream,
317 switches::kUseFileForFakeVideoCapture,
315 }; 318 };
316 cmd_line->CopySwitchesFrom(browser_command_line, kSwitchNames, 319 cmd_line->CopySwitchesFrom(browser_command_line, kSwitchNames,
317 arraysize(kSwitchNames)); 320 arraysize(kSwitchNames));
318 321
319 if (has_cmd_prefix) { 322 if (has_cmd_prefix) {
320 // Launch the utility child process with some prefix 323 // Launch the utility child process with some prefix
321 // (usually "xterm -e gdb --args"). 324 // (usually "xterm -e gdb --args").
322 cmd_line->PrependWrapper(browser_command_line.GetSwitchValueNative( 325 cmd_line->PrependWrapper(browser_command_line.GetSwitchValueNative(
323 switches::kUtilityCmdPrefix)); 326 switches::kUtilityCmdPrefix));
324 } 327 }
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 base::WeakPtr<UtilityProcessHostImpl> host, 393 base::WeakPtr<UtilityProcessHostImpl> host,
391 int error_code) { 394 int error_code) {
392 if (!host) 395 if (!host)
393 return; 396 return;
394 397
395 host->OnProcessLaunchFailed(error_code); 398 host->OnProcessLaunchFailed(error_code);
396 delete host.get(); 399 delete host.get();
397 } 400 }
398 401
399 } // namespace content 402 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/service_manager/service_manager_context.cc ('k') | content/public/app/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698