Update V8 to version 4.7.24.
[chromium-blink-merge.git] / chromecast / crash / linux / minidump_generator.h
blob0601dea5d2e68d9527311f7ac7aa6135afffbc2e
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.
5 #ifndef CHROMECAST_CRASH_LINUX_MINIDUMP_GENERATOR_H_
6 #define CHROMECAST_CRASH_LINUX_MINIDUMP_GENERATOR_H_
8 #include <string>
10 namespace chromecast {
12 // An interface to generate a minidump at a given filepath.
13 class MinidumpGenerator {
14 public:
15 virtual ~MinidumpGenerator() {}
17 // Generates a minidump file at |minidump_path|. This method should only be
18 // called on a thread without IO restrictions, as non-trivial implementations
19 // will almost certainly require IO permissions. Returns true if minidump was
20 // successfully generated.
21 virtual bool Generate(const std::string& minidump_path) = 0;
24 } // namespace chromecast
26 #endif // CHROMECAST_CRASH_LINUX_MINIDUMP_GENERATOR_H_