| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 #ifndef CHROME_TOOLS_CRASH_SERVICE__ | 4 #ifndef CHROME_TOOLS_CRASH_SERVICE__ |
| 5 #define CHROME_TOOLS_CRASH_SERVICE__ | 5 #define CHROME_TOOLS_CRASH_SERVICE__ |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/lock.h" | 10 #include "base/lock.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 // see below for more information. Returns false if it failed. Do not use | 35 // see below for more information. Returns false if it failed. Do not use |
| 36 // other members in that case. | 36 // other members in that case. |
| 37 bool Initialize(const std::wstring& command_line); | 37 bool Initialize(const std::wstring& command_line); |
| 38 | 38 |
| 39 // Command line switches: | 39 // Command line switches: |
| 40 // | 40 // |
| 41 // --max-reports=<number> | 41 // --max-reports=<number> |
| 42 // Allows to override the maximum number for reports per day. Normally | 42 // Allows to override the maximum number for reports per day. Normally |
| 43 // the crash dumps are never sent so if you want to send any you must | 43 // the crash dumps are never sent so if you want to send any you must |
| 44 // specify a positive number here. | 44 // specify a positive number here. |
| 45 static const wchar_t kMaxReports[]; | 45 static const char kMaxReports[]; |
| 46 // --no-window | 46 // --no-window |
| 47 // Does not create a visible window on the desktop. The window does not have | 47 // Does not create a visible window on the desktop. The window does not have |
| 48 // any other functionality other than allowing the crash service to be | 48 // any other functionality other than allowing the crash service to be |
| 49 // gracefully closed. | 49 // gracefully closed. |
| 50 static const wchar_t kNoWindow[]; | 50 static const char kNoWindow[]; |
| 51 // --reporter=<string> | 51 // --reporter=<string> |
| 52 // Allows to specify a custom string that appears on the detail crash report | 52 // Allows to specify a custom string that appears on the detail crash report |
| 53 // page in the crash server. This should be a 25 chars or less string. | 53 // page in the crash server. This should be a 25 chars or less string. |
| 54 // The default tag if not specified is 'crash svc'. | 54 // The default tag if not specified is 'crash svc'. |
| 55 static const wchar_t kReporterTag[]; | 55 static const char kReporterTag[]; |
| 56 | 56 |
| 57 // Returns the actual report path. | 57 // Returns the actual report path. |
| 58 std::wstring report_path() const { | 58 std::wstring report_path() const { |
| 59 return report_path_; | 59 return report_path_; |
| 60 } | 60 } |
| 61 // Returns number of crash dumps handled. | 61 // Returns number of crash dumps handled. |
| 62 int requests_handled() const { | 62 int requests_handled() const { |
| 63 return requests_handled_; | 63 return requests_handled_; |
| 64 } | 64 } |
| 65 // Returns number of crash clients registered. | 65 // Returns number of crash clients registered. |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 int requests_sent_; | 105 int requests_sent_; |
| 106 volatile long clients_connected_; | 106 volatile long clients_connected_; |
| 107 volatile long clients_terminated_; | 107 volatile long clients_terminated_; |
| 108 Lock sending_; | 108 Lock sending_; |
| 109 | 109 |
| 110 DISALLOW_EVIL_CONSTRUCTORS(CrashService); | 110 DISALLOW_EVIL_CONSTRUCTORS(CrashService); |
| 111 }; | 111 }; |
| 112 | 112 |
| 113 | 113 |
| 114 #endif // CHROME_TOOLS_CRASH_SERVICE__ | 114 #endif // CHROME_TOOLS_CRASH_SERVICE__ |
| OLD | NEW |