| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/common/child_process_logging.h" | 5 #include "chrome/common/child_process_logging.h" |
| 6 | 6 |
| 7 #include <windows.h> | 7 #include <windows.h> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/string_number_conversions.h" |
| 10 #include "base/string_util.h" | 11 #include "base/string_util.h" |
| 11 #include "base/string_number_conversions.h" | |
| 12 #include "base/stringprintf.h" | 12 #include "base/stringprintf.h" |
| 13 #include "base/utf_string_conversions.h" | 13 #include "base/utf_string_conversions.h" |
| 14 #include "base/win/dllmain.h" |
| 14 #include "chrome/common/chrome_constants.h" | 15 #include "chrome/common/chrome_constants.h" |
| 15 #include "chrome/installer/util/google_update_settings.h" | 16 #include "chrome/installer/util/google_update_settings.h" |
| 16 #include "content/public/common/gpu_info.h" | 17 #include "content/public/common/gpu_info.h" |
| 17 #include "googleurl/src/gurl.h" | 18 #include "googleurl/src/gurl.h" |
| 18 | 19 |
| 19 namespace child_process_logging { | 20 namespace child_process_logging { |
| 20 // exported in breakpad_win.cc: void __declspec(dllexport) __cdecl SetActiveURL. | 21 // exported in breakpad_win.cc: void __declspec(dllexport) __cdecl SetActiveURL. |
| 21 typedef void (__cdecl *MainSetActiveURL)(const wchar_t*); | 22 typedef void (__cdecl *MainSetActiveURL)(const wchar_t*); |
| 22 | 23 |
| 23 // exported in breakpad_win.cc: void __declspec(dllexport) __cdecl SetClientId. | 24 // exported in breakpad_win.cc: void __declspec(dllexport) __cdecl SetClientId. |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 if (!exe_module) | 172 if (!exe_module) |
| 172 return; | 173 return; |
| 173 set_number_of_views = reinterpret_cast<MainSetNumberOfViews>( | 174 set_number_of_views = reinterpret_cast<MainSetNumberOfViews>( |
| 174 GetProcAddress(exe_module, "SetNumberOfViews")); | 175 GetProcAddress(exe_module, "SetNumberOfViews")); |
| 175 if (!set_number_of_views) | 176 if (!set_number_of_views) |
| 176 return; | 177 return; |
| 177 } | 178 } |
| 178 (set_number_of_views)(number_of_views); | 179 (set_number_of_views)(number_of_views); |
| 179 } | 180 } |
| 180 | 181 |
| 182 void SetCrashOnExit(bool crash_on_exit) { |
| 183 base::win::DLLMain_SetCrashOnProcessDetach(crash_on_exit); |
| 184 } |
| 185 |
| 181 } // namespace child_process_logging | 186 } // namespace child_process_logging |
| OLD | NEW |