183e085b7a331c96237cf8e814f97b3ef4c36a70fjimblandy// Copyright (c) 2010 Google Inc.
2f480ba116971a56d4de25ae1df2369e3d5503d16ted.mielczarek// All rights reserved.
3f480ba116971a56d4de25ae1df2369e3d5503d16ted.mielczarek//
4f480ba116971a56d4de25ae1df2369e3d5503d16ted.mielczarek// Redistribution and use in source and binary forms, with or without
5f480ba116971a56d4de25ae1df2369e3d5503d16ted.mielczarek// modification, are permitted provided that the following conditions are
6f480ba116971a56d4de25ae1df2369e3d5503d16ted.mielczarek// met:
7f480ba116971a56d4de25ae1df2369e3d5503d16ted.mielczarek//
8f480ba116971a56d4de25ae1df2369e3d5503d16ted.mielczarek//     * Redistributions of source code must retain the above copyright
9f480ba116971a56d4de25ae1df2369e3d5503d16ted.mielczarek// notice, this list of conditions and the following disclaimer.
10f480ba116971a56d4de25ae1df2369e3d5503d16ted.mielczarek//     * Redistributions in binary form must reproduce the above
11f480ba116971a56d4de25ae1df2369e3d5503d16ted.mielczarek// copyright notice, this list of conditions and the following disclaimer
12f480ba116971a56d4de25ae1df2369e3d5503d16ted.mielczarek// in the documentation and/or other materials provided with the
13f480ba116971a56d4de25ae1df2369e3d5503d16ted.mielczarek// distribution.
14f480ba116971a56d4de25ae1df2369e3d5503d16ted.mielczarek//     * Neither the name of Google Inc. nor the names of its
15f480ba116971a56d4de25ae1df2369e3d5503d16ted.mielczarek// contributors may be used to endorse or promote products derived from
16f480ba116971a56d4de25ae1df2369e3d5503d16ted.mielczarek// this software without specific prior written permission.
17f480ba116971a56d4de25ae1df2369e3d5503d16ted.mielczarek//
18f480ba116971a56d4de25ae1df2369e3d5503d16ted.mielczarek// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19f480ba116971a56d4de25ae1df2369e3d5503d16ted.mielczarek// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20f480ba116971a56d4de25ae1df2369e3d5503d16ted.mielczarek// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21f480ba116971a56d4de25ae1df2369e3d5503d16ted.mielczarek// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22f480ba116971a56d4de25ae1df2369e3d5503d16ted.mielczarek// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23f480ba116971a56d4de25ae1df2369e3d5503d16ted.mielczarek// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24f480ba116971a56d4de25ae1df2369e3d5503d16ted.mielczarek// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25f480ba116971a56d4de25ae1df2369e3d5503d16ted.mielczarek// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26f480ba116971a56d4de25ae1df2369e3d5503d16ted.mielczarek// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27f480ba116971a56d4de25ae1df2369e3d5503d16ted.mielczarek// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28f480ba116971a56d4de25ae1df2369e3d5503d16ted.mielczarek// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29f480ba116971a56d4de25ae1df2369e3d5503d16ted.mielczarek
30f480ba116971a56d4de25ae1df2369e3d5503d16ted.mielczarek#ifndef CLIENT_LINUX_CRASH_GENERATION_CLIENT_INFO_H_
31f480ba116971a56d4de25ae1df2369e3d5503d16ted.mielczarek#define CLIENT_LINUX_CRASH_GENERATION_CLIENT_INFO_H_
32f480ba116971a56d4de25ae1df2369e3d5503d16ted.mielczarek
33f480ba116971a56d4de25ae1df2369e3d5503d16ted.mielczareknamespace google_breakpad {
34f480ba116971a56d4de25ae1df2369e3d5503d16ted.mielczarek
35f480ba116971a56d4de25ae1df2369e3d5503d16ted.mielczarekclass CrashGenerationServer;
36f480ba116971a56d4de25ae1df2369e3d5503d16ted.mielczarek
37f092d39bfc1090285476784307a10881702179fbted.mielczarek@gmail.comclass ClientInfo {
38f092d39bfc1090285476784307a10881702179fbted.mielczarek@gmail.com public:
39f092d39bfc1090285476784307a10881702179fbted.mielczarek@gmail.com  ClientInfo(pid_t pid, CrashGenerationServer* crash_server)
40167df78c5bc73b59bdbbd829bd0486fd28831da6qsr@chromium.org    : crash_server_(crash_server),
41f092d39bfc1090285476784307a10881702179fbted.mielczarek@gmail.com      pid_(pid) {}
42f092d39bfc1090285476784307a10881702179fbted.mielczarek@gmail.com
43f092d39bfc1090285476784307a10881702179fbted.mielczarek@gmail.com  CrashGenerationServer* crash_server() const { return crash_server_; }
44f092d39bfc1090285476784307a10881702179fbted.mielczarek@gmail.com  pid_t pid() const { return pid_; }
45f092d39bfc1090285476784307a10881702179fbted.mielczarek@gmail.com
46f092d39bfc1090285476784307a10881702179fbted.mielczarek@gmail.com private:
47f480ba116971a56d4de25ae1df2369e3d5503d16ted.mielczarek  CrashGenerationServer* crash_server_;
48f480ba116971a56d4de25ae1df2369e3d5503d16ted.mielczarek  pid_t pid_;
49f480ba116971a56d4de25ae1df2369e3d5503d16ted.mielczarek};
50f480ba116971a56d4de25ae1df2369e3d5503d16ted.mielczarek
51f480ba116971a56d4de25ae1df2369e3d5503d16ted.mielczarek}
52f480ba116971a56d4de25ae1df2369e3d5503d16ted.mielczarek
53f480ba116971a56d4de25ae1df2369e3d5503d16ted.mielczarek#endif // CLIENT_LINUX_CRASH_GENERATION_CLIENT_INFO_H_
54