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

Side by Side Diff: third_party/crashpad/crashpad/client/prune_crash_reports.h

Issue 2555353002: Update Crashpad to 32981a3ee9d7c2769fb27afa038fe2e194cfa329 (Closed)
Patch Set: fix readme Created 4 years 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
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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « third_party/crashpad/crashpad/client/crashpad_info.cc ('k') | third_party/crashpad/crashpad/client/settings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698