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

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

Issue 7074025: Get rid of content dependency from sandbox_policy.h (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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 | Annotate | Revision Log
« no previous file with comments | « chrome/test/ui/ui_test_suite.cc ('k') | content/browser/content_browser_client.h » ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/command_line.h" 9 #include "base/command_line.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/synchronization/lock.h" 12 #include "base/synchronization/lock.h"
13 #include "base/threading/thread.h" 13 #include "base/threading/thread.h"
14 #include "chrome/common/chrome_switches.h"
15 #include "content/browser/browser_thread.h" 14 #include "content/browser/browser_thread.h"
16 #include "content/browser/content_browser_client.h" 15 #include "content/browser/content_browser_client.h"
17 #include "content/common/chrome_descriptors.h" 16 #include "content/common/chrome_descriptors.h"
17 #include "content/common/content_switches.h"
18 #include "content/common/process_watcher.h" 18 #include "content/common/process_watcher.h"
19 #include "content/common/result_codes.h" 19 #include "content/common/result_codes.h"
20 20
21 #if defined(OS_WIN) 21 #if defined(OS_WIN)
22 #include "base/file_path.h" 22 #include "base/file_path.h"
23 #include "chrome/common/sandbox_policy.h" 23 #include "chrome/common/sandbox_policy.h"
24 #elif defined(OS_LINUX) 24 #elif defined(OS_LINUX)
25 #include "base/memory/singleton.h" 25 #include "base/memory/singleton.h"
26 #include "content/browser/zygote_host_linux.h" 26 #include "content/browser/zygote_host_linux.h"
27 #include "content/browser/renderer_host/render_sandbox_host_linux.h" 27 #include "content/browser/renderer_host/render_sandbox_host_linux.h"
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 &ChildProcessLauncher::Context::SetProcessBackgrounded, 344 &ChildProcessLauncher::Context::SetProcessBackgrounded,
345 background)); 345 background));
346 } 346 }
347 347
348 void ChildProcessLauncher::SetTerminateChildOnShutdown( 348 void ChildProcessLauncher::SetTerminateChildOnShutdown(
349 bool terminate_on_shutdown) { 349 bool terminate_on_shutdown) {
350 if (context_) 350 if (context_)
351 context_->set_terminate_child_on_shutdown(terminate_on_shutdown); 351 context_->set_terminate_child_on_shutdown(terminate_on_shutdown);
352 } 352 }
353 353
OLDNEW
« no previous file with comments | « chrome/test/ui/ui_test_suite.cc ('k') | content/browser/content_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698