| 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 #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 13 matching lines...) Expand all Loading... |
| 24 // The maximum number of active extensions we will report. | 24 // The maximum number of active extensions we will report. |
| 25 // Also used in chrome/app, but we define it here to avoid a common->app | 25 // Also used in chrome/app, but we define it here to avoid a common->app |
| 26 // dependency. | 26 // dependency. |
| 27 static const int kMaxReportedActiveExtensions = 10; | 27 static const int kMaxReportedActiveExtensions = 10; |
| 28 | 28 |
| 29 // The maximum number of experiment chunks we will report. | 29 // The maximum number of experiment chunks we will report. |
| 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 int kMaxReportedExperimentChunks = 15; | 32 static const int kMaxReportedExperimentChunks = 15; |
| 33 | 33 |
| 34 // The maximum size of an experiment chunk. This size was picked to be |
| 35 // consistent between platforms and the value was chosen from the Windows |
| 36 // limit of google_breakpad::CustomInfoEntry::kValueMaxLength. |
| 37 static const size_t kMaxExperimentChunkSize = 64; |
| 38 |
| 34 // The maximum number of prn-info-* records. | 39 // The maximum number of prn-info-* records. |
| 35 static const size_t kMaxReportedPrinterRecords = 4; | 40 static const size_t kMaxReportedPrinterRecords = 4; |
| 36 | 41 |
| 37 // The maximum number of command line switches to include in the crash | 42 // The maximum number of command line switches to include in the crash |
| 38 // report's metadata. Note that the mini-dump itself will also contain the | 43 // report's metadata. Note that the mini-dump itself will also contain the |
| 39 // (original) command line arguments within the PEB. | 44 // (original) command line arguments within the PEB. |
| 40 // Also used in chrome/app, but we define it here to avoid a common->app | 45 // Also used in chrome/app, but we define it here to avoid a common->app |
| 41 // dependency. | 46 // dependency. |
| 42 static const size_t kMaxSwitches = 15; | 47 static const size_t kMaxSwitches = 15; |
| 43 | 48 |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 | 161 |
| 157 extern const int kMaxNumCrashURLChunks; | 162 extern const int kMaxNumCrashURLChunks; |
| 158 extern const int kMaxNumURLChunkValueLength; | 163 extern const int kMaxNumURLChunkValueLength; |
| 159 extern const char *kUrlChunkFormatStr; | 164 extern const char *kUrlChunkFormatStr; |
| 160 | 165 |
| 161 } // namespace child_process_logging | 166 } // namespace child_process_logging |
| 162 | 167 |
| 163 #endif // defined(OS_MACOSX) | 168 #endif // defined(OS_MACOSX) |
| 164 | 169 |
| 165 #endif // CHROME_COMMON_CHILD_PROCESS_LOGGING_H_ | 170 #endif // CHROME_COMMON_CHILD_PROCESS_LOGGING_H_ |
| OLD | NEW |