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 #include "content/public/common/common_param_traits.h" | 5 #include "content/public/common/common_param_traits.h" |
6 | 6 |
7 #include "content/public/common/content_constants.h" | 7 #include "content/public/common/content_constants.h" |
8 #include "content/public/common/referrer.h" | 8 #include "content/public/common/referrer.h" |
9 #include "net/base/host_port_pair.h" | 9 #include "net/base/host_port_pair.h" |
10 #include "net/base/upload_data.h" | 10 #include "net/base/upload_data.h" |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 void ParamTraits<net::URLRequestStatus>::Log(const param_type& p, | 160 void ParamTraits<net::URLRequestStatus>::Log(const param_type& p, |
161 std::string* l) { | 161 std::string* l) { |
162 std::string status; | 162 std::string status; |
163 switch (p.status()) { | 163 switch (p.status()) { |
164 case net::URLRequestStatus::SUCCESS: | 164 case net::URLRequestStatus::SUCCESS: |
165 status = "SUCCESS"; | 165 status = "SUCCESS"; |
166 break; | 166 break; |
167 case net::URLRequestStatus::IO_PENDING: | 167 case net::URLRequestStatus::IO_PENDING: |
168 status = "IO_PENDING "; | 168 status = "IO_PENDING "; |
169 break; | 169 break; |
170 case net::URLRequestStatus::HANDLED_EXTERNALLY: | |
171 status = "HANDLED_EXTERNALLY"; | |
172 break; | |
173 case net::URLRequestStatus::CANCELED: | 170 case net::URLRequestStatus::CANCELED: |
174 status = "CANCELED"; | 171 status = "CANCELED"; |
175 break; | 172 break; |
176 case net::URLRequestStatus::FAILED: | 173 case net::URLRequestStatus::FAILED: |
177 status = "FAILED"; | 174 status = "FAILED"; |
178 break; | 175 break; |
179 default: | 176 default: |
180 status = "UNKNOWN"; | 177 status = "UNKNOWN"; |
181 break; | 178 break; |
182 } | 179 } |
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
582 level = "CONSOLE_MESSAGE_LEVEL_WARNING"; | 579 level = "CONSOLE_MESSAGE_LEVEL_WARNING"; |
583 break; | 580 break; |
584 case content::CONSOLE_MESSAGE_LEVEL_ERROR: | 581 case content::CONSOLE_MESSAGE_LEVEL_ERROR: |
585 level = "CONSOLE_MESSAGE_LEVEL_ERROR"; | 582 level = "CONSOLE_MESSAGE_LEVEL_ERROR"; |
586 break; | 583 break; |
587 } | 584 } |
588 LogParam(level, l); | 585 LogParam(level, l); |
589 } | 586 } |
590 | 587 |
591 } // namespace IPC | 588 } // namespace IPC |
OLD | NEW |