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

Side by Side Diff: chromecast/crash/linux/dummy_minidump_generator.h

Issue 1154383006: Adding crash utilities to chromecast/crash. (Closed) Base URL: https://eureka-internal.googlesource.com/chromium/src@master
Patch Set: cast_shell_unittests not built for android Created 5 years, 6 months 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
(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_
OLDNEW
« no previous file with comments | « chromecast/crash/linux/crash_util.cc ('k') | chromecast/crash/linux/dummy_minidump_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698