| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "net/request_throttler/request_throttler_header_adapter.h" |
| 6 |
| 7 RequestThrottlerHeaderAdapter::RequestThrottlerHeaderAdapter( |
| 8 const scoped_refptr<net::HttpResponseHeaders>& headers) |
| 9 : response_header_(headers) { |
| 10 } |
| 11 |
| 12 std::string RequestThrottlerHeaderAdapter::GetNormalizedValue( |
| 13 const std::string& key) const { |
| 14 std::string return_value; |
| 15 response_header_->GetNormalizedHeader(key, &return_value); |
| 16 return return_value; |
| 17 } |
| 18 |
| 19 int RequestThrottlerHeaderAdapter::GetResponseCode() const { |
| 20 return response_header_->response_code(); |
| 21 } |
| OLD | NEW |