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

Side by Side Diff: chrome/browser/net/chrome_network_delegate.h

Issue 6698009: Add request_id to HttpRequestInfo and pass it to the NetworkDelegate for events. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: net and cache intercept Created 9 years, 9 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
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 CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_
6 #define CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ 6 #define CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/ref_counted.h" 10 #include "base/ref_counted.h"
(...skipping 12 matching lines...) Expand all
23 explicit ChromeNetworkDelegate( 23 explicit ChromeNetworkDelegate(
24 ExtensionEventRouterForwarder* event_router, 24 ExtensionEventRouterForwarder* event_router,
25 ProfileId profile_id, 25 ProfileId profile_id,
26 ProtocolHandlerRegistry* protocol_handler_registry); 26 ProtocolHandlerRegistry* protocol_handler_registry);
27 virtual ~ChromeNetworkDelegate(); 27 virtual ~ChromeNetworkDelegate();
28 28
29 private: 29 private:
30 // NetworkDelegate methods: 30 // NetworkDelegate methods:
31 virtual bool OnBeforeURLRequest(net::URLRequest* request, 31 virtual bool OnBeforeURLRequest(net::URLRequest* request,
32 net::CompletionCallback* callback); 32 net::CompletionCallback* callback);
33 virtual void OnSendHttpRequest(net::HttpRequestHeaders* headers); 33 virtual bool OnBeforeHttpRequest(uint64 request_id,
34 net::HttpRequestHeaders* headers,
35 net::CompletionCallback* callback);
34 virtual void OnResponseStarted(net::URLRequest* request); 36 virtual void OnResponseStarted(net::URLRequest* request);
35 virtual void OnReadCompleted(net::URLRequest* request, int bytes_read); 37 virtual void OnReadCompleted(net::URLRequest* request, int bytes_read);
36 virtual net::URLRequestJob* OnMaybeCreateURLRequestJob( 38 virtual net::URLRequestJob* OnMaybeCreateURLRequestJob(
37 net::URLRequest* request); 39 net::URLRequest* request);
38 40
39 scoped_refptr<ExtensionEventRouterForwarder> event_router_; 41 scoped_refptr<ExtensionEventRouterForwarder> event_router_;
40 const ProfileId profile_id_; 42 const ProfileId profile_id_;
41 scoped_refptr<ProtocolHandlerRegistry> protocol_handler_registry_; 43 scoped_refptr<ProtocolHandlerRegistry> protocol_handler_registry_;
42 DISALLOW_COPY_AND_ASSIGN(ChromeNetworkDelegate); 44 DISALLOW_COPY_AND_ASSIGN(ChromeNetworkDelegate);
43 }; 45 };
44 46
45 #endif // CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ 47 #endif // CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698