| 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 | 104 |
| 105 bool ShouldPruneReport(const CrashReportDatabase::Report& report) override; | 105 bool ShouldPruneReport(const CrashReportDatabase::Report& report) override; |
| 106 | 106 |
| 107 private: | 107 private: |
| 108 const size_t max_size_in_kb_; | 108 const size_t max_size_in_kb_; |
| 109 size_t measured_size_in_kb_; | 109 size_t measured_size_in_kb_; |
| 110 | 110 |
| 111 DISALLOW_COPY_AND_ASSIGN(DatabaseSizePruneCondition); | 111 DISALLOW_COPY_AND_ASSIGN(DatabaseSizePruneCondition); |
| 112 }; | 112 }; |
| 113 | 113 |
| 114 //! \breif A PruneCondition that conjoins two other PruneConditions. | 114 //! \brief A PruneCondition that conjoins two other PruneConditions. |
| 115 class BinaryPruneCondition final : public PruneCondition { | 115 class BinaryPruneCondition final : public PruneCondition { |
| 116 public: | 116 public: |
| 117 enum Operator { | 117 enum Operator { |
| 118 AND, | 118 AND, |
| 119 OR, | 119 OR, |
| 120 }; | 120 }; |
| 121 | 121 |
| 122 //! \brief Evaluates two sub-conditions according to the specified logical | 122 //! \brief Evaluates two sub-conditions according to the specified logical |
| 123 //! operator. | 123 //! operator. |
| 124 //! | 124 //! |
| (...skipping 14 matching lines...) Expand all Loading... |
| 139 const Operator op_; | 139 const Operator op_; |
| 140 std::unique_ptr<PruneCondition> lhs_; | 140 std::unique_ptr<PruneCondition> lhs_; |
| 141 std::unique_ptr<PruneCondition> rhs_; | 141 std::unique_ptr<PruneCondition> rhs_; |
| 142 | 142 |
| 143 DISALLOW_COPY_AND_ASSIGN(BinaryPruneCondition); | 143 DISALLOW_COPY_AND_ASSIGN(BinaryPruneCondition); |
| 144 }; | 144 }; |
| 145 | 145 |
| 146 } // namespace crashpad | 146 } // namespace crashpad |
| 147 | 147 |
| 148 #endif // CRASHPAD_CLIENT_PRUNE_CRASH_REPORTS_H_ | 148 #endif // CRASHPAD_CLIENT_PRUNE_CRASH_REPORTS_H_ |
| OLD | NEW |