| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010, 2011, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2010, 2011, 2012 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 DCHECK(m_client); | 142 DCHECK(m_client); |
| 143 } | 143 } |
| 144 | 144 |
| 145 void AssociatedURLLoader::ClientAdapter::willFollowRedirect(ResourceRequest& new
Request, const ResourceResponse& redirectResponse) | 145 void AssociatedURLLoader::ClientAdapter::willFollowRedirect(ResourceRequest& new
Request, const ResourceResponse& redirectResponse) |
| 146 { | 146 { |
| 147 if (!m_client) | 147 if (!m_client) |
| 148 return; | 148 return; |
| 149 | 149 |
| 150 WrappedResourceRequest wrappedNewRequest(newRequest); | 150 WrappedResourceRequest wrappedNewRequest(newRequest); |
| 151 WrappedResourceResponse wrappedRedirectResponse(redirectResponse); | 151 WrappedResourceResponse wrappedRedirectResponse(redirectResponse); |
| 152 // TODO(ricea): Do we need to set encodedDataLength here? | 152 m_client->willFollowRedirect(m_loader, wrappedNewRequest, wrappedRedirectRes
ponse); |
| 153 m_client->willFollowRedirect(m_loader, wrappedNewRequest, wrappedRedirectRes
ponse, 0); | |
| 154 } | 153 } |
| 155 | 154 |
| 156 void AssociatedURLLoader::ClientAdapter::didSendData(unsigned long long bytesSen
t, unsigned long long totalBytesToBeSent) | 155 void AssociatedURLLoader::ClientAdapter::didSendData(unsigned long long bytesSen
t, unsigned long long totalBytesToBeSent) |
| 157 { | 156 { |
| 158 if (!m_client) | 157 if (!m_client) |
| 159 return; | 158 return; |
| 160 | 159 |
| 161 m_client->didSendData(m_loader, bytesSent, totalBytesToBeSent); | 160 m_client->didSendData(m_loader, bytesSent, totalBytesToBeSent); |
| 162 } | 161 } |
| 163 | 162 |
| (...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 452 // there could be a WebURLLoader instance behind the | 451 // there could be a WebURLLoader instance behind the |
| 453 // DocumentThreadableLoader instance. So, for safety, we chose to just | 452 // DocumentThreadableLoader instance. So, for safety, we chose to just |
| 454 // crash here. | 453 // crash here. |
| 455 RELEASE_ASSERT(ThreadState::current()); | 454 RELEASE_ASSERT(ThreadState::current()); |
| 456 | 455 |
| 457 m_observer->dispose(); | 456 m_observer->dispose(); |
| 458 m_observer = nullptr; | 457 m_observer = nullptr; |
| 459 } | 458 } |
| 460 | 459 |
| 461 } // namespace blink | 460 } // namespace blink |
| OLD | NEW |