OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "chrome/test/webdriver/http_response.h" | 5 #include "chrome/test/webdriver/http_response.h" |
6 | 6 |
7 #include "base/format_macros.h" | 7 #include "base/format_macros.h" |
8 #include "base/string_util.h" | 8 #include "base/strings/string_util.h" |
9 #include "base/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
10 | 10 |
11 namespace webdriver { | 11 namespace webdriver { |
12 | 12 |
13 const int HttpResponse::kOk = 200; | 13 const int HttpResponse::kOk = 200; |
14 const int HttpResponse::kNoContent = 204; | 14 const int HttpResponse::kNoContent = 204; |
15 const int HttpResponse::kSeeOther = 303; | 15 const int HttpResponse::kSeeOther = 303; |
16 const int HttpResponse::kNotModified = 304; | 16 const int HttpResponse::kNotModified = 304; |
17 const int HttpResponse::kBadRequest = 400; | 17 const int HttpResponse::kBadRequest = 400; |
18 const int HttpResponse::kForbidden = 403; | 18 const int HttpResponse::kForbidden = 403; |
19 const int HttpResponse::kNotFound = 404; | 19 const int HttpResponse::kNotFound = 404; |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 body_ = body; | 149 body_ = body; |
150 } | 150 } |
151 | 151 |
152 void HttpResponse::UpdateHeader(const std::string& name, | 152 void HttpResponse::UpdateHeader(const std::string& name, |
153 const std::string& new_value) { | 153 const std::string& new_value) { |
154 RemoveHeader(name); | 154 RemoveHeader(name); |
155 AddHeader(name, new_value); | 155 AddHeader(name, new_value); |
156 } | 156 } |
157 | 157 |
158 } // namespace webdriver | 158 } // namespace webdriver |
OLD | NEW |