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 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 // would be cut to 63 chars. | 109 // would be cut to 63 chars. |
110 void SetPrinterInfo(const char* printer_info); | 110 void SetPrinterInfo(const char* printer_info); |
111 | 111 |
112 // Sets the command line arguments to send along with crash reports to the | 112 // Sets the command line arguments to send along with crash reports to the |
113 // values in |command_line|. | 113 // values in |command_line|. |
114 void SetCommandLine(const CommandLine* command_line); | 114 void SetCommandLine(const CommandLine* command_line); |
115 | 115 |
116 // Initialize the list of experiment info to send along with crash reports. | 116 // Initialize the list of experiment info to send along with crash reports. |
117 void SetExperimentList(const std::vector<string16>& state); | 117 void SetExperimentList(const std::vector<string16>& state); |
118 | 118 |
119 #if defined(OS_LINUX) || defined(OS_OPENBSD) || defined(OS_MACOSX) | 119 #if defined(OS_LINUX) || defined(OS_BSD) || defined(OS_MACOSX) |
120 // Sets the product channel data to send along with crash reports to |channel|. | 120 // Sets the product channel data to send along with crash reports to |channel|. |
121 void SetChannel(const std::string& channel); | 121 void SetChannel(const std::string& channel); |
122 #endif | 122 #endif |
123 | 123 |
124 // Simple wrapper class that sets the active URL in it's constructor and clears | 124 // Simple wrapper class that sets the active URL in it's constructor and clears |
125 // the active URL in the destructor. | 125 // the active URL in the destructor. |
126 class ScopedActiveURLSetter { | 126 class ScopedActiveURLSetter { |
127 public: | 127 public: |
128 explicit ScopedActiveURLSetter(const GURL& url) { | 128 explicit ScopedActiveURLSetter(const GURL& url) { |
129 SetActiveURL(url); | 129 SetActiveURL(url); |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 | 164 |
165 extern const size_t kMaxNumCrashURLChunks; | 165 extern const size_t kMaxNumCrashURLChunks; |
166 extern const size_t kMaxNumURLChunkValueLength; | 166 extern const size_t kMaxNumURLChunkValueLength; |
167 extern const char* kUrlChunkFormatStr; | 167 extern const char* kUrlChunkFormatStr; |
168 | 168 |
169 } // namespace child_process_logging | 169 } // namespace child_process_logging |
170 | 170 |
171 #endif // defined(OS_MACOSX) | 171 #endif // defined(OS_MACOSX) |
172 | 172 |
173 #endif // CHROME_COMMON_CHILD_PROCESS_LOGGING_H_ | 173 #endif // CHROME_COMMON_CHILD_PROCESS_LOGGING_H_ |
OLD | NEW |