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

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

Issue 2487001: Request Throttler : Exponential back-off (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Corrected a flaky test due to having 2 implementation of request throttling 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
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_INTERFACE_H_
6 #define NET_REQUEST_THROTTLER_REQUEST_THROTTLER_HEADER_INTERFACE_H_
7
8 #include <string>
9
10 // Interface to an HTTP header to enforce we have the methods we need.
11 class RequestThrottlerHeaderInterface {
12 public:
13 virtual ~RequestThrottlerHeaderInterface() {}
14
15 // Method that enables us to fetch the header value by its key.
16 // ex: location: www.example.com -> key = "location" value = "www.example.com"
17 // If the key does not exist, it returns an empty string.
18 virtual std::string GetNormalizedValue(const std::string& key) const = 0;
19
20 // Returns the HTTP response code associated with the request.
21 virtual int GetResponseCode() const = 0;
22 };
23
24 #endif // NET_REQUEST_THROTTLER_REQUEST_THROTTLER_HEADER_INTERFACE_H_
OLDNEW
« no previous file with comments | « net/request_throttler/request_throttler_header_adapter.cc ('k') | net/request_throttler/request_throttler_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698