Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(82)

Side by Side Diff: content/public/common/common_param_traits.cc

Issue 10640019: Remove the HANDLED_EXTERNALLY status code. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: fixed some minor issues Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698