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

Side by Side Diff: base/process_posix.cc

Issue 57062: Use portable typedef for PIDs (process IDs). (Closed)
Patch Set: speculative fix for win Created 11 years, 8 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
« no previous file with comments | « base/process.h ('k') | base/process_util.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2008 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.h" 5 #include "base/process.h"
6 #include "base/process_util.h" 6 #include "base/process_util.h"
7 7
8 namespace base { 8 namespace base {
9 9
10 void Process::Close() { 10 void Process::Close() {
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 bool Process::UnReduceWorkingSet() { 43 bool Process::UnReduceWorkingSet() {
44 // http://code.google.com/p/chromium/issues/detail?id=8083 44 // http://code.google.com/p/chromium/issues/detail?id=8083
45 return false; 45 return false;
46 } 46 }
47 47
48 bool Process::EmptyWorkingSet() { 48 bool Process::EmptyWorkingSet() {
49 // http://code.google.com/p/chromium/issues/detail?id=8083 49 // http://code.google.com/p/chromium/issues/detail?id=8083
50 return false; 50 return false;
51 } 51 }
52 52
53 int32 Process::pid() const { 53 ProcessId Process::pid() const {
54 if (process_ == 0) 54 if (process_ == 0)
55 return 0; 55 return 0;
56 56
57 return GetProcId(process_); 57 return GetProcId(process_);
58 } 58 }
59 59
60 bool Process::is_current() const { 60 bool Process::is_current() const {
61 return process_ == GetCurrentProcessHandle(); 61 return process_ == GetCurrentProcessHandle();
62 } 62 }
63 63
64 // static 64 // static
65 Process Process::Current() { 65 Process Process::Current() {
66 return Process(GetCurrentProcessHandle()); 66 return Process(GetCurrentProcessHandle());
67 } 67 }
68 68
69 } // namspace base 69 } // namspace base
OLDNEW
« no previous file with comments | « base/process.h ('k') | base/process_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698