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

Side by Side Diff: android_webview/browser/aw_request_interceptor.h

Issue 284123004: [android_webview] Add more params to request intercepting. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix accidentally broken test Created 6 years, 6 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) 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_AW_REQUEST_INTERCEPTOR_H_ 5 #ifndef ANDROID_WEBVIEW_BROWSER_AW_REQUEST_INTERCEPTOR_H_
6 #define ANDROID_WEBVIEW_BROWSER_AW_REQUEST_INTERCEPTOR_H_ 6 #define ANDROID_WEBVIEW_BROWSER_AW_REQUEST_INTERCEPTOR_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "net/url_request/url_request_interceptor.h" 9 #include "net/url_request/url_request_interceptor.h"
10 10
11 class GURL; 11 class GURL;
12 12
13 namespace net { 13 namespace net {
14 class URLRequest; 14 class URLRequest;
15 class URLRequestContextGetter; 15 class URLRequestContextGetter;
16 class URLRequestJob; 16 class URLRequestJob;
17 class NetworkDelegate; 17 class NetworkDelegate;
18 } 18 }
19 19
20 namespace android_webview { 20 namespace android_webview {
21 21
22 class InterceptedRequestData; 22 class AwWebResourceResponse;
23 23
24 // This class allows the Java-side embedder to substitute the default 24 // This class allows the Java-side embedder to substitute the default
25 // URLRequest of a given request for an alternative job that will read data 25 // URLRequest of a given request for an alternative job that will read data
26 // from a Java stream. 26 // from a Java stream.
27 class AwRequestInterceptor : public net::URLRequestInterceptor { 27 class AwRequestInterceptor : public net::URLRequestInterceptor {
28 public: 28 public:
29 AwRequestInterceptor(); 29 AwRequestInterceptor();
30 virtual ~AwRequestInterceptor(); 30 virtual ~AwRequestInterceptor();
31 31
32 // net::URLRequestInterceptor override -------------------------------------- 32 // net::URLRequestInterceptor override --------------------------------------
33 virtual net::URLRequestJob* MaybeInterceptRequest( 33 virtual net::URLRequestJob* MaybeInterceptRequest(
34 net::URLRequest* request, 34 net::URLRequest* request,
35 net::NetworkDelegate* network_delegate) const OVERRIDE; 35 net::NetworkDelegate* network_delegate) const OVERRIDE;
36 36
37 private: 37 private:
38 scoped_ptr<InterceptedRequestData> QueryForInterceptedRequestData( 38 scoped_ptr<AwWebResourceResponse> QueryForAwWebResourceResponse(
39 const GURL& location, 39 const GURL& location,
40 net::URLRequest* request) const; 40 net::URLRequest* request) const;
41 41
42 DISALLOW_COPY_AND_ASSIGN(AwRequestInterceptor); 42 DISALLOW_COPY_AND_ASSIGN(AwRequestInterceptor);
43 }; 43 };
44 44
45 } // namespace android_webview 45 } // namespace android_webview
46 46
47 #endif // ANDROID_WEBVIEW_BROWSER_AW_REQUEST_INTERCEPTOR_H_ 47 #endif // ANDROID_WEBVIEW_BROWSER_AW_REQUEST_INTERCEPTOR_H_
OLDNEW
« no previous file with comments | « android_webview/browser/aw_contents_io_thread_client.h ('k') | android_webview/browser/aw_request_interceptor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698