| 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 26 matching lines...) Expand all Loading... |
| 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/loader/ThreadableLoadingContext.h" | 39 #include "core/loader/ThreadableLoadingContext.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/loader/fetch/CrossOriginAccessControl.h" | 43 #include "platform/loader/fetch/CrossOriginAccessControl.h" |
| 44 #include "platform/loader/fetch/FetchUtils.h" | 44 #include "platform/loader/fetch/FetchUtils.h" |
| 45 #include "platform/loader/fetch/ResourceError.h" | 45 #include "platform/loader/fetch/ResourceError.h" |
| 46 #include "platform/network/HTTPParsers.h" | 46 #include "platform/network/HTTPParsers.h" |
| 47 #include "platform/wtf/HashSet.h" |
| 48 #include "platform/wtf/PtrUtil.h" |
| 49 #include "platform/wtf/text/WTFString.h" |
| 47 #include "public/platform/WebHTTPHeaderVisitor.h" | 50 #include "public/platform/WebHTTPHeaderVisitor.h" |
| 48 #include "public/platform/WebString.h" | 51 #include "public/platform/WebString.h" |
| 49 #include "public/platform/WebURLError.h" | 52 #include "public/platform/WebURLError.h" |
| 50 #include "public/platform/WebURLRequest.h" | 53 #include "public/platform/WebURLRequest.h" |
| 51 #include "public/web/WebAssociatedURLLoaderClient.h" | 54 #include "public/web/WebAssociatedURLLoaderClient.h" |
| 52 #include "public/web/WebDataSource.h" | 55 #include "public/web/WebDataSource.h" |
| 53 #include "web/WebLocalFrameImpl.h" | 56 #include "web/WebLocalFrameImpl.h" |
| 54 #include "wtf/HashSet.h" | |
| 55 #include "wtf/PtrUtil.h" | |
| 56 #include "wtf/text/WTFString.h" | |
| 57 | 57 |
| 58 namespace blink { | 58 namespace blink { |
| 59 | 59 |
| 60 namespace { | 60 namespace { |
| 61 | 61 |
| 62 class HTTPRequestHeaderValidator : public WebHTTPHeaderVisitor { | 62 class HTTPRequestHeaderValidator : public WebHTTPHeaderVisitor { |
| 63 WTF_MAKE_NONCOPYABLE(HTTPRequestHeaderValidator); | 63 WTF_MAKE_NONCOPYABLE(HTTPRequestHeaderValidator); |
| 64 | 64 |
| 65 public: | 65 public: |
| 66 HTTPRequestHeaderValidator() : m_isSafe(true) {} | 66 HTTPRequestHeaderValidator() : m_isSafe(true) {} |
| (...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 498 // there could be a WebURLLoader instance behind the | 498 // there could be a WebURLLoader instance behind the |
| 499 // DocumentThreadableLoader instance. So, for safety, we chose to just | 499 // DocumentThreadableLoader instance. So, for safety, we chose to just |
| 500 // crash here. | 500 // crash here. |
| 501 CHECK(ThreadState::current()); | 501 CHECK(ThreadState::current()); |
| 502 | 502 |
| 503 m_observer->dispose(); | 503 m_observer->dispose(); |
| 504 m_observer = nullptr; | 504 m_observer = nullptr; |
| 505 } | 505 } |
| 506 | 506 |
| 507 } // namespace blink | 507 } // namespace blink |
| OLD | NEW |