OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_TOOLS_CRASH_SERVICE_CRASH_SERVICE_H_ | 5 #ifndef CHROME_TOOLS_CRASH_SERVICE_CRASH_SERVICE_H_ |
6 #define CHROME_TOOLS_CRASH_SERVICE_CRASH_SERVICE_H_ | 6 #define CHROME_TOOLS_CRASH_SERVICE_CRASH_SERVICE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 // --no-window | 49 // --no-window |
50 // Does not create a visible window on the desktop. The window does not have | 50 // Does not create a visible window on the desktop. The window does not have |
51 // any other functionality other than allowing the crash service to be | 51 // any other functionality other than allowing the crash service to be |
52 // gracefully closed. | 52 // gracefully closed. |
53 static const char kNoWindow[]; | 53 static const char kNoWindow[]; |
54 // --reporter=<string> | 54 // --reporter=<string> |
55 // Allows to specify a custom string that appears on the detail crash report | 55 // Allows to specify a custom string that appears on the detail crash report |
56 // page in the crash server. This should be a 25 chars or less string. | 56 // page in the crash server. This should be a 25 chars or less string. |
57 // The default tag if not specified is 'crash svc'. | 57 // The default tag if not specified is 'crash svc'. |
58 static const char kReporterTag[]; | 58 static const char kReporterTag[]; |
| 59 // --dumps-dir=<directory-path> |
| 60 // Override the directory to which crash dump files will be written. |
| 61 static const char kDumpsDir[]; |
| 62 // --pipe-name=<string> |
| 63 // Override the name of the Windows named pipe on which we will |
| 64 // listen for crash dump request messages. |
| 65 static const char kPipeName[]; |
59 | 66 |
60 // Returns number of crash dumps handled. | 67 // Returns number of crash dumps handled. |
61 int requests_handled() const { | 68 int requests_handled() const { |
62 return requests_handled_; | 69 return requests_handled_; |
63 } | 70 } |
64 // Returns number of crash clients registered. | 71 // Returns number of crash clients registered. |
65 int clients_connected() const { | 72 int clients_connected() const { |
66 return clients_connected_; | 73 return clients_connected_; |
67 } | 74 } |
68 // Returns number of crash clients terminated. | 75 // Returns number of crash clients terminated. |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 int requests_handled_; | 115 int requests_handled_; |
109 int requests_sent_; | 116 int requests_sent_; |
110 volatile long clients_connected_; | 117 volatile long clients_connected_; |
111 volatile long clients_terminated_; | 118 volatile long clients_terminated_; |
112 base::Lock sending_; | 119 base::Lock sending_; |
113 | 120 |
114 DISALLOW_COPY_AND_ASSIGN(CrashService); | 121 DISALLOW_COPY_AND_ASSIGN(CrashService); |
115 }; | 122 }; |
116 | 123 |
117 #endif // CHROME_TOOLS_CRASH_SERVICE_CRASH_SERVICE_H_ | 124 #endif // CHROME_TOOLS_CRASH_SERVICE_CRASH_SERVICE_H_ |
OLD | NEW |