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

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

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 #ifndef NET_REQUEST_THROTTLER_REQUEST_THROTTLER_HEADER_ADAPTER_H_
6 #define NET_REQUEST_THROTTLER_REQUEST_THROTTLER_HEADER_ADAPTER_H_
7
8 #include <string>
9
10 #include "base/scoped_ptr.h"
11 #include "net/http/http_response_headers.h"
12 #include "net/request_throttler/request_throttler_header_interface.h"
13
14 namespace net {
15 class HttpResponseHeaders;
16 }
17
18 // Adapter for the http header interface of the request throttler component.
19 class RequestThrottlerHeaderAdapter : public RequestThrottlerHeaderInterface {
20 public:
21 RequestThrottlerHeaderAdapter(
22 const scoped_refptr<net::HttpResponseHeaders>& headers);
23 virtual ~RequestThrottlerHeaderAdapter() {}
24
25 // Implementation of the Http header interface
26 virtual std::string GetNormalizedValue(const std::string& key) const;
27 virtual int GetResponseCode() const;
28 private:
29 const scoped_refptr<net::HttpResponseHeaders> response_header_;
30 };
31
32 #endif // NET_REQUEST_THROTTLER_REQUEST_THROTTLER_HEADER_ADAPTER_H_
OLDNEW
« no previous file with comments | « net/request_throttler/request_throttler_entry_interface.h ('k') | net/request_throttler/request_throttler_header_adapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698