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 25 matching lines...) Expand all Loading... |
36 #include "util/misc/initialization_state_dcheck.h" | 36 #include "util/misc/initialization_state_dcheck.h" |
37 #include "util/stdlib/pointer_container.h" | 37 #include "util/stdlib/pointer_container.h" |
38 | 38 |
39 namespace crashpad { | 39 namespace crashpad { |
40 | 40 |
41 //! \brief A ProcessSnapshot of a running (or crashed) process running on a Mac | 41 //! \brief A ProcessSnapshot of a running (or crashed) process running on a Mac |
42 //! OS X system. | 42 //! OS X system. |
43 class ProcessSnapshotMac final : public ProcessSnapshot { | 43 class ProcessSnapshotMac final : public ProcessSnapshot { |
44 public: | 44 public: |
45 ProcessSnapshotMac(); | 45 ProcessSnapshotMac(); |
46 ~ProcessSnapshotMac(); | 46 ~ProcessSnapshotMac() override; |
47 | 47 |
48 //! \brief Initializes the object. | 48 //! \brief Initializes the object. |
49 //! | 49 //! |
50 //! \param[in] task The task to create a snapshot from. | 50 //! \param[in] task The task to create a snapshot from. |
51 //! | 51 //! |
52 //! \return `true` if the snapshot could be created, `false` otherwise with | 52 //! \return `true` if the snapshot could be created, `false` otherwise with |
53 //! an appropriate message logged. | 53 //! an appropriate message logged. |
54 bool Initialize(task_t task); | 54 bool Initialize(task_t task); |
55 | 55 |
56 //! \brief Initializes the object’s exception. | 56 //! \brief Initializes the object’s exception. |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 ProcessReader process_reader_; | 98 ProcessReader process_reader_; |
99 timeval snapshot_time_; | 99 timeval snapshot_time_; |
100 InitializationStateDcheck initialized_; | 100 InitializationStateDcheck initialized_; |
101 | 101 |
102 DISALLOW_COPY_AND_ASSIGN(ProcessSnapshotMac); | 102 DISALLOW_COPY_AND_ASSIGN(ProcessSnapshotMac); |
103 }; | 103 }; |
104 | 104 |
105 } // namespace crashpad | 105 } // namespace crashpad |
106 | 106 |
107 #endif // CRASHPAD_SNAPSHOT_MAC_PROCESS_SNAPSHOT_MAC_H_ | 107 #endif // CRASHPAD_SNAPSHOT_MAC_PROCESS_SNAPSHOT_MAC_H_ |
OLD | NEW |