Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(707)

Side by Side Diff: net/http/http_network_delegate.h

Issue 6541021: Send fatal proxy errors to the network delegate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/net/chrome_network_delegate.cc ('k') | net/url_request/url_request.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_HTTP_HTTP_NETWORK_DELEGATE_H_ 5 #ifndef NET_HTTP_HTTP_NETWORK_DELEGATE_H_
6 #define NET_HTTP_HTTP_NETWORK_DELEGATE_H_ 6 #define NET_HTTP_HTTP_NETWORK_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 namespace net { 9 namespace net {
10 10
11 class HttpRequestHeaders; 11 class HttpRequestHeaders;
12 class URLRequest; 12 class URLRequest;
13 13
14 class HttpNetworkDelegate { 14 class HttpNetworkDelegate {
15 public: 15 public:
16 // Called before a request is sent. 16 // Called before a request is sent.
17 virtual void OnBeforeURLRequest(net::URLRequest* request) = 0; 17 virtual void OnBeforeURLRequest(URLRequest* request) = 0;
18 18
19 // Called right before the HTTP headers are sent. Allows the delegate to 19 // Called right before the HTTP headers are sent. Allows the delegate to
20 // read/write |headers| before they get sent out. 20 // read/write |headers| before they get sent out.
21 virtual void OnSendHttpRequest(HttpRequestHeaders* headers) = 0; 21 virtual void OnSendHttpRequest(HttpRequestHeaders* headers) = 0;
22 22
23 // This corresponds to URLRequestDelegate::OnResponseStarted.
24 virtual void OnResponseStarted(URLRequest* request) = 0;
25
26 // This corresponds to URLRequestDelegate::OnReadCompleted.
27 virtual void OnReadCompleted(URLRequest* request, int bytes_read) = 0;
28
23 protected: 29 protected:
24 virtual ~HttpNetworkDelegate() {} 30 virtual ~HttpNetworkDelegate() {}
25 }; 31 };
26 32
27 } // namespace net 33 } // namespace net
28 34
29 #endif // NET_HTTP_HTTP_NETWORK_DELEGATE_H_ 35 #endif // NET_HTTP_HTTP_NETWORK_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/net/chrome_network_delegate.cc ('k') | net/url_request/url_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698