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

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

Issue 1446363003: Deleted OS_WIN and all Windows specific files from base. (Closed) Base URL: https://github.com/domokit/mojo.git@base_tests
Patch Set: Created 5 years, 1 month 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/process_handle.h ('k') | base/process/process_info.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "base/process/process_handle.h"
6
7 #include <windows.h>
8
9 #include "base/memory/scoped_ptr.h"
10 #include "base/win/scoped_handle.h"
11 #include "base/win/windows_version.h"
12
13 namespace base {
14
15 ProcessId GetCurrentProcId() {
16 return ::GetCurrentProcessId();
17 }
18
19 ProcessHandle GetCurrentProcessHandle() {
20 return ::GetCurrentProcess();
21 }
22
23 ProcessId GetProcId(ProcessHandle process) {
24 // This returns 0 if we have insufficient rights to query the process handle.
25 return GetProcessId(process);
26 }
27
28 } // namespace base
OLDNEW
« no previous file with comments | « base/process/process_handle.h ('k') | base/process/process_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698