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> |
11 #include <map> | 11 #include <map> |
12 | 12 |
13 #include "base/command_line.h" | 13 #include "base/command_line.h" |
14 #include "base/file_util.h" | 14 #include "base/file_util.h" |
15 #include "base/logging.h" | 15 #include "base/logging.h" |
16 #include "base/path_service.h" | 16 #include "base/path_service.h" |
17 #include "breakpad/src/client/windows/crash_generation/crash_generation_server.h
" | 17 #include "breakpad/src/client/windows/crash_generation/crash_generation_server.h
" |
18 #include "breakpad/src/client/windows/sender/crash_report_sender.h" | 18 #include "breakpad/src/client/windows/sender/crash_report_sender.h" |
19 #include "chrome/common/chrome_constants.h" | 19 #include "chrome/common/chrome_constants.h" |
20 #include "chrome/common/chrome_paths.h" | 20 #include "chrome/common/chrome_paths.h" |
21 #include "chrome/common/win_util.h" | |
22 | 21 |
23 // TODO(cpu): Bug 1169078. There is a laundry list of things to do for this | 22 // TODO(cpu): Bug 1169078. There is a laundry list of things to do for this |
24 // application. They will be addressed as they are required. | 23 // application. They will be addressed as they are required. |
25 | 24 |
26 namespace { | 25 namespace { |
27 | 26 |
28 const wchar_t kTestPipeName[] = L"\\\\.\\pipe\\ChromeCrashServices"; | 27 const wchar_t kTestPipeName[] = L"\\\\.\\pipe\\ChromeCrashServices"; |
29 | 28 |
30 const wchar_t kCrashReportURL[] = L"https://clients2.google.com/cr/report"; | 29 const wchar_t kCrashReportURL[] = L"https://clients2.google.com/cr/report"; |
31 const wchar_t kCheckPointFile[] = L"crash_checkpoint.txt"; | 30 const wchar_t kCheckPointFile[] = L"crash_checkpoint.txt"; |
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
421 ::Sleep(50); | 420 ::Sleep(50); |
422 } | 421 } |
423 | 422 |
424 LOG(INFO) << "clients connected :" << clients_connected_; | 423 LOG(INFO) << "clients connected :" << clients_connected_; |
425 LOG(INFO) << "clients terminated :" << clients_terminated_; | 424 LOG(INFO) << "clients terminated :" << clients_terminated_; |
426 LOG(INFO) << "dumps serviced :" << requests_handled_; | 425 LOG(INFO) << "dumps serviced :" << requests_handled_; |
427 LOG(INFO) << "dumps reported :" << requests_sent_; | 426 LOG(INFO) << "dumps reported :" << requests_sent_; |
428 | 427 |
429 return static_cast<int>(msg.wParam); | 428 return static_cast<int>(msg.wParam); |
430 } | 429 } |
OLD | NEW |