blob: 4b3d8d930356eefbe43995f91031e8997f6d7f03 [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Crashpad: crashpad::AgePruneCondition Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="crashpad_doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">Crashpad
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="namespacecrashpad.html">crashpad</a></li><li class="navelem"><a class="el" href="classcrashpad_1_1AgePruneCondition.html">AgePruneCondition</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classcrashpad_1_1AgePruneCondition-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">crashpad::AgePruneCondition Class Reference<span class="mlabels"><span class="mlabel">final</span></span></div> </div>
</div><!--header-->
<div class="contents">
<p>A <a class="el" href="classcrashpad_1_1PruneCondition.html" title="An abstract base class for evaluating crash reports for deletion. ">PruneCondition</a> that deletes reports older than the specified number days.
<a href="classcrashpad_1_1AgePruneCondition.html#details">More...</a></p>
<p><code>#include &quot;client/prune_crash_reports.h&quot;</code></p>
<div class="dynheader">
Inheritance diagram for crashpad::AgePruneCondition:</div>
<div class="dyncontent">
<div class="center">
<img src="classcrashpad_1_1AgePruneCondition.png" usemap="#crashpad::AgePruneCondition_map" alt=""/>
<map id="crashpad::AgePruneCondition_map" name="crashpad::AgePruneCondition_map">
<area href="classcrashpad_1_1PruneCondition.html" title="An abstract base class for evaluating crash reports for deletion. " alt="crashpad::PruneCondition" shape="rect" coords="0,0,181,24"/>
</map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:aad0e93370f6de214bd95c9c773350353"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcrashpad_1_1AgePruneCondition.html#aad0e93370f6de214bd95c9c773350353">AgePruneCondition</a> (int max_age_in_days)</td></tr>
<tr class="memdesc:aad0e93370f6de214bd95c9c773350353"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a <a class="el" href="classcrashpad_1_1PruneCondition.html" title="An abstract base class for evaluating crash reports for deletion. ">PruneCondition</a> based on Report::creation_time. <a href="#aad0e93370f6de214bd95c9c773350353">More...</a><br /></td></tr>
<tr class="separator:aad0e93370f6de214bd95c9c773350353"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8095ad16e8ae13fdaf38bc23020eb9cb"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcrashpad_1_1AgePruneCondition.html#a8095ad16e8ae13fdaf38bc23020eb9cb">ShouldPruneReport</a> (const <a class="el" href="structcrashpad_1_1CrashReportDatabase_1_1Report.html">CrashReportDatabase::Report</a> &amp;report) override</td></tr>
<tr class="memdesc:a8095ad16e8ae13fdaf38bc23020eb9cb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Evaluates a crash report for deletion. <a href="#a8095ad16e8ae13fdaf38bc23020eb9cb">More...</a><br /></td></tr>
<tr class="separator:a8095ad16e8ae13fdaf38bc23020eb9cb"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pub_static_methods_classcrashpad_1_1PruneCondition"><td colspan="2" onclick="javascript:toggleInherit('pub_static_methods_classcrashpad_1_1PruneCondition')"><img src="closed.png" alt="-"/>&#160;Static Public Member Functions inherited from <a class="el" href="classcrashpad_1_1PruneCondition.html">crashpad::PruneCondition</a></td></tr>
<tr class="memitem:a71bc322a91e221bfd06c616d7ceafd99 inherit pub_static_methods_classcrashpad_1_1PruneCondition"><td class="memItemLeft" align="right" valign="top">static std::unique_ptr&lt; <a class="el" href="classcrashpad_1_1PruneCondition.html">PruneCondition</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcrashpad_1_1PruneCondition.html#a71bc322a91e221bfd06c616d7ceafd99">GetDefault</a> ()</td></tr>
<tr class="memdesc:a71bc322a91e221bfd06c616d7ceafd99 inherit pub_static_methods_classcrashpad_1_1PruneCondition"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a sensible default condition for removing obsolete crash reports. <a href="classcrashpad_1_1PruneCondition.html#a71bc322a91e221bfd06c616d7ceafd99">More...</a><br /></td></tr>
<tr class="separator:a71bc322a91e221bfd06c616d7ceafd99 inherit pub_static_methods_classcrashpad_1_1PruneCondition"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>A <a class="el" href="classcrashpad_1_1PruneCondition.html" title="An abstract base class for evaluating crash reports for deletion. ">PruneCondition</a> that deletes reports older than the specified number days. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="aad0e93370f6de214bd95c9c773350353"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aad0e93370f6de214bd95c9c773350353">&#9670;&nbsp;</a></span>AgePruneCondition()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">crashpad::AgePruneCondition::AgePruneCondition </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>max_age_in_days</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">explicit</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Creates a <a class="el" href="classcrashpad_1_1PruneCondition.html" title="An abstract base class for evaluating crash reports for deletion. ">PruneCondition</a> based on Report::creation_time. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">max_age_in_days</td><td>Reports created more than this many days ago will be deleted. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a8095ad16e8ae13fdaf38bc23020eb9cb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8095ad16e8ae13fdaf38bc23020eb9cb">&#9670;&nbsp;</a></span>ShouldPruneReport()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">bool crashpad::AgePruneCondition::ShouldPruneReport </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="structcrashpad_1_1CrashReportDatabase_1_1Report.html">CrashReportDatabase::Report</a> &amp;&#160;</td>
<td class="paramname"><em>report</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Evaluates a crash report for deletion. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">report</td><td>The crash report to evaluate.</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><code>true</code> if the crash report should be deleted, <code>false</code> if it should be kept. </dd></dl>
<p>Implements <a class="el" href="classcrashpad_1_1PruneCondition.html#af6ca6223cf5972be17a01bdc869d311b">crashpad::PruneCondition</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>client/prune_crash_reports.h</li>
<li>client/prune_crash_reports.cc</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>