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

Side by Side Diff: net/url_request/request_throttler_header_adapter.h

Issue 4194001: Implement exponential back-off mechanism and enforce it at the URLRequestHttpJob level. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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 #ifndef NET_URL_REQUEST_REQUEST_THROTTLER_HEADER_ADAPTER_H_
6 #define NET_URL_REQUEST_REQUEST_THROTTLER_HEADER_ADAPTER_H_
7
8 #include <string>
9
10 #include "base/scoped_ptr.h"
willchan no longer on Chromium 2010/11/24 10:14:50 Don't you need ref_counted.h for scoped_refptr ins
yzshen 2010/11/24 19:09:30 Done.
11 #include "net/http/http_response_headers.h"
willchan no longer on Chromium 2010/11/24 10:14:50 Can net::HttpResponseHeaders be forward declared i
yzshen 2010/11/24 19:09:30 Done.
12 #include "net/url_request/request_throttler_header_interface.h"
13
14 // Adapter for the HTTP header interface of the request throttler component.
15 class RequestThrottlerHeaderAdapter : public RequestThrottlerHeaderInterface {
16 public:
17 explicit RequestThrottlerHeaderAdapter(net::HttpResponseHeaders* headers);
18 virtual ~RequestThrottlerHeaderAdapter() {}
19
20 // Implementation of RequestThrottlerHeaderInterface
21 virtual std::string GetNormalizedValue(const std::string& key) const;
22 virtual int GetResponseCode() const;
23
24 private:
25 const scoped_refptr<net::HttpResponseHeaders> response_header_;
26 };
27
28 #endif // NET_URL_REQUEST_REQUEST_THROTTLER_HEADER_ADAPTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698