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

Side by Side Diff: base/process/process.h

Issue 864163003: Rename base::Process::pid() to Pid() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
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 #ifndef BASE_PROCESS_PROCESS_PROCESS_H_ 5 #ifndef BASE_PROCESS_PROCESS_PROCESS_H_
6 #define BASE_PROCESS_PROCESS_PROCESS_H_ 6 #define BASE_PROCESS_PROCESS_PROCESS_H_
7 7
8 #include "base/base_export.h" 8 #include "base/base_export.h"
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/move.h" 10 #include "base/move.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 bool IsValid() const; 73 bool IsValid() const;
74 74
75 // Returns a handle for this process. There is no guarantee about when that 75 // Returns a handle for this process. There is no guarantee about when that
76 // handle becomes invalid because this object retains ownership. 76 // handle becomes invalid because this object retains ownership.
77 ProcessHandle Handle() const; 77 ProcessHandle Handle() const;
78 78
79 // Returns a second object that represents this process. 79 // Returns a second object that represents this process.
80 Process Duplicate() const; 80 Process Duplicate() const;
81 81
82 // Get the PID for this process. 82 // Get the PID for this process.
83 ProcessId pid() const; 83 ProcessId Pid() const;
84 84
85 // Returns true if this process is the current process. 85 // Returns true if this process is the current process.
86 bool is_current() const; 86 bool is_current() const;
87 87
88 // Close the process handle. This will not terminate the process. 88 // Close the process handle. This will not terminate the process.
89 void Close(); 89 void Close();
90 90
91 // Terminates the process with extreme prejudice. The given |result_code| will 91 // Terminates the process with extreme prejudice. The given |result_code| will
92 // be the exit code of the process. 92 // be the exit code of the process.
93 // NOTE: On POSIX |result_code| is ignored. 93 // NOTE: On POSIX |result_code| is ignored.
(...skipping 25 matching lines...) Expand all
119 bool is_current_process_; 119 bool is_current_process_;
120 win::ScopedHandle process_; 120 win::ScopedHandle process_;
121 #else 121 #else
122 ProcessHandle process_; 122 ProcessHandle process_;
123 #endif 123 #endif
124 }; 124 };
125 125
126 } // namespace base 126 } // namespace base
127 127
128 #endif // BASE_PROCESS_PROCESS_PROCESS_H_ 128 #endif // BASE_PROCESS_PROCESS_PROCESS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698