| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |