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

Unified Diff: base/process.h

Issue 19519008: Move the remaning base/process* files into base/process/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 7 years, 5 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/base.gypi ('k') | base/process/process.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/process.h
diff --git a/base/process.h b/base/process.h
index 57983cc06b6069b066418ac4818340db6bc42875..71f4391c3fe35a30f5e53ada3310570859c1bdaf 100644
--- a/base/process.h
+++ b/base/process.h
@@ -1,70 +1,13 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2013 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.
+// Forwarding header until all include paths can be updated.
+// TODO(rsesek): Remove this file <http://crbug.com/242290>.
+
#ifndef BASE_PROCESS_H_
#define BASE_PROCESS_H_
-#include "base/base_export.h"
-#include "base/basictypes.h"
-#include "base/process/process_handle.h"
-#include "build/build_config.h"
-
-namespace base {
-
-class BASE_EXPORT Process {
- public:
- Process() : process_(kNullProcessHandle) {
- }
-
- explicit Process(ProcessHandle handle) : process_(handle) {
- }
-
- // A handle to the current process.
- static Process Current();
-
- static bool CanBackgroundProcesses();
-
- // Get/Set the handle for this process. The handle will be 0 if the process
- // is no longer running.
- ProcessHandle handle() const { return process_; }
- void set_handle(ProcessHandle handle) {
- process_ = handle;
- }
-
- // Get the PID for this process.
- ProcessId pid() const;
-
- // Is the this process the current process.
- bool is_current() const;
-
- // Close the process handle. This will not terminate the process.
- void Close();
-
- // Terminates the process with extreme prejudice. The given result code will
- // be the exit code of the process. If the process has already exited, this
- // will do nothing.
- void Terminate(int result_code);
-
- // A process is backgrounded when it's priority is lower than normal.
- // Return true if this process is backgrounded, false otherwise.
- bool IsProcessBackgrounded() const;
-
- // Set a process 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(bool value);
-
- // Returns an integer representing the priority of a process. The meaning
- // of this value is OS dependent.
- int GetPriority() const;
-
- private:
- ProcessHandle process_;
-};
-
-} // namespace base
+#include "base/process/process.h"
#endif // BASE_PROCESS_H_
« no previous file with comments | « base/base.gypi ('k') | base/process/process.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698