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 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 //! without the report being uploaded. | 293 //! without the report being uploaded. |
294 //! | 294 //! |
295 //! This can be used if the user has disabled crash report collection, but | 295 //! This can be used if the user has disabled crash report collection, but |
296 //! crash generation is still enabled in the product. | 296 //! crash generation is still enabled in the product. |
297 //! | 297 //! |
298 //! \param[in] uuid The unique identifier for the crash report record. | 298 //! \param[in] uuid The unique identifier for the crash report record. |
299 //! | 299 //! |
300 //! \return The operation status code. | 300 //! \return The operation status code. |
301 virtual OperationStatus SkipReportUpload(const UUID& uuid) = 0; | 301 virtual OperationStatus SkipReportUpload(const UUID& uuid) = 0; |
302 | 302 |
| 303 //! \brief Deletes a crash report file and its associated metadata. |
| 304 //! |
| 305 //! \param[in] uuid The UUID of the report to delete. |
| 306 //! |
| 307 //! \return The operation status code. |
| 308 virtual OperationStatus DeleteReport(const UUID& uuid) = 0; |
| 309 |
303 protected: | 310 protected: |
304 CrashReportDatabase() {} | 311 CrashReportDatabase() {} |
305 | 312 |
306 private: | 313 private: |
307 DISALLOW_COPY_AND_ASSIGN(CrashReportDatabase); | 314 DISALLOW_COPY_AND_ASSIGN(CrashReportDatabase); |
308 }; | 315 }; |
309 | 316 |
310 } // namespace crashpad | 317 } // namespace crashpad |
311 | 318 |
312 #endif // CRASHPAD_CLIENT_CRASH_REPORT_DATABASE_H_ | 319 #endif // CRASHPAD_CLIENT_CRASH_REPORT_DATABASE_H_ |
OLD | NEW |