OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROMECAST_CRASH_LINUX_DUMMY_MINIDUMP_GENERATOR_H_ |
| 6 #define CHROMECAST_CRASH_LINUX_DUMMY_MINIDUMP_GENERATOR_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "base/macros.h" |
| 11 #include "chromecast/crash/linux/minidump_generator.h" |
| 12 |
| 13 namespace chromecast { |
| 14 |
| 15 class DummyMinidumpGenerator : public MinidumpGenerator { |
| 16 public: |
| 17 // A dummy minidump generator to move an existing minidump into |
| 18 // crash_uploader's monitoring path ($HOME/minidumps). The path is monitored |
| 19 // with file lock-control, so that third process should not write to it |
| 20 // directly. |
| 21 explicit DummyMinidumpGenerator(const std::string& existing_minidump_path); |
| 22 |
| 23 // MinidumpGenerator implementation: |
| 24 bool Generate(const std::string& minidump_path) override; |
| 25 |
| 26 private: |
| 27 const std::string existing_minidump_path_; |
| 28 |
| 29 DISALLOW_COPY_AND_ASSIGN(DummyMinidumpGenerator); |
| 30 }; |
| 31 |
| 32 } // namespace chromecast |
| 33 |
| 34 #endif // CHROMECAST_CRASH_LINUX_DUMMY_MINIDUMP_GENERATOR_H_ |
OLD | NEW |