Logo Search packages:      
Sourcecode: chromium-browser version File versions  Download package

chrome_network_delegate.h

// 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.

#ifndef CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_
#define CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_

#include "base/basictypes.h"
#include "net/http/http_network_delegate.h"

// ChromeNetworkDelegate is the central point from within the chrome code to
// add hooks into the network stack.  In the future, we can use this for
// extensions to register hooks for the network stack.
class ChromeNetworkDelegate : public net::HttpNetworkDelegate {
 public:
  ChromeNetworkDelegate();
  ~ChromeNetworkDelegate();

  // net::HttpNetworkDelegate methods:

  virtual void OnSendHttpRequest(net::HttpRequestHeaders* headers);

  // TODO(willchan): Add functions for consumers to register ways to
  // access/modify the request.

 private:
  DISALLOW_COPY_AND_ASSIGN(ChromeNetworkDelegate);
};

#endif // CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_

Generated by  Doxygen 1.6.0   Back to index