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

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

Issue 20265004: Update include paths in base for base/process changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge ToT 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/process/process_metrics.h ('k') | base/process/process_util_unittest.cc » ('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) 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 <sys/resource.h>
8 #include <sys/time.h>
7 #include <sys/types.h> 9 #include <sys/types.h>
8 #include <sys/time.h>
9 #include <sys/resource.h>
10 10
11 #include "base/process_util.h"
12 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/process/kill.h"
13 13
14 namespace base { 14 namespace base {
15 15
16 // static 16 // static
17 Process Process::Current() { 17 Process Process::Current() {
18 return Process(GetCurrentProcessHandle()); 18 return Process(GetCurrentProcessHandle());
19 } 19 }
20 20
21 ProcessId Process::pid() const { 21 ProcessId Process::pid() const {
22 if (process_ == 0) 22 if (process_ == 0)
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 } 64 }
65 65
66 #endif 66 #endif
67 67
68 int Process::GetPriority() const { 68 int Process::GetPriority() const {
69 DCHECK(process_); 69 DCHECK(process_);
70 return getpriority(PRIO_PROCESS, process_); 70 return getpriority(PRIO_PROCESS, process_);
71 } 71 }
72 72
73 } // namspace base 73 } // namspace base
OLDNEW
« no previous file with comments | « base/process/process_metrics.h ('k') | base/process/process_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698