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

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

Issue 5384002: net: Remove typedef net::URLRequest URLRequest; (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 10 years 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_CONNECT_INTERCEPTOR_H_ 5 #ifndef CHROME_BROWSER_NET_CONNECT_INTERCEPTOR_H_
6 #define CHROME_BROWSER_NET_CONNECT_INTERCEPTOR_H_ 6 #define CHROME_BROWSER_NET_CONNECT_INTERCEPTOR_H_
7 #pragma once 7 #pragma once
8 8
9 #include "net/url_request/url_request.h" 9 #include "net/url_request/url_request.h"
10 10
11 namespace chrome_browser_net { 11 namespace chrome_browser_net {
12 12
13 //------------------------------------------------------------------------------ 13 //------------------------------------------------------------------------------
14 // An interceptor to monitor URLRequests so that we can do speculative DNS 14 // An interceptor to monitor URLRequests so that we can do speculative DNS
15 // resolution and/or speculative TCP preconnections. 15 // resolution and/or speculative TCP preconnections.
16 class ConnectInterceptor : public URLRequest::Interceptor { 16 class ConnectInterceptor : public net::URLRequest::Interceptor {
17 public: 17 public:
18 // Construction includes registration as an URL. 18 // Construction includes registration as an URL.
19 ConnectInterceptor(); 19 ConnectInterceptor();
20 // Destruction includes unregistering. 20 // Destruction includes unregistering.
21 virtual ~ConnectInterceptor(); 21 virtual ~ConnectInterceptor();
22 22
23 protected: 23 protected:
24 // URLRequest::Interceptor overrides 24 // Overridden from net::URLRequest::Interceptor:
25 // Learn about referrers, and optionally preconnect based on history. 25 // Learn about referrers, and optionally preconnect based on history.
26 virtual net::URLRequestJob* MaybeIntercept(net::URLRequest* request); 26 virtual net::URLRequestJob* MaybeIntercept(net::URLRequest* request);
27 virtual net::URLRequestJob* MaybeInterceptResponse(net::URLRequest* request); 27 virtual net::URLRequestJob* MaybeInterceptResponse(net::URLRequest* request);
28 virtual net::URLRequestJob* MaybeInterceptRedirect(net::URLRequest* request, 28 virtual net::URLRequestJob* MaybeInterceptRedirect(net::URLRequest* request,
29 const GURL& location); 29 const GURL& location);
30 30
31 private: 31 private:
32 DISALLOW_COPY_AND_ASSIGN(ConnectInterceptor); 32 DISALLOW_COPY_AND_ASSIGN(ConnectInterceptor);
33 }; 33 };
34 34
35 } // namespace chrome_browser_net 35 } // namespace chrome_browser_net
36 36
37 #endif // CHROME_BROWSER_NET_CONNECT_INTERCEPTOR_H_ 37 #endif // CHROME_BROWSER_NET_CONNECT_INTERCEPTOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698