diff options
author | bcf <bcf@google.com> | 2015-08-05 13:23:41 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-08-05 20:24:08 +0000 |
commit | 3dc182443da4eec83a698f0f544485a0939aa389 (patch) | |
tree | 31d418d1d508a307795289c54b5f770d73d8952b /chromecast/crash/linux/minidump_writer.h | |
parent | 36e30ccdbf10d8669f55f2908759e4546ee44cae (diff) | |
download | chromium_src-3dc182443da4eec83a698f0f544485a0939aa389.zip chromium_src-3dc182443da4eec83a698f0f544485a0939aa389.tar.gz chromium_src-3dc182443da4eec83a698f0f544485a0939aa389.tar.bz2 |
[Chromecast] Moved ratelimit information to lockfile.
This allows ratelimit information to persist across reboots. Also
previous implementation of ratelimiting only counted dumps in the
lockfile, but they are uploaded and cleared every minute by
crash_uploader.
TEST=modified tests pass
BUG=internal b/19210655
Review URL: https://codereview.chromium.org/1252883007
Cr-Commit-Position: refs/heads/master@{#341957}
Diffstat (limited to 'chromecast/crash/linux/minidump_writer.h')
-rw-r--r-- | chromecast/crash/linux/minidump_writer.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/chromecast/crash/linux/minidump_writer.h b/chromecast/crash/linux/minidump_writer.h index 69e6233..e37dbaf 100644 --- a/chromecast/crash/linux/minidump_writer.h +++ b/chromecast/crash/linux/minidump_writer.h @@ -48,29 +48,15 @@ class MinidumpWriter : public SynchronizedMinidumpManager { // otherwise. int Write() { return AcquireLockAndDoWork(); } - int max_dumps() const { return max_dumps_; } - int max_recent_dumps() const { return max_recent_dumps_; } - const base::TimeDelta& dump_interval() const { return dump_interval_; }; - protected: // MinidumpManager implementation: int DoWork() override; private: - // Returns true if we can write another dump, false otherwise. We can write - // another dump if the number of minidumps is strictly less than |max_dumps_| - // and the number of minidumps which occurred within the last |dump_interval_| - // is strictly less than |max_recent_dumps_|. - bool CanWriteDump(); - MinidumpGenerator* const minidump_generator_; base::FilePath minidump_path_; const MinidumpParams params_; - const int max_dumps_; - const base::TimeDelta dump_interval_; - const int max_recent_dumps_; - // This callback is Run() to dump a log to |minidump_path_|.txt.gz, taking // |minidump_path_| as a parameter. It returns 0 on success, and a negative // integer otherwise. If a callback is not passed in the constructor, the |