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 | 4 |
5 #include "chrome/tools/crash_service/crash_service.h" | 5 #include "chrome/tools/crash_service/crash_service.h" |
6 | 6 |
7 #include <windows.h> | 7 #include <windows.h> |
8 | 8 |
9 #include <iostream> | 9 #include <iostream> |
10 #include <fstream> | 10 #include <fstream> |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 | 140 |
141 DumpJobInfo(DWORD process_id, CrashService* service, | 141 DumpJobInfo(DWORD process_id, CrashService* service, |
142 const CrashMap& crash_map, const std::wstring& path) | 142 const CrashMap& crash_map, const std::wstring& path) |
143 : pid(process_id), self(service), map(crash_map), dump_path(path) { | 143 : pid(process_id), self(service), map(crash_map), dump_path(path) { |
144 } | 144 } |
145 }; | 145 }; |
146 | 146 |
147 } // namespace | 147 } // namespace |
148 | 148 |
149 // Command line switches: | 149 // Command line switches: |
150 const wchar_t CrashService::kMaxReports[] = L"max-reports"; | 150 const char CrashService::kMaxReports[] = "max-reports"; |
151 const wchar_t CrashService::kNoWindow[] = L"no-window"; | 151 const char CrashService::kNoWindow[] = "no-window"; |
152 const wchar_t CrashService::kReporterTag[]= L"reporter"; | 152 const char CrashService::kReporterTag[] = "reporter"; |
153 | 153 |
154 CrashService::CrashService(const std::wstring& report_dir) | 154 CrashService::CrashService(const std::wstring& report_dir) |
155 : report_path_(report_dir), | 155 : report_path_(report_dir), |
156 sender_(NULL), | 156 sender_(NULL), |
157 dumper_(NULL), | 157 dumper_(NULL), |
158 requests_handled_(0), | 158 requests_handled_(0), |
159 requests_sent_(0), | 159 requests_sent_(0), |
160 clients_connected_(0), | 160 clients_connected_(0), |
161 clients_terminated_(0) { | 161 clients_terminated_(0) { |
162 chrome::RegisterPathProvider(); | 162 chrome::RegisterPathProvider(); |
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
420 ::Sleep(50); | 420 ::Sleep(50); |
421 } | 421 } |
422 | 422 |
423 LOG(INFO) << "clients connected :" << clients_connected_; | 423 LOG(INFO) << "clients connected :" << clients_connected_; |
424 LOG(INFO) << "clients terminated :" << clients_terminated_; | 424 LOG(INFO) << "clients terminated :" << clients_terminated_; |
425 LOG(INFO) << "dumps serviced :" << requests_handled_; | 425 LOG(INFO) << "dumps serviced :" << requests_handled_; |
426 LOG(INFO) << "dumps reported :" << requests_sent_; | 426 LOG(INFO) << "dumps reported :" << requests_sent_; |
427 | 427 |
428 return static_cast<int>(msg.wParam); | 428 return static_cast<int>(msg.wParam); |
429 } | 429 } |
OLD | NEW |