| 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 #include "android_webview/native/aw_contents_io_thread_client_impl.h" | 5 #include "android_webview/native/aw_contents_io_thread_client_impl.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "android_webview/common/devtools_instrumentation.h" | 10 #include "android_webview/common/devtools_instrumentation.h" |
| (...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 AwContentsBackgroundThreadClient::shouldInterceptRequest( | 301 AwContentsBackgroundThreadClient::shouldInterceptRequest( |
| 302 env, | 302 env, |
| 303 obj.obj(), | 303 obj.obj(), |
| 304 web_request.jstring_url.obj(), | 304 web_request.jstring_url.obj(), |
| 305 web_request.is_main_frame, | 305 web_request.is_main_frame, |
| 306 web_request.has_user_gesture, | 306 web_request.has_user_gesture, |
| 307 web_request.jstring_method.obj(), | 307 web_request.jstring_method.obj(), |
| 308 web_request.jstringArray_header_names.obj(), | 308 web_request.jstringArray_header_names.obj(), |
| 309 web_request.jstringArray_header_values.obj()); | 309 web_request.jstringArray_header_values.obj()); |
| 310 return scoped_ptr<AwWebResourceResponse>( | 310 return scoped_ptr<AwWebResourceResponse>( |
| 311 ret.is_null() ? nullptr : new AwWebResourceResponseImpl(ret)).Pass(); | 311 ret.is_null() ? nullptr : new AwWebResourceResponseImpl(ret)); |
| 312 } | 312 } |
| 313 | 313 |
| 314 scoped_ptr<AwWebResourceResponse> ReturnNull() { | 314 scoped_ptr<AwWebResourceResponse> ReturnNull() { |
| 315 return scoped_ptr<AwWebResourceResponse>(); | 315 return scoped_ptr<AwWebResourceResponse>(); |
| 316 } | 316 } |
| 317 | 317 |
| 318 } // namespace | 318 } // namespace |
| 319 | 319 |
| 320 void AwContentsIoThreadClientImpl::ShouldInterceptRequestAsync( | 320 void AwContentsIoThreadClientImpl::ShouldInterceptRequestAsync( |
| 321 const net::URLRequest* request, | 321 const net::URLRequest* request, |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 504 jstring_reason.obj(), | 504 jstring_reason.obj(), |
| 505 jstringArray_response_header_names.obj(), | 505 jstringArray_response_header_names.obj(), |
| 506 jstringArray_response_header_values.obj()); | 506 jstringArray_response_header_values.obj()); |
| 507 } | 507 } |
| 508 | 508 |
| 509 bool RegisterAwContentsIoThreadClientImpl(JNIEnv* env) { | 509 bool RegisterAwContentsIoThreadClientImpl(JNIEnv* env) { |
| 510 return RegisterNativesImpl(env); | 510 return RegisterNativesImpl(env); |
| 511 } | 511 } |
| 512 | 512 |
| 513 } // namespace android_webview | 513 } // namespace android_webview |
| OLD | NEW |