blob: 1533bc3711e818b2db4b68f52dce113b2ec6a9a2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
// 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 NET_HTTP_HTTP_NETWORK_DELEGATE_H_
#define NET_HTTP_HTTP_NETWORK_DELEGATE_H_
#pragma once
namespace net {
class HttpRequestHeaders;
class URLRequest;
class HttpNetworkDelegate {
public:
// Called before a request is sent.
virtual void OnBeforeURLRequest(net::URLRequest* request) = 0;
// Called right before the HTTP headers are sent. Allows the delegate to
// read/write |headers| before they get sent out.
virtual void OnSendHttpRequest(HttpRequestHeaders* headers) = 0;
protected:
virtual ~HttpNetworkDelegate() {}
};
} // namespace net
#endif // NET_HTTP_HTTP_NETWORK_DELEGATE_H_
|