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

Side by Side Diff: base/process/process_win.cc

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 #include "base/process/process.h" 5 #include "base/process/process.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/process/kill.h" 9 #include "base/process/kill.h"
10 #include "base/win/windows_version.h" 10 #include "base/win/windows_version.h"
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 GetCurrentProcess(), 93 GetCurrentProcess(),
94 &out_handle, 94 &out_handle,
95 0, 95 0,
96 FALSE, 96 FALSE,
97 DUPLICATE_SAME_ACCESS)) { 97 DUPLICATE_SAME_ACCESS)) {
98 return Process(); 98 return Process();
99 } 99 }
100 return Process(out_handle); 100 return Process(out_handle);
101 } 101 }
102 102
103 ProcessId Process::pid() const { 103 ProcessId Process::Pid() const {
104 DCHECK(IsValid()); 104 DCHECK(IsValid());
105 return GetProcId(Handle()); 105 return GetProcId(Handle());
106 } 106 }
107 107
108 bool Process::is_current() const { 108 bool Process::is_current() const {
109 return is_current_process_; 109 return is_current_process_;
110 } 110 }
111 111
112 void Process::Close() { 112 void Process::Close() {
113 is_current_process_ = false; 113 is_current_process_ = false;
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 166
167 return (::SetPriorityClass(Handle(), priority) != 0); 167 return (::SetPriorityClass(Handle(), priority) != 0);
168 } 168 }
169 169
170 int Process::GetPriority() const { 170 int Process::GetPriority() const {
171 DCHECK(IsValid()); 171 DCHECK(IsValid());
172 return ::GetPriorityClass(Handle()); 172 return ::GetPriorityClass(Handle());
173 } 173 }
174 174
175 } // namespace base 175 } // namespace base
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698