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

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

Issue 11293210: Move global_descriptors to base/posix. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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 | Annotate | Revision Log
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/child_process_launcher.h" 5 #include "content/browser/child_process_launcher.h"
6 6
7 #include <utility> // For std::pair. 7 #include <utility> // For std::pair.
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 18 matching lines...) Expand all
29 #elif defined(OS_ANDROID) 29 #elif defined(OS_ANDROID)
30 #include "base/android/jni_android.h" 30 #include "base/android/jni_android.h"
31 #include "content/browser/android/sandboxed_process_launcher.h" 31 #include "content/browser/android/sandboxed_process_launcher.h"
32 #elif defined(OS_POSIX) 32 #elif defined(OS_POSIX)
33 #include "base/memory/singleton.h" 33 #include "base/memory/singleton.h"
34 #include "content/browser/renderer_host/render_sandbox_host_linux.h" 34 #include "content/browser/renderer_host/render_sandbox_host_linux.h"
35 #include "content/browser/zygote_host/zygote_host_impl_linux.h" 35 #include "content/browser/zygote_host/zygote_host_impl_linux.h"
36 #endif 36 #endif
37 37
38 #if defined(OS_POSIX) 38 #if defined(OS_POSIX)
39 #include "base/global_descriptors_posix.h" 39 #include "base/posix/global_descriptors.h"
40 #endif 40 #endif
41 41
42 namespace content { 42 namespace content {
43 43
44 // Having the functionality of ChildProcessLauncher be in an internal 44 // Having the functionality of ChildProcessLauncher be in an internal
45 // ref counted object allows us to automatically terminate the process when the 45 // ref counted object allows us to automatically terminate the process when the
46 // parent class destructs, while still holding on to state that we need. 46 // parent class destructs, while still holding on to state that we need.
47 class ChildProcessLauncher::Context 47 class ChildProcessLauncher::Context
48 : public base::RefCountedThreadSafe<ChildProcessLauncher::Context> { 48 : public base::RefCountedThreadSafe<ChildProcessLauncher::Context> {
49 public: 49 public:
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after
457 GetHandle(), background)); 457 GetHandle(), background));
458 } 458 }
459 459
460 void ChildProcessLauncher::SetTerminateChildOnShutdown( 460 void ChildProcessLauncher::SetTerminateChildOnShutdown(
461 bool terminate_on_shutdown) { 461 bool terminate_on_shutdown) {
462 if (context_) 462 if (context_)
463 context_->set_terminate_child_on_shutdown(terminate_on_shutdown); 463 context_->set_terminate_child_on_shutdown(terminate_on_shutdown);
464 } 464 }
465 465
466 } // namespace content 466 } // namespace content
OLDNEW
« no previous file with comments | « content/app/content_main_runner.cc ('k') | content/common/child_process_sandbox_support_impl_linux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698