| 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 #ifndef CHROME_COMMON_CHILD_PROCESS_LOGGING_H_ | 5 #ifndef CHROME_COMMON_CHILD_PROCESS_LOGGING_H_ |
| 6 #define CHROME_COMMON_CHILD_PROCESS_LOGGING_H_ | 6 #define CHROME_COMMON_CHILD_PROCESS_LOGGING_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 | 26 |
| 27 // The maximum number of command line switches to include in the crash | 27 // The maximum number of command line switches to include in the crash |
| 28 // report's metadata. Note that the mini-dump itself will also contain the | 28 // report's metadata. Note that the mini-dump itself will also contain the |
| 29 // (original) command line arguments within the PEB. | 29 // (original) command line arguments within the PEB. |
| 30 // Also used in chrome/app, but we define it here to avoid a common->app | 30 // Also used in chrome/app, but we define it here to avoid a common->app |
| 31 // dependency. | 31 // dependency. |
| 32 static const size_t kMaxSwitches = 15; | 32 static const size_t kMaxSwitches = 15; |
| 33 | 33 |
| 34 namespace child_process_logging { | 34 namespace child_process_logging { |
| 35 | 35 |
| 36 #if defined(OS_LINUX) | 36 #if defined(OS_LINUX) || defined(OS_OPENBSD) |
| 37 // These are declared here so the crash reporter can access them directly in | 37 // These are declared here so the crash reporter can access them directly in |
| 38 // compromised context without going through the standard library. | 38 // compromised context without going through the standard library. |
| 39 extern char g_active_url[]; | 39 extern char g_active_url[]; |
| 40 extern char g_client_id[]; | 40 extern char g_client_id[]; |
| 41 extern char g_extension_ids[]; | 41 extern char g_extension_ids[]; |
| 42 extern char g_gpu_vendor_id[]; | 42 extern char g_gpu_vendor_id[]; |
| 43 extern char g_gpu_device_id[]; | 43 extern char g_gpu_device_id[]; |
| 44 extern char g_gpu_driver_ver[]; | 44 extern char g_gpu_driver_ver[]; |
| 45 extern char g_gpu_ps_ver[]; | 45 extern char g_gpu_ps_ver[]; |
| 46 extern char g_gpu_vs_ver[]; | 46 extern char g_gpu_vs_ver[]; |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 | 113 |
| 114 extern const int kMaxNumCrashURLChunks; | 114 extern const int kMaxNumCrashURLChunks; |
| 115 extern const int kMaxNumURLChunkValueLength; | 115 extern const int kMaxNumURLChunkValueLength; |
| 116 extern const char *kUrlChunkFormatStr; | 116 extern const char *kUrlChunkFormatStr; |
| 117 | 117 |
| 118 } // namespace child_process_logging | 118 } // namespace child_process_logging |
| 119 | 119 |
| 120 #endif // defined(OS_MACOSX) | 120 #endif // defined(OS_MACOSX) |
| 121 | 121 |
| 122 #endif // CHROME_COMMON_CHILD_PROCESS_LOGGING_H_ | 122 #endif // CHROME_COMMON_CHILD_PROCESS_LOGGING_H_ |
| OLD | NEW |