| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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.net.urlconnection; | 5 package org.chromium.net.urlconnection; |
| 6 | 6 |
| 7 import org.chromium.net.UploadDataProvider; | 7 import org.chromium.net.UploadDataProvider; |
| 8 import org.chromium.net.UploadDataSink; | 8 import org.chromium.net.UploadDataSink; |
| 9 | 9 |
| 10 import java.io.IOException; | 10 import java.io.IOException; |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 | 138 |
| 139 /** | 139 /** |
| 140 * Helper function to upload {@code mBuffer} to the native stack. This | 140 * Helper function to upload {@code mBuffer} to the native stack. This |
| 141 * function blocks until {@code mBuffer} is consumed and there is space to | 141 * function blocks until {@code mBuffer} is consumed and there is space to |
| 142 * write more data. | 142 * write more data. |
| 143 */ | 143 */ |
| 144 private void uploadBufferInternal() throws IOException { | 144 private void uploadBufferInternal() throws IOException { |
| 145 checkNotClosed(); | 145 checkNotClosed(); |
| 146 mBuffer.flip(); | 146 mBuffer.flip(); |
| 147 mMessageLoop.loop(); | 147 mMessageLoop.loop(); |
| 148 checkNoException(); |
| 148 } | 149 } |
| 149 } | 150 } |
| OLD | NEW |