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

Side by Side Diff: snapshot/win/pe_image_annotations_reader.h

Issue 1355503005: win: Make reading CrashpadInfo work across bitness (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: fixes Created 5 years, 2 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 | « snapshot/win/module_snapshot_win.cc ('k') | snapshot/win/pe_image_annotations_reader.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 2015 The Crashpad Authors. All rights reserved. 1 // Copyright 2015 The Crashpad Authors. All rights reserved.
2 // 2 //
3 // Licensed under the Apache License, Version 2.0 (the "License"); 3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License. 4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at 5 // You may obtain a copy of the License at
6 // 6 //
7 // http://www.apache.org/licenses/LICENSE-2.0 7 // http://www.apache.org/licenses/LICENSE-2.0
8 // 8 //
9 // Unless required by applicable law or agreed to in writing, software 9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS, 10 // distributed under the License is distributed on an "AS IS" BASIS,
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 const PEImageReader* pe_image_reader, 49 const PEImageReader* pe_image_reader,
50 const std::wstring& name); 50 const std::wstring& name);
51 ~PEImageAnnotationsReader() {} 51 ~PEImageAnnotationsReader() {}
52 52
53 //! \brief Returns the module's annotations that are organized as key-value 53 //! \brief Returns the module's annotations that are organized as key-value
54 //! pairs, where all keys and values are strings. 54 //! pairs, where all keys and values are strings.
55 std::map<std::string, std::string> SimpleMap() const; 55 std::map<std::string, std::string> SimpleMap() const;
56 56
57 private: 57 private:
58 // Reads CrashpadInfo::simple_annotations_ on behalf of SimpleMap(). 58 // Reads CrashpadInfo::simple_annotations_ on behalf of SimpleMap().
59 template <class Traits>
59 void ReadCrashpadSimpleAnnotations( 60 void ReadCrashpadSimpleAnnotations(
60 std::map<std::string, std::string>* simple_map_annotations) const; 61 std::map<std::string, std::string>* simple_map_annotations) const;
61 62
62 std::wstring name_; 63 std::wstring name_;
63 ProcessReaderWin* process_reader_; // weak 64 ProcessReaderWin* process_reader_; // weak
64 const PEImageReader* pe_image_reader_; // weak 65 const PEImageReader* pe_image_reader_; // weak
65 66
66 DISALLOW_COPY_AND_ASSIGN(PEImageAnnotationsReader); 67 DISALLOW_COPY_AND_ASSIGN(PEImageAnnotationsReader);
67 }; 68 };
68 69
69 } // namespace crashpad 70 } // namespace crashpad
70 71
71 #endif // CRASHPAD_SNAPSHOT_WIN_PE_IMAGE_ANNOTATIONS_READER_H_ 72 #endif // CRASHPAD_SNAPSHOT_WIN_PE_IMAGE_ANNOTATIONS_READER_H_
OLDNEW
« no previous file with comments | « snapshot/win/module_snapshot_win.cc ('k') | snapshot/win/pe_image_annotations_reader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698