| OLD | NEW |
| 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 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 AwRequestInterceptor(); | 29 AwRequestInterceptor(); |
| 30 ~AwRequestInterceptor() override; | 30 ~AwRequestInterceptor() override; |
| 31 | 31 |
| 32 // net::URLRequestInterceptor override -------------------------------------- | 32 // net::URLRequestInterceptor override -------------------------------------- |
| 33 net::URLRequestJob* MaybeInterceptRequest( | 33 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<AwWebResourceResponse> QueryForAwWebResourceResponse( | 38 scoped_ptr<AwWebResourceResponse> QueryForAwWebResourceResponse( |
| 39 const GURL& location, | |
| 40 net::URLRequest* request) const; | 39 net::URLRequest* request) const; |
| 41 | 40 |
| 42 DISALLOW_COPY_AND_ASSIGN(AwRequestInterceptor); | 41 DISALLOW_COPY_AND_ASSIGN(AwRequestInterceptor); |
| 43 }; | 42 }; |
| 44 | 43 |
| 45 } // namespace android_webview | 44 } // namespace android_webview |
| 46 | 45 |
| 47 #endif // ANDROID_WEBVIEW_BROWSER_AW_REQUEST_INTERCEPTOR_H_ | 46 #endif // ANDROID_WEBVIEW_BROWSER_AW_REQUEST_INTERCEPTOR_H_ |
| OLD | NEW |