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

Unified Diff: base/process/process.h

Issue 1142913004: Revert of Add support for backgrounding processes on the Mac (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/process/BUILD.gn ('k') | base/process/process_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/process/process.h
diff --git a/base/process/process.h b/base/process/process.h
index 7fb1b69954cbe0221f06b7a615a2ab69b835e93a..808baeb1fc6ebdf7a9603b7b9b8d070b37694cdd 100644
--- a/base/process/process.h
+++ b/base/process/process.h
@@ -1,4 +1,4 @@
-// Copyright 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -107,24 +107,6 @@
// Same as WaitForExit() but only waits for up to |timeout|.
bool WaitForExitWithTimeout(TimeDelta timeout, int* exit_code);
-#if defined(OS_MACOSX)
- // The Mac needs a Mach port in order to manipulate a process's priority,
- // and there's no good way to get that from base given the pid. These Mac
- // variants of the IsProcessBackgrounded and SetProcessBackgrounded API take
- // the Mach port for this reason. See crbug.com/460102
- //
- // A process is backgrounded when its priority is lower than normal.
- // Return true if the process with mach port |task_port| is backgrounded,
- // false otherwise.
- bool IsProcessBackgrounded(mach_port_t task_port) const;
-
- // Set the process with the specified mach port as backgrounded. If value is
- // true, the priority of the process will be lowered. If value is false, the
- // priority of the process will be made "normal" - equivalent to default
- // process priority. Returns true if the priority was changed, false
- // otherwise.
- bool SetProcessBackgrounded(mach_port_t task_port, bool value);
-#else
// A process is backgrounded when it's priority is lower than normal.
// Return true if this process is backgrounded, false otherwise.
bool IsProcessBackgrounded() const;
@@ -134,7 +116,7 @@
// will be made "normal" - equivalent to default process priority.
// Returns true if the priority was changed, false otherwise.
bool SetProcessBackgrounded(bool value);
-#endif // defined(OS_MACOSX)
+
// Returns an integer representing the priority of a process. The meaning
// of this value is OS dependent.
int GetPriority() const;
« no previous file with comments | « base/process/BUILD.gn ('k') | base/process/process_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698