Home | History | Annotate | Download | only in process

Lines Matching full:process

10 #include "base/process/process_handle.h"
20 // Provides a move-only encapsulation of a process.
22 // This object is not tied to the lifetime of the underlying process: the
23 // process may be killed and this object may still around, and it will still
26 // Windows: The underlying ProcessHandle will be valid after the process dies
27 // and can be used to gather some information about that process, but most
31 // the process dies, and it may be reused by the system, which means that it may
32 // end up pointing to the wrong process.
33 class BASE_EXPORT Process {
34 MOVE_ONLY_TYPE_FOR_CPP_03(Process)
37 explicit Process(ProcessHandle handle = kNullProcessHandle);
39 Process(Process&& other);
41 // The destructor does not terminate the process.
42 ~Process();
44 Process& operator=(Process&& other);
46 // Returns an object for the current process.
47 static Process Current();
49 // Returns a Process for the given |pid|.
50 static Process Open(ProcessId pid);
52 // Returns a Process for the given |pid|. On Windows the handle is opened
55 static Process OpenWithExtraPrivileges(ProcessId pid);
58 // Returns a Process for the given |pid|, using some |desired_access|.
60 static Process OpenWithAccess(ProcessId pid, DWORD desired_access);
67 static Process DeprecatedGetProcessFromHandle(ProcessHandle handle);
72 // Returns true if this objects represents a valid process.
75 // Returns a handle for this process. There is no guarantee about when that
79 // Returns a second object that represents this process.
80 Process Duplicate() const;
82 // Get the PID for this process.
85 // Returns true if this process is the current process.
88 // Close the process handle. This will not terminate the process.
91 // Terminates the process with extreme prejudice. The given |exit_code| will
92 // be the exit code of the process. If |wait| is true, this method will wait
93 // for up to one minute for the process to actually terminate.
94 // Returns true if the process terminates within the allowed time.
98 // Waits for the process to exit. Returns true on success.
99 // On POSIX, if the process has been signaled then |exit_code| is set to -1.
100 // On Linux this must be a child process, however on Mac and Windows it can be
101 // any process.
111 // A process is backgrounded when it's priority is lower than normal.
112 // Return true if this process is backgrounded, false otherwise.
115 // Set a process as backgrounded. If value is true, the priority of the
116 // process will be lowered. If value is false, the priority of the process
117 // will be made "normal" - equivalent to default process priority.
121 // Returns an integer representing the priority of a process. The meaning
127 // If the process is not in a PID namespace or /proc/<pid>/status does not
144 // process is backgrounded or not.