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

Side by Side Diff: android_webview/browser/net/aw_url_request_job_factory.h

Issue 686343002: Add MaybeInterceptRedirect/Response to URLRequestInterceptor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removed inline Created 6 years, 1 month 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
« no previous file with comments | « no previous file | android_webview/browser/net/aw_url_request_job_factory.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 ANDROID_WEBVIEW_BROWSER_NET_AW_URL_REQUEST_JOB_FACTORY_H_ 5 #ifndef ANDROID_WEBVIEW_BROWSER_NET_AW_URL_REQUEST_JOB_FACTORY_H_
6 #define ANDROID_WEBVIEW_BROWSER_NET_AW_URL_REQUEST_JOB_FACTORY_H_ 6 #define ANDROID_WEBVIEW_BROWSER_NET_AW_URL_REQUEST_JOB_FACTORY_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "net/url_request/url_request_job_factory.h" 9 #include "net/url_request/url_request_job_factory.h"
10 10
(...skipping 11 matching lines...) Expand all
22 // the request. 22 // the request.
23 class AwURLRequestJobFactory : public net::URLRequestJobFactory { 23 class AwURLRequestJobFactory : public net::URLRequestJobFactory {
24 public: 24 public:
25 AwURLRequestJobFactory(); 25 AwURLRequestJobFactory();
26 virtual ~AwURLRequestJobFactory(); 26 virtual ~AwURLRequestJobFactory();
27 27
28 bool SetProtocolHandler(const std::string& scheme, 28 bool SetProtocolHandler(const std::string& scheme,
29 ProtocolHandler* protocol_handler); 29 ProtocolHandler* protocol_handler);
30 30
31 // net::URLRequestJobFactory implementation. 31 // net::URLRequestJobFactory implementation.
32 virtual net::URLRequestJob* MaybeCreateJobWithProtocolHandler( 32 net::URLRequestJob* MaybeCreateJobWithProtocolHandler(
33 const std::string& scheme, 33 const std::string& scheme,
34 net::URLRequest* request, 34 net::URLRequest* request,
35 net::NetworkDelegate* network_delegate) const override; 35 net::NetworkDelegate* network_delegate) const override;
36
37 net::URLRequestJob* MaybeInterceptRedirect(
38 net::URLRequest* request,
39 net::NetworkDelegate* network_delegate,
40 const GURL& location) const override;
41
42 net::URLRequestJob* MaybeInterceptResponse(
43 net::URLRequest* request,
44 net::NetworkDelegate* network_delegate) const override;
45
36 virtual bool IsHandledProtocol(const std::string& scheme) const override; 46 virtual bool IsHandledProtocol(const std::string& scheme) const override;
37 virtual bool IsHandledURL(const GURL& url) const override; 47 virtual bool IsHandledURL(const GURL& url) const override;
38 virtual bool IsSafeRedirectTarget(const GURL& location) const override; 48 virtual bool IsSafeRedirectTarget(const GURL& location) const override;
39 49
40 private: 50 private:
41 // By default calls are forwarded to this factory, to avoid having to 51 // By default calls are forwarded to this factory, to avoid having to
42 // subclass an existing implementation class. 52 // subclass an existing implementation class.
43 scoped_ptr<net::URLRequestJobFactoryImpl> next_factory_; 53 scoped_ptr<net::URLRequestJobFactoryImpl> next_factory_;
44 54
45 DISALLOW_COPY_AND_ASSIGN(AwURLRequestJobFactory); 55 DISALLOW_COPY_AND_ASSIGN(AwURLRequestJobFactory);
46 }; 56 };
47 57
48 } // namespace android_webview 58 } // namespace android_webview
49 59
50 #endif // ANDROID_WEBVIEW_BROWSER_NET_AW_URL_REQUEST_JOB_FACTORY_H_ 60 #endif // ANDROID_WEBVIEW_BROWSER_NET_AW_URL_REQUEST_JOB_FACTORY_H_
OLDNEW
« no previous file with comments | « no previous file | android_webview/browser/net/aw_url_request_job_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698