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

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

Issue 5624002: Move more code from headers to implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 10 years 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 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 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 #ifndef NET_URL_REQUEST_URL_REQUEST_THROTTLER_HEADER_ADAPTER_H_ 5 #ifndef NET_URL_REQUEST_URL_REQUEST_THROTTLER_HEADER_ADAPTER_H_
6 #define NET_URL_REQUEST_URL_REQUEST_THROTTLER_HEADER_ADAPTER_H_ 6 #define NET_URL_REQUEST_URL_REQUEST_THROTTLER_HEADER_ADAPTER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/ref_counted.h" 10 #include "base/ref_counted.h"
11 #include "net/url_request/url_request_throttler_header_interface.h" 11 #include "net/url_request/url_request_throttler_header_interface.h"
12 12
13 namespace net { 13 namespace net {
14 14
15 class HttpResponseHeaders; 15 class HttpResponseHeaders;
16 16
17 // Adapter for the HTTP header interface of the URL request throttler component. 17 // Adapter for the HTTP header interface of the URL request throttler component.
18 class URLRequestThrottlerHeaderAdapter 18 class URLRequestThrottlerHeaderAdapter
19 : public URLRequestThrottlerHeaderInterface { 19 : public URLRequestThrottlerHeaderInterface {
20 public: 20 public:
21 explicit URLRequestThrottlerHeaderAdapter(net::HttpResponseHeaders* headers); 21 explicit URLRequestThrottlerHeaderAdapter(net::HttpResponseHeaders* headers);
22 virtual ~URLRequestThrottlerHeaderAdapter() {} 22 virtual ~URLRequestThrottlerHeaderAdapter();
23 23
24 // Implementation of URLRequestThrottlerHeaderInterface 24 // Implementation of URLRequestThrottlerHeaderInterface
25 virtual std::string GetNormalizedValue(const std::string& key) const; 25 virtual std::string GetNormalizedValue(const std::string& key) const;
26 virtual int GetResponseCode() const; 26 virtual int GetResponseCode() const;
27 27
28 private: 28 private:
29 const scoped_refptr<net::HttpResponseHeaders> response_header_; 29 const scoped_refptr<net::HttpResponseHeaders> response_header_;
30 }; 30 };
31 31
32 } // namespace net 32 } // namespace net
33 33
34 #endif // NET_URL_REQUEST_URL_REQUEST_THROTTLER_HEADER_ADAPTER_H_ 34 #endif // NET_URL_REQUEST_URL_REQUEST_THROTTLER_HEADER_ADAPTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698