Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(224)

Side by Side Diff: client/crash_report_database.h

Issue 1392653002: Add functionality to prune old crash reports from the database. (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « client/client_test.gyp ('k') | client/crash_report_database_mac.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « client/client_test.gyp ('k') | client/crash_report_database_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698