| Index: chromecast/crash/linux/dummy_minidump_generator.h
|
| diff --git a/chromecast/crash/linux/dummy_minidump_generator.h b/chromecast/crash/linux/dummy_minidump_generator.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..9e638069230d6a2b32b3af91f3d6a8f05e031b2a
|
| --- /dev/null
|
| +++ b/chromecast/crash/linux/dummy_minidump_generator.h
|
| @@ -0,0 +1,34 @@
|
| +// Copyright 2015 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CHROMECAST_CRASH_LINUX_DUMMY_MINIDUMP_GENERATOR_H_
|
| +#define CHROMECAST_CRASH_LINUX_DUMMY_MINIDUMP_GENERATOR_H_
|
| +
|
| +#include <string>
|
| +
|
| +#include "base/macros.h"
|
| +#include "chromecast/crash/linux/minidump_generator.h"
|
| +
|
| +namespace chromecast {
|
| +
|
| +class DummyMinidumpGenerator : public MinidumpGenerator {
|
| + public:
|
| + // A dummy minidump generator to move an existing minidump into
|
| + // crash_uploader's monitoring path ($HOME/minidumps). The path is monitored
|
| + // with file lock-control, so that third process should not write to it
|
| + // directly.
|
| + explicit DummyMinidumpGenerator(const std::string& existing_minidump_path);
|
| +
|
| + // MinidumpGenerator implementation:
|
| + bool Generate(const std::string& minidump_path) override;
|
| +
|
| + private:
|
| + const std::string existing_minidump_path_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(DummyMinidumpGenerator);
|
| +};
|
| +
|
| +} // namespace chromecast
|
| +
|
| +#endif // CHROMECAST_CRASH_LINUX_DUMMY_MINIDUMP_GENERATOR_H_
|
|
|