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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 void ParamTraits<net::URLRequestStatus>::Log(const param_type& p, | 91 void ParamTraits<net::URLRequestStatus>::Log(const param_type& p, |
92 std::string* l) { | 92 std::string* l) { |
93 std::string status; | 93 std::string status; |
94 switch (p.status()) { | 94 switch (p.status()) { |
95 case net::URLRequestStatus::SUCCESS: | 95 case net::URLRequestStatus::SUCCESS: |
96 status = "SUCCESS"; | 96 status = "SUCCESS"; |
97 break; | 97 break; |
98 case net::URLRequestStatus::IO_PENDING: | 98 case net::URLRequestStatus::IO_PENDING: |
99 status = "IO_PENDING "; | 99 status = "IO_PENDING "; |
100 break; | 100 break; |
101 case net::URLRequestStatus::HANDLED_EXTERNALLY: | |
102 status = "HANDLED_EXTERNALLY"; | |
103 break; | |
104 case net::URLRequestStatus::CANCELED: | 101 case net::URLRequestStatus::CANCELED: |
105 status = "CANCELED"; | 102 status = "CANCELED"; |
106 break; | 103 break; |
107 case net::URLRequestStatus::FAILED: | 104 case net::URLRequestStatus::FAILED: |
108 status = "FAILED"; | 105 status = "FAILED"; |
109 break; | 106 break; |
110 default: | 107 default: |
111 status = "UNKNOWN"; | 108 status = "UNKNOWN"; |
112 break; | 109 break; |
113 } | 110 } |
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
527 #undef CONTENT_PUBLIC_COMMON_COMMON_PARAM_TRAITS_MACROS_H_ | 524 #undef CONTENT_PUBLIC_COMMON_COMMON_PARAM_TRAITS_MACROS_H_ |
528 #include "content/public/common/common_param_traits_macros.h" | 525 #include "content/public/common/common_param_traits_macros.h" |
529 } // namespace IPC | 526 } // namespace IPC |
530 | 527 |
531 // Generate param traits log methods. | 528 // Generate param traits log methods. |
532 #include "ipc/param_traits_log_macros.h" | 529 #include "ipc/param_traits_log_macros.h" |
533 namespace IPC { | 530 namespace IPC { |
534 #undef CONTENT_PUBLIC_COMMON_COMMON_PARAM_TRAITS_MACROS_H_ | 531 #undef CONTENT_PUBLIC_COMMON_COMMON_PARAM_TRAITS_MACROS_H_ |
535 #include "content/public/common/common_param_traits_macros.h" | 532 #include "content/public/common/common_param_traits_macros.h" |
536 } // namespace IPC | 533 } // namespace IPC |
OLD | NEW |