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 13 matching lines...) Expand all Loading... |
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
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 "web/WebAssociatedURLLoaderImpl.h" | 31 #include "web/WebAssociatedURLLoaderImpl.h" |
32 | 32 |
33 #include "core/dom/ContextLifecycleObserver.h" | 33 #include "core/dom/ContextLifecycleObserver.h" |
34 #include "core/fetch/CrossOriginAccessControl.h" | |
35 #include "core/fetch/FetchUtils.h" | |
36 #include "core/loader/DocumentThreadableLoader.h" | 34 #include "core/loader/DocumentThreadableLoader.h" |
37 #include "core/loader/DocumentThreadableLoaderClient.h" | 35 #include "core/loader/DocumentThreadableLoaderClient.h" |
38 #include "platform/Timer.h" | 36 #include "platform/Timer.h" |
39 #include "platform/exported/WrappedResourceRequest.h" | 37 #include "platform/exported/WrappedResourceRequest.h" |
40 #include "platform/exported/WrappedResourceResponse.h" | 38 #include "platform/exported/WrappedResourceResponse.h" |
| 39 #include "platform/loader/fetch/CrossOriginAccessControl.h" |
| 40 #include "platform/loader/fetch/FetchUtils.h" |
41 #include "platform/network/HTTPParsers.h" | 41 #include "platform/network/HTTPParsers.h" |
42 #include "platform/network/ResourceError.h" | 42 #include "platform/network/ResourceError.h" |
43 #include "public/platform/WebHTTPHeaderVisitor.h" | 43 #include "public/platform/WebHTTPHeaderVisitor.h" |
44 #include "public/platform/WebString.h" | 44 #include "public/platform/WebString.h" |
45 #include "public/platform/WebURLError.h" | 45 #include "public/platform/WebURLError.h" |
46 #include "public/platform/WebURLRequest.h" | 46 #include "public/platform/WebURLRequest.h" |
47 #include "public/web/WebAssociatedURLLoaderClient.h" | 47 #include "public/web/WebAssociatedURLLoaderClient.h" |
48 #include "public/web/WebDataSource.h" | 48 #include "public/web/WebDataSource.h" |
49 #include "web/WebLocalFrameImpl.h" | 49 #include "web/WebLocalFrameImpl.h" |
50 #include "wtf/HashSet.h" | 50 #include "wtf/HashSet.h" |
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
488 // there could be a WebURLLoader instance behind the | 488 // there could be a WebURLLoader instance behind the |
489 // DocumentThreadableLoader instance. So, for safety, we chose to just | 489 // DocumentThreadableLoader instance. So, for safety, we chose to just |
490 // crash here. | 490 // crash here. |
491 CHECK(ThreadState::current()); | 491 CHECK(ThreadState::current()); |
492 | 492 |
493 m_observer->dispose(); | 493 m_observer->dispose(); |
494 m_observer = nullptr; | 494 m_observer = nullptr; |
495 } | 495 } |
496 | 496 |
497 } // namespace blink | 497 } // namespace blink |
OLD | NEW |