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

Side by Side Diff: base/image_util.h

Issue 552004: Style cleanup in preparation for auto-linting base/. (Closed)
Patch Set: Created 10 years, 11 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/file_descriptor_shuffle.h ('k') | base/keyboard_code_conversion_gtk.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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-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 // This file/namespace contains utility functions for gathering 5 // This file/namespace contains utility functions for gathering
6 // information about PE (Portable Executable) headers within 6 // information about PE (Portable Executable) headers within
7 // images (dll's / exe's ) 7 // images (dll's / exe's )
8 8
9 #ifndef BASE_IMAGE_UTIL_H_ 9 #ifndef BASE_IMAGE_UTIL_H_
10 #define BASE_IMAGE_UTIL_H_ 10 #define BASE_IMAGE_UTIL_H_
11 11
12 #include <windows.h> 12 #include <windows.h>
13 #include <vector> 13 #include <vector>
14 14
15 #include "base/basictypes.h" 15 #include "base/basictypes.h"
16 16
17 namespace image_util { 17 namespace image_util {
18 18
19 // Contains both the PE section name (.text, .reloc etc) and its size. 19 // Contains both the PE section name (.text, .reloc etc) and its size.
20 struct ImageSectionData { 20 struct ImageSectionData {
21 ImageSectionData (const std::string& section_name, size_t section_size) 21 ImageSectionData(const std::string& section_name, size_t section_size)
22 : name (section_name), 22 : name(section_name),
23 size_in_bytes(section_size) { 23 size_in_bytes(section_size) {
24 } 24 }
25 25
26 std::string name; 26 std::string name;
27 size_t size_in_bytes; 27 size_t size_in_bytes;
28 }; 28 };
29 29
30 typedef std::vector<ImageSectionData> ImageSectionsData; 30 typedef std::vector<ImageSectionData> ImageSectionsData;
31 31
32 // Provides image statistics for modules of a specified process, or for the 32 // Provides image statistics for modules of a specified process, or for the
(...skipping 24 matching lines...) Expand all
57 bool GetImageSectionSizes(char* qualified_path, ImageSectionsData* result); 57 bool GetImageSectionSizes(char* qualified_path, ImageSectionsData* result);
58 58
59 HANDLE process_; 59 HANDLE process_;
60 60
61 DISALLOW_COPY_AND_ASSIGN(ImageMetrics); 61 DISALLOW_COPY_AND_ASSIGN(ImageMetrics);
62 }; 62 };
63 63
64 } // namespace image_util 64 } // namespace image_util
65 65
66 #endif // BASE_IMAGE_UTIL_H_ 66 #endif // BASE_IMAGE_UTIL_H_
OLDNEW
« no previous file with comments | « base/file_descriptor_shuffle.h ('k') | base/keyboard_code_conversion_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698