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 14 matching lines...) Expand all Loading... |
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #include "config.h" | 31 #include "config.h" |
32 #include "AssociatedURLLoader.h" | 32 #include "AssociatedURLLoader.h" |
33 | 33 |
34 #include "WebDataSource.h" | 34 #include "WebDataSource.h" |
35 #include "WebFrameImpl.h" | 35 #include "WebLocalFrameImpl.h" |
36 #include "core/fetch/CrossOriginAccessControl.h" | 36 #include "core/fetch/CrossOriginAccessControl.h" |
37 #include "core/loader/DocumentThreadableLoader.h" | 37 #include "core/loader/DocumentThreadableLoader.h" |
38 #include "core/loader/DocumentThreadableLoaderClient.h" | 38 #include "core/loader/DocumentThreadableLoaderClient.h" |
39 #include "core/xml/XMLHttpRequest.h" | 39 #include "core/xml/XMLHttpRequest.h" |
40 #include "platform/Timer.h" | 40 #include "platform/Timer.h" |
41 #include "platform/exported/WrappedResourceRequest.h" | 41 #include "platform/exported/WrappedResourceRequest.h" |
42 #include "platform/exported/WrappedResourceResponse.h" | 42 #include "platform/exported/WrappedResourceResponse.h" |
43 #include "platform/network/HTTPParsers.h" | 43 #include "platform/network/HTTPParsers.h" |
44 #include "platform/network/ResourceError.h" | 44 #include "platform/network/ResourceError.h" |
45 #include "public/platform/WebHTTPHeaderVisitor.h" | 45 #include "public/platform/WebHTTPHeaderVisitor.h" |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 m_errorTimer.startOneShot(0, FROM_HERE); | 283 m_errorTimer.startOneShot(0, FROM_HERE); |
284 } | 284 } |
285 | 285 |
286 void AssociatedURLLoader::ClientAdapter::notifyError(Timer<ClientAdapter>* timer
) | 286 void AssociatedURLLoader::ClientAdapter::notifyError(Timer<ClientAdapter>* timer
) |
287 { | 287 { |
288 ASSERT_UNUSED(timer, timer == &m_errorTimer); | 288 ASSERT_UNUSED(timer, timer == &m_errorTimer); |
289 | 289 |
290 m_client->didFail(m_loader, m_error); | 290 m_client->didFail(m_loader, m_error); |
291 } | 291 } |
292 | 292 |
293 AssociatedURLLoader::AssociatedURLLoader(PassRefPtr<WebFrameImpl> frameImpl, con
st WebURLLoaderOptions& options) | 293 AssociatedURLLoader::AssociatedURLLoader(PassRefPtr<WebLocalFrameImpl> frameImpl
, const WebURLLoaderOptions& options) |
294 : m_frameImpl(frameImpl) | 294 : m_frameImpl(frameImpl) |
295 , m_options(options) | 295 , m_options(options) |
296 , m_client(0) | 296 , m_client(0) |
297 { | 297 { |
298 ASSERT(m_frameImpl); | 298 ASSERT(m_frameImpl); |
299 } | 299 } |
300 | 300 |
301 AssociatedURLLoader::~AssociatedURLLoader() | 301 AssociatedURLLoader::~AssociatedURLLoader() |
302 { | 302 { |
303 cancel(); | 303 cancel(); |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
368 m_loader->cancel(); | 368 m_loader->cancel(); |
369 } | 369 } |
370 | 370 |
371 void AssociatedURLLoader::setDefersLoading(bool defersLoading) | 371 void AssociatedURLLoader::setDefersLoading(bool defersLoading) |
372 { | 372 { |
373 if (m_loader) | 373 if (m_loader) |
374 m_loader->setDefersLoading(defersLoading); | 374 m_loader->setDefersLoading(defersLoading); |
375 } | 375 } |
376 | 376 |
377 } // namespace blink | 377 } // namespace blink |
OLD | NEW |