Chromium Code Reviews| 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. | |
| 35 static const int kMaxExperimentChunkSize = 64; | |
|
Scott Hess - ex-Googler
2012/06/27 00:32:41
Is the plan to share the chunking with other platf
MAD
2012/06/28 13:03:38
Please add a comment explaining why we kept 64.
Alexei Svitkine (slow)
2012/06/28 15:01:32
Done.
| |
| 36 | |
| 34 // The maximum number of prn-info-* records. | 37 // The maximum number of prn-info-* records. |
| 35 static const size_t kMaxReportedPrinterRecords = 4; | 38 static const size_t kMaxReportedPrinterRecords = 4; |
| 36 | 39 |
| 37 // The maximum number of command line switches to include in the crash | 40 // 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 | 41 // report's metadata. Note that the mini-dump itself will also contain the |
| 39 // (original) command line arguments within the PEB. | 42 // (original) command line arguments within the PEB. |
| 40 // Also used in chrome/app, but we define it here to avoid a common->app | 43 // Also used in chrome/app, but we define it here to avoid a common->app |
| 41 // dependency. | 44 // dependency. |
| 42 static const size_t kMaxSwitches = 15; | 45 static const size_t kMaxSwitches = 15; |
| 43 | 46 |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 156 | 159 |
| 157 extern const int kMaxNumCrashURLChunks; | 160 extern const int kMaxNumCrashURLChunks; |
| 158 extern const int kMaxNumURLChunkValueLength; | 161 extern const int kMaxNumURLChunkValueLength; |
| 159 extern const char *kUrlChunkFormatStr; | 162 extern const char *kUrlChunkFormatStr; |
| 160 | 163 |
| 161 } // namespace child_process_logging | 164 } // namespace child_process_logging |
| 162 | 165 |
| 163 #endif // defined(OS_MACOSX) | 166 #endif // defined(OS_MACOSX) |
| 164 | 167 |
| 165 #endif // CHROME_COMMON_CHILD_PROCESS_LOGGING_H_ | 168 #endif // CHROME_COMMON_CHILD_PROCESS_LOGGING_H_ |
| OLD | NEW |