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

Side by Side Diff: chrome/browser/private_working_set_snapshot.h

Issue 1548133002: Switch to standard integer types in chrome/browser/, part 3 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #ifndef CHROME_BROWSER_PRIVATE_WORKING_SET_SNAPSHOT_H_ 5 #ifndef CHROME_BROWSER_PRIVATE_WORKING_SET_SNAPSHOT_H_
6 #define CHROME_BROWSER_PRIVATE_WORKING_SET_SNAPSHOT_H_ 6 #define CHROME_BROWSER_PRIVATE_WORKING_SET_SNAPSHOT_H_
7 7
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 9
10 #if defined(OS_WIN) 10 #if defined(OS_WIN)
11 #include <pdh.h> 11 #include <pdh.h>
12 #include <stddef.h>
12 13
13 #include <vector> 14 #include <vector>
14 15
16 #include "base/macros.h"
15 #include "base/process/process_handle.h" 17 #include "base/process/process_handle.h"
16 #include "base/win/scoped_handle.h" 18 #include "base/win/scoped_handle.h"
17 19
18 namespace win { 20 namespace win {
19 21
20 // The traits class for PDH handles that can be closed via PdhCloseQuery() API. 22 // The traits class for PDH handles that can be closed via PdhCloseQuery() API.
21 struct PDHHandleTraits { 23 struct PDHHandleTraits {
22 typedef PDH_HQUERY Handle; 24 typedef PDH_HQUERY Handle;
23 static PDH_HQUERY NullHandle() { return nullptr; } 25 static PDH_HQUERY NullHandle() { return nullptr; }
24 static bool IsHandleValid(PDH_HQUERY handle) { return handle != nullptr; } 26 static bool IsHandleValid(PDH_HQUERY handle) { return handle != nullptr; }
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 113
112 // After each call to Sample this will hold the results, sorted by process id. 114 // After each call to Sample this will hold the results, sorted by process id.
113 std::vector<PidAndPrivateWorkingSet> records_; 115 std::vector<PidAndPrivateWorkingSet> records_;
114 116
115 DISALLOW_COPY_AND_ASSIGN(PrivateWorkingSetSnapshot); 117 DISALLOW_COPY_AND_ASSIGN(PrivateWorkingSetSnapshot);
116 }; 118 };
117 119
118 #endif // defined(OS_WIN) 120 #endif // defined(OS_WIN)
119 121
120 #endif // CHROME_BROWSER_PRIVATE_WORKING_SET_SNAPSHOT_H_ 122 #endif // CHROME_BROWSER_PRIVATE_WORKING_SET_SNAPSHOT_H_
OLDNEW
« no previous file with comments | « chrome/browser/printing/printing_message_filter.cc ('k') | chrome/browser/private_working_set_snapshot_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698