summaryrefslogtreecommitdiffstats
path: root/net/http/http_network_delegate.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/http/http_network_delegate.h')
-rw-r--r--net/http/http_network_delegate.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/net/http/http_network_delegate.h b/net/http/http_network_delegate.h
new file mode 100644
index 0000000..51c6766
--- /dev/null
+++ b/net/http/http_network_delegate.h
@@ -0,0 +1,24 @@
+// 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_
+
+namespace net {
+
+class HttpRequestHeaders;
+
+class HttpNetworkDelegate {
+ public:
+ // 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_