| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // This module contains the necessary code to register the Breakpad exception | 5 // This module contains the necessary code to register the Breakpad exception |
| 6 // handler. This implementation is based on Chrome crash reporting code. See: | 6 // handler. This implementation is based on Chrome crash reporting code. See: |
| 7 // - src/components/crash/content/app/breakpad_win.cc | 7 // - src/components/crash/content/app/breakpad_win.cc |
| 8 // - src/chrome/installer/setup/setup_main.cc | 8 // - src/chrome/installer/setup/setup_main.cc |
| 9 | 9 |
| 10 #include "remoting/base/breakpad.h" | 10 #include "remoting/base/breakpad.h" |
| 11 | 11 |
| 12 #include <windows.h> | 12 #include <windows.h> |
| 13 #include <string> | 13 #include <string> |
| 14 | 14 |
| 15 #include "base/atomicops.h" | 15 #include "base/atomicops.h" |
| 16 #include "base/file_version_info.h" | 16 #include "base/file_version_info.h" |
| 17 #include "base/lazy_instance.h" | 17 #include "base/lazy_instance.h" |
| 18 #include "base/logging.h" | 18 #include "base/logging.h" |
| 19 #include "base/macros.h" |
| 19 #include "base/memory/scoped_ptr.h" | 20 #include "base/memory/scoped_ptr.h" |
| 20 #include "base/process/memory.h" | 21 #include "base/process/memory.h" |
| 21 #include "base/strings/utf_string_conversions.h" | 22 #include "base/strings/utf_string_conversions.h" |
| 22 #include "base/win/wrapped_window_proc.h" | 23 #include "base/win/wrapped_window_proc.h" |
| 23 #include "breakpad/src/client/windows/handler/exception_handler.h" | 24 #include "breakpad/src/client/windows/handler/exception_handler.h" |
| 24 | 25 |
| 25 namespace remoting { | 26 namespace remoting { |
| 26 void InitializeCrashReportingForTest(const wchar_t* pipe_name); | 27 void InitializeCrashReportingForTest(const wchar_t* pipe_name); |
| 27 } // namespace remoting | 28 } // namespace remoting |
| 28 | 29 |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 // Touch the object to make sure it is initialized. | 201 // Touch the object to make sure it is initialized. |
| 201 BreakpadWin::GetInstance(); | 202 BreakpadWin::GetInstance(); |
| 202 } | 203 } |
| 203 | 204 |
| 204 void InitializeCrashReportingForTest(const wchar_t* pipe_name) { | 205 void InitializeCrashReportingForTest(const wchar_t* pipe_name) { |
| 205 BreakpadWin::pipe_name_ = pipe_name; | 206 BreakpadWin::pipe_name_ = pipe_name; |
| 206 InitializeCrashReporting(); | 207 InitializeCrashReporting(); |
| 207 } | 208 } |
| 208 | 209 |
| 209 } // namespace remoting | 210 } // namespace remoting |
| OLD | NEW |