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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 void ParamTraits<net::URLRequestStatus>::Log(const param_type& p, | 92 void ParamTraits<net::URLRequestStatus>::Log(const param_type& p, |
93 std::string* l) { | 93 std::string* l) { |
94 std::string status; | 94 std::string status; |
95 switch (p.status()) { | 95 switch (p.status()) { |
96 case net::URLRequestStatus::SUCCESS: | 96 case net::URLRequestStatus::SUCCESS: |
97 status = "SUCCESS"; | 97 status = "SUCCESS"; |
98 break; | 98 break; |
99 case net::URLRequestStatus::IO_PENDING: | 99 case net::URLRequestStatus::IO_PENDING: |
100 status = "IO_PENDING "; | 100 status = "IO_PENDING "; |
101 break; | 101 break; |
102 case net::URLRequestStatus::HANDLED_EXTERNALLY: | |
103 status = "HANDLED_EXTERNALLY"; | |
104 break; | |
105 case net::URLRequestStatus::CANCELED: | 102 case net::URLRequestStatus::CANCELED: |
106 status = "CANCELED"; | 103 status = "CANCELED"; |
107 break; | 104 break; |
108 case net::URLRequestStatus::FAILED: | 105 case net::URLRequestStatus::FAILED: |
109 status = "FAILED"; | 106 status = "FAILED"; |
110 break; | 107 break; |
111 default: | 108 default: |
112 status = "UNKNOWN"; | 109 status = "UNKNOWN"; |
113 break; | 110 break; |
114 } | 111 } |
(...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
616 #undef CONTENT_PUBLIC_COMMON_COMMON_PARAM_TRAITS_MACROS_H_ | 613 #undef CONTENT_PUBLIC_COMMON_COMMON_PARAM_TRAITS_MACROS_H_ |
617 #include "content/public/common/common_param_traits_macros.h" | 614 #include "content/public/common/common_param_traits_macros.h" |
618 } // namespace IPC | 615 } // namespace IPC |
619 | 616 |
620 // Generate param traits log methods. | 617 // Generate param traits log methods. |
621 #include "ipc/param_traits_log_macros.h" | 618 #include "ipc/param_traits_log_macros.h" |
622 namespace IPC { | 619 namespace IPC { |
623 #undef CONTENT_PUBLIC_COMMON_COMMON_PARAM_TRAITS_MACROS_H_ | 620 #undef CONTENT_PUBLIC_COMMON_COMMON_PARAM_TRAITS_MACROS_H_ |
624 #include "content/public/common/common_param_traits_macros.h" | 621 #include "content/public/common/common_param_traits_macros.h" |
625 } // namespace IPC | 622 } // namespace IPC |
OLD | NEW |