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

Side by Side Diff: net/request_throttler/request_throttler_header_adapter.cc

Issue 3005049: This CL will introduce a new way to do exponential back-off on failure within... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 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 | Annotate | Revision Log
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(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 }
OLDNEW
« no previous file with comments | « net/request_throttler/request_throttler_header_adapter.h ('k') | net/request_throttler/request_throttler_header_interface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698