blob: c69d1855f255821a093d0bd3373594470a5156b9 [file] [log] [blame]
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <string>
namespace net {
// Interface to an HTTP header to enforce we have the methods we need.
class URLRequestThrottlerHeaderInterface {
virtual ~URLRequestThrottlerHeaderInterface() {}
// Method that enables us to fetch the header value by its key.
// ex: location: -> key = "location" value = ""
// If the key does not exist, it returns an empty string.
virtual std::string GetNormalizedValue(const std::string& key) const = 0;
// Returns the HTTP response code associated with the request.
virtual int GetResponseCode() const = 0;
} // namespace net