Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 The Crashpad Authors. All rights reserved. | 1 // Copyright 2014 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 13 matching lines...) Expand all Loading... | |
| 24 namespace crashpad { | 24 namespace crashpad { |
| 25 namespace internal { | 25 namespace internal { |
| 26 | 26 |
| 27 //! \brief The base class for all second-level objects (“streams”) in a minidump | 27 //! \brief The base class for all second-level objects (“streams”) in a minidump |
| 28 //! file. | 28 //! file. |
| 29 //! | 29 //! |
| 30 //! Instances of subclasses of this class are children of the root-level | 30 //! Instances of subclasses of this class are children of the root-level |
| 31 //! MinidumpFileWriter object. | 31 //! MinidumpFileWriter object. |
| 32 class MinidumpStreamWriter : public MinidumpWritable { | 32 class MinidumpStreamWriter : public MinidumpWritable { |
| 33 public: | 33 public: |
| 34 virtual ~MinidumpStreamWriter(); | |
|
Robert Sesek
2014/10/27 17:18:00
Same: override.
| |
| 35 | |
| 34 //! \brief Returns an object’s stream type. | 36 //! \brief Returns an object’s stream type. |
| 35 //! | 37 //! |
| 36 //! \note Valid in any state. | 38 //! \note Valid in any state. |
| 37 virtual MinidumpStreamType StreamType() const = 0; | 39 virtual MinidumpStreamType StreamType() const = 0; |
| 38 | 40 |
| 39 //! \brief Returns a MINIDUMP_DIRECTORY entry that serves as a pointer to this | 41 //! \brief Returns a MINIDUMP_DIRECTORY entry that serves as a pointer to this |
| 40 //! stream. | 42 //! stream. |
| 41 //! | 43 //! |
| 42 //! This method is provided for MinidumpFileWriter, which calls it in order to | 44 //! This method is provided for MinidumpFileWriter, which calls it in order to |
| 43 //! obtain the directory entry for a stream. | 45 //! obtain the directory entry for a stream. |
| 44 //! | 46 //! |
| 45 //! \note Valid only in #kStateWritable. | 47 //! \note Valid only in #kStateWritable. |
| 46 const MINIDUMP_DIRECTORY* DirectoryListEntry() const; | 48 const MINIDUMP_DIRECTORY* DirectoryListEntry() const; |
| 47 | 49 |
| 48 protected: | 50 protected: |
| 49 MinidumpStreamWriter(); | 51 MinidumpStreamWriter(); |
| 50 ~MinidumpStreamWriter() {} | |
| 51 | 52 |
| 52 // MinidumpWritable: | 53 // MinidumpWritable: |
| 53 bool Freeze() override; | 54 bool Freeze() override; |
| 54 | 55 |
| 55 private: | 56 private: |
| 56 MINIDUMP_DIRECTORY directory_list_entry_; | 57 MINIDUMP_DIRECTORY directory_list_entry_; |
| 57 | 58 |
| 58 DISALLOW_COPY_AND_ASSIGN(MinidumpStreamWriter); | 59 DISALLOW_COPY_AND_ASSIGN(MinidumpStreamWriter); |
| 59 }; | 60 }; |
| 60 | 61 |
| 61 } // namespace internal | 62 } // namespace internal |
| 62 } // namespace crashpad | 63 } // namespace crashpad |
| 63 | 64 |
| 64 #endif // CRASHPAD_MINIDUMP_STREAM_WRITER_H_ | 65 #endif // CRASHPAD_MINIDUMP_STREAM_WRITER_H_ |
| OLD | NEW |