1c5e242b8cd4280db5162e5a3084f2dc9e16e8ffbmmandlis@chromium.org// Copyright (c) 2014, Google Inc.
2c5e242b8cd4280db5162e5a3084f2dc9e16e8ffbmmandlis@chromium.org// All rights reserved.
3c5e242b8cd4280db5162e5a3084f2dc9e16e8ffbmmandlis@chromium.org//
4c5e242b8cd4280db5162e5a3084f2dc9e16e8ffbmmandlis@chromium.org// Redistribution and use in source and binary forms, with or without
5c5e242b8cd4280db5162e5a3084f2dc9e16e8ffbmmandlis@chromium.org// modification, are permitted provided that the following conditions are
6c5e242b8cd4280db5162e5a3084f2dc9e16e8ffbmmandlis@chromium.org// met:
7c5e242b8cd4280db5162e5a3084f2dc9e16e8ffbmmandlis@chromium.org//
8c5e242b8cd4280db5162e5a3084f2dc9e16e8ffbmmandlis@chromium.org//     * Redistributions of source code must retain the above copyright
9c5e242b8cd4280db5162e5a3084f2dc9e16e8ffbmmandlis@chromium.org// notice, this list of conditions and the following disclaimer.
10c5e242b8cd4280db5162e5a3084f2dc9e16e8ffbmmandlis@chromium.org//     * Redistributions in binary form must reproduce the above
11c5e242b8cd4280db5162e5a3084f2dc9e16e8ffbmmandlis@chromium.org// copyright notice, this list of conditions and the following disclaimer
12c5e242b8cd4280db5162e5a3084f2dc9e16e8ffbmmandlis@chromium.org// in the documentation and/or other materials provided with the
13c5e242b8cd4280db5162e5a3084f2dc9e16e8ffbmmandlis@chromium.org// distribution.
14c5e242b8cd4280db5162e5a3084f2dc9e16e8ffbmmandlis@chromium.org//     * Neither the name of Google Inc. nor the names of its
15c5e242b8cd4280db5162e5a3084f2dc9e16e8ffbmmandlis@chromium.org// contributors may be used to endorse or promote products derived from
16c5e242b8cd4280db5162e5a3084f2dc9e16e8ffbmmandlis@chromium.org// this software without specific prior written permission.
17c5e242b8cd4280db5162e5a3084f2dc9e16e8ffbmmandlis@chromium.org//
18c5e242b8cd4280db5162e5a3084f2dc9e16e8ffbmmandlis@chromium.org// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19c5e242b8cd4280db5162e5a3084f2dc9e16e8ffbmmandlis@chromium.org// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20c5e242b8cd4280db5162e5a3084f2dc9e16e8ffbmmandlis@chromium.org// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21c5e242b8cd4280db5162e5a3084f2dc9e16e8ffbmmandlis@chromium.org// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22c5e242b8cd4280db5162e5a3084f2dc9e16e8ffbmmandlis@chromium.org// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23c5e242b8cd4280db5162e5a3084f2dc9e16e8ffbmmandlis@chromium.org// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24c5e242b8cd4280db5162e5a3084f2dc9e16e8ffbmmandlis@chromium.org// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25c5e242b8cd4280db5162e5a3084f2dc9e16e8ffbmmandlis@chromium.org// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26c5e242b8cd4280db5162e5a3084f2dc9e16e8ffbmmandlis@chromium.org// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27c5e242b8cd4280db5162e5a3084f2dc9e16e8ffbmmandlis@chromium.org// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28c5e242b8cd4280db5162e5a3084f2dc9e16e8ffbmmandlis@chromium.org// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29c5e242b8cd4280db5162e5a3084f2dc9e16e8ffbmmandlis@chromium.org
30c5e242b8cd4280db5162e5a3084f2dc9e16e8ffbmmandlis@chromium.org#ifndef GOOGLE_BREAKPAD_PROCESSOR_PROCESS_RESULT_H__
31c5e242b8cd4280db5162e5a3084f2dc9e16e8ffbmmandlis@chromium.org#define GOOGLE_BREAKPAD_PROCESSOR_PROCESS_RESULT_H__
32c5e242b8cd4280db5162e5a3084f2dc9e16e8ffbmmandlis@chromium.org
33c5e242b8cd4280db5162e5a3084f2dc9e16e8ffbmmandlis@chromium.orgnamespace google_breakpad {
34c5e242b8cd4280db5162e5a3084f2dc9e16e8ffbmmandlis@chromium.org
35c5e242b8cd4280db5162e5a3084f2dc9e16e8ffbmmandlis@chromium.org// Return type for MinidumpProcessor or MicrodumpProcessor's Process()
36c5e242b8cd4280db5162e5a3084f2dc9e16e8ffbmmandlis@chromium.orgenum ProcessResult {
37c5e242b8cd4280db5162e5a3084f2dc9e16e8ffbmmandlis@chromium.org  PROCESS_OK,                                  // The dump was processed
38c5e242b8cd4280db5162e5a3084f2dc9e16e8ffbmmandlis@chromium.org                                               // successfully.
39c5e242b8cd4280db5162e5a3084f2dc9e16e8ffbmmandlis@chromium.org
40c5e242b8cd4280db5162e5a3084f2dc9e16e8ffbmmandlis@chromium.org  PROCESS_ERROR_MINIDUMP_NOT_FOUND,            // The minidump file was not
41c5e242b8cd4280db5162e5a3084f2dc9e16e8ffbmmandlis@chromium.org                                               // found.
42c5e242b8cd4280db5162e5a3084f2dc9e16e8ffbmmandlis@chromium.org
43c5e242b8cd4280db5162e5a3084f2dc9e16e8ffbmmandlis@chromium.org  PROCESS_ERROR_NO_MINIDUMP_HEADER,            // The minidump file had no
44c5e242b8cd4280db5162e5a3084f2dc9e16e8ffbmmandlis@chromium.org                                               // header.
45c5e242b8cd4280db5162e5a3084f2dc9e16e8ffbmmandlis@chromium.org
46c5e242b8cd4280db5162e5a3084f2dc9e16e8ffbmmandlis@chromium.org  PROCESS_ERROR_NO_THREAD_LIST,                // The minidump file has no
47c5e242b8cd4280db5162e5a3084f2dc9e16e8ffbmmandlis@chromium.org                                               // thread list.
48c5e242b8cd4280db5162e5a3084f2dc9e16e8ffbmmandlis@chromium.org
49c5e242b8cd4280db5162e5a3084f2dc9e16e8ffbmmandlis@chromium.org  PROCESS_ERROR_GETTING_THREAD,                // There was an error getting one
50c5e242b8cd4280db5162e5a3084f2dc9e16e8ffbmmandlis@chromium.org                                               // thread's data from th dump.
51c5e242b8cd4280db5162e5a3084f2dc9e16e8ffbmmandlis@chromium.org
52c5e242b8cd4280db5162e5a3084f2dc9e16e8ffbmmandlis@chromium.org  PROCESS_ERROR_GETTING_THREAD_ID,             // There was an error getting a
53c5e242b8cd4280db5162e5a3084f2dc9e16e8ffbmmandlis@chromium.org                                               // thread id from the thread's
54c5e242b8cd4280db5162e5a3084f2dc9e16e8ffbmmandlis@chromium.org                                               // data.
55c5e242b8cd4280db5162e5a3084f2dc9e16e8ffbmmandlis@chromium.org
56c5e242b8cd4280db5162e5a3084f2dc9e16e8ffbmmandlis@chromium.org  PROCESS_ERROR_DUPLICATE_REQUESTING_THREADS,  // There was more than one
57c5e242b8cd4280db5162e5a3084f2dc9e16e8ffbmmandlis@chromium.org                                               // requesting thread.
58c5e242b8cd4280db5162e5a3084f2dc9e16e8ffbmmandlis@chromium.org
59c5e242b8cd4280db5162e5a3084f2dc9e16e8ffbmmandlis@chromium.org  PROCESS_SYMBOL_SUPPLIER_INTERRUPTED          // The dump processing was
60c5e242b8cd4280db5162e5a3084f2dc9e16e8ffbmmandlis@chromium.org                                               // interrupted by the
61c5e242b8cd4280db5162e5a3084f2dc9e16e8ffbmmandlis@chromium.org                                               // SymbolSupplier(not fatal).
62c5e242b8cd4280db5162e5a3084f2dc9e16e8ffbmmandlis@chromium.org};
63c5e242b8cd4280db5162e5a3084f2dc9e16e8ffbmmandlis@chromium.org
64c5e242b8cd4280db5162e5a3084f2dc9e16e8ffbmmandlis@chromium.org}  // namespace google_breakpad
65c5e242b8cd4280db5162e5a3084f2dc9e16e8ffbmmandlis@chromium.org
66c5e242b8cd4280db5162e5a3084f2dc9e16e8ffbmmandlis@chromium.org#endif  // GOOGLE_BREAKPAD_PROCESSOR_PROCESS_RESULT_H__
67