| 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 //! ownership of these objects, they are scoped to the lifetime of the | 97 //! ownership of these objects, they are scoped to the lifetime of the |
| 98 //! ProcessSnapshot object that they were obtained from. | 98 //! ProcessSnapshot object that they were obtained from. |
| 99 virtual std::vector<const ThreadSnapshot*> Threads() const = 0; | 99 virtual std::vector<const ThreadSnapshot*> Threads() const = 0; |
| 100 | 100 |
| 101 //! \brief Returns an ExceptionSnapshot reflecting the exception that the | 101 //! \brief Returns an ExceptionSnapshot reflecting the exception that the |
| 102 //! snapshot process sustained to trigger the snapshot being taken. | 102 //! snapshot process sustained to trigger the snapshot being taken. |
| 103 //! | 103 //! |
| 104 //! \return An ExceptionSnapshot object. The caller does not take ownership of | 104 //! \return An ExceptionSnapshot object. The caller does not take ownership of |
| 105 //! this object, it is scoped to the lifetime of the ProcessSnapshot | 105 //! this object, it is scoped to the lifetime of the ProcessSnapshot |
| 106 //! object that it was obtained from. If the snapshot is not a result of | 106 //! object that it was obtained from. If the snapshot is not a result of |
| 107 //! an exception, returns `NULL`. | 107 //! an exception, returns `nullptr`. |
| 108 virtual const ExceptionSnapshot* Exception() const = 0; | 108 virtual const ExceptionSnapshot* Exception() const = 0; |
| 109 | 109 |
| 110 protected: | 110 protected: |
| 111 ~ProcessSnapshot() {} | 111 ~ProcessSnapshot() {} |
| 112 }; | 112 }; |
| 113 | 113 |
| 114 } // namespace crashpad | 114 } // namespace crashpad |
| 115 | 115 |
| 116 #endif // CRASHPAD_SNAPSHOT_PROCESS_SNAPSHOT_H_ | 116 #endif // CRASHPAD_SNAPSHOT_PROCESS_SNAPSHOT_H_ |
| OLD | NEW |