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

Side by Side Diff: base/process_util_win.cc

Issue 6714032: Move some files in base to base/memory. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: only base Created 9 years, 9 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_util.h" 5 #include "base/process_util.h"
6 6
7 #include <fcntl.h> 7 #include <fcntl.h>
8 #include <io.h> 8 #include <io.h>
9 #include <windows.h> 9 #include <windows.h>
10 #include <userenv.h> 10 #include <userenv.h>
11 #include <psapi.h> 11 #include <psapi.h>
12 12
13 #include <ios> 13 #include <ios>
14 14
15 #include "base/command_line.h" 15 #include "base/command_line.h"
16 #include "base/debug/stack_trace.h" 16 #include "base/debug/stack_trace.h"
17 #include "base/logging.h" 17 #include "base/logging.h"
18 #include "base/memory/scoped_ptr.h"
18 #include "base/metrics/histogram.h" 19 #include "base/metrics/histogram.h"
19 #include "base/scoped_ptr.h"
20 #include "base/win/scoped_handle.h" 20 #include "base/win/scoped_handle.h"
21 #include "base/win/windows_version.h" 21 #include "base/win/windows_version.h"
22 22
23 // userenv.dll is required for CreateEnvironmentBlock(). 23 // userenv.dll is required for CreateEnvironmentBlock().
24 #pragma comment(lib, "userenv.lib") 24 #pragma comment(lib, "userenv.lib")
25 25
26 namespace base { 26 namespace base {
27 27
28 namespace { 28 namespace {
29 29
(...skipping 879 matching lines...) Expand 10 before | Expand all | Expand 10 after
909 909
910 PERFORMANCE_INFORMATION info; 910 PERFORMANCE_INFORMATION info;
911 if (!InternalGetPerformanceInfo(&info, sizeof(info))) { 911 if (!InternalGetPerformanceInfo(&info, sizeof(info))) {
912 LOG(ERROR) << "Failed to fetch internal performance info."; 912 LOG(ERROR) << "Failed to fetch internal performance info.";
913 return 0; 913 return 0;
914 } 914 }
915 return (info.CommitTotal * system_info.dwPageSize) / 1024; 915 return (info.CommitTotal * system_info.dwPageSize) / 1024;
916 } 916 }
917 917
918 } // namespace base 918 } // namespace base
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698