| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 package org.chromium.android_webview; | 5 package org.chromium.android_webview; |
| 6 | 6 |
| 7 import org.chromium.base.CalledByNative; | 7 import org.chromium.base.CalledByNative; |
| 8 import org.chromium.base.JNINamespace; | 8 import org.chromium.base.JNINamespace; |
| 9 import org.chromium.base.annotations.SuppressFBWarnings; |
| 9 | 10 |
| 10 import java.util.HashMap; | 11 import java.util.HashMap; |
| 11 import java.util.Map; | 12 import java.util.Map; |
| 12 | 13 |
| 13 /** | 14 /** |
| 14 * Delegate for handling callbacks. All methods are called on the IO thread. | 15 * Delegate for handling callbacks. All methods are called on the IO thread. |
| 15 * | 16 * |
| 16 * You should create a separate instance for every WebContents that requires the | 17 * You should create a separate instance for every WebContents that requires the |
| 17 * provided functionality. | 18 * provided functionality. |
| 18 */ | 19 */ |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 currentValue += ", "; | 97 currentValue += ", "; |
| 97 } | 98 } |
| 98 responseHeaders.put(responseHeaderNames[i], currentValue + respo
nseHeaderValues[i]); | 99 responseHeaders.put(responseHeaderNames[i], currentValue + respo
nseHeaderValues[i]); |
| 99 } | 100 } |
| 100 } | 101 } |
| 101 AwWebResourceResponse response = new AwWebResourceResponse( | 102 AwWebResourceResponse response = new AwWebResourceResponse( |
| 102 mimeType, encoding, null, statusCode, reasonPhrase, responseHead
ers); | 103 mimeType, encoding, null, statusCode, reasonPhrase, responseHead
ers); |
| 103 onReceivedHttpError(request, response); | 104 onReceivedHttpError(request, response); |
| 104 } | 105 } |
| 105 } | 106 } |
| OLD | NEW |