chrome_network_delegate.h revision 3345a6884c488ff3a535c2c9acdd33d74b37e311
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 CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_
6#define CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_
7#pragma once
8
9#include "base/basictypes.h"
10#include "net/http/http_network_delegate.h"
11
12// ChromeNetworkDelegate is the central point from within the chrome code to
13// add hooks into the network stack.  In the future, we can use this for
14// extensions to register hooks for the network stack.
15class ChromeNetworkDelegate : public net::HttpNetworkDelegate {
16 public:
17  ChromeNetworkDelegate();
18  ~ChromeNetworkDelegate();
19
20  // net::HttpNetworkDelegate methods:
21
22  virtual void OnSendHttpRequest(net::HttpRequestHeaders* headers);
23
24  // TODO(willchan): Add functions for consumers to register ways to
25  // access/modify the request.
26
27 private:
28  DISALLOW_COPY_AND_ASSIGN(ChromeNetworkDelegate);
29};
30
31#endif  // CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_
32