| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2011 Google Inc. All rights reserved. | 3 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 #include "platform/loader/fetch/MemoryCache.h" | 70 #include "platform/loader/fetch/MemoryCache.h" |
| 71 #include "platform/loader/fetch/ResourceFetcher.h" | 71 #include "platform/loader/fetch/ResourceFetcher.h" |
| 72 #include "platform/loader/fetch/ResourceTimingInfo.h" | 72 #include "platform/loader/fetch/ResourceTimingInfo.h" |
| 73 #include "platform/mhtml/ArchiveResource.h" | 73 #include "platform/mhtml/ArchiveResource.h" |
| 74 #include "platform/network/ContentSecurityPolicyResponseHeaders.h" | 74 #include "platform/network/ContentSecurityPolicyResponseHeaders.h" |
| 75 #include "platform/network/HTTPParsers.h" | 75 #include "platform/network/HTTPParsers.h" |
| 76 #include "platform/network/mime/MIMETypeRegistry.h" | 76 #include "platform/network/mime/MIMETypeRegistry.h" |
| 77 #include "platform/plugins/PluginData.h" | 77 #include "platform/plugins/PluginData.h" |
| 78 #include "platform/weborigin/SchemeRegistry.h" | 78 #include "platform/weborigin/SchemeRegistry.h" |
| 79 #include "platform/weborigin/SecurityPolicy.h" | 79 #include "platform/weborigin/SecurityPolicy.h" |
| 80 #include "platform/wtf/Assertions.h" |
| 81 #include "platform/wtf/AutoReset.h" |
| 82 #include "platform/wtf/text/WTFString.h" |
| 80 #include "public/platform/Platform.h" | 83 #include "public/platform/Platform.h" |
| 81 #include "public/platform/modules/serviceworker/WebServiceWorkerNetworkProvider.
h" | 84 #include "public/platform/modules/serviceworker/WebServiceWorkerNetworkProvider.
h" |
| 82 #include "wtf/Assertions.h" | |
| 83 #include "wtf/AutoReset.h" | |
| 84 #include "wtf/text/WTFString.h" | |
| 85 | 85 |
| 86 namespace blink { | 86 namespace blink { |
| 87 | 87 |
| 88 static bool IsArchiveMIMEType(const String& mime_type) { | 88 static bool IsArchiveMIMEType(const String& mime_type) { |
| 89 return DeprecatedEqualIgnoringCase("multipart/related", mime_type); | 89 return DeprecatedEqualIgnoringCase("multipart/related", mime_type); |
| 90 } | 90 } |
| 91 | 91 |
| 92 static bool ShouldInheritSecurityOriginFromOwner(const KURL& url) { | 92 static bool ShouldInheritSecurityOriginFromOwner(const KURL& url) { |
| 93 // https://html.spec.whatwg.org/multipage/browsers.html#origin | 93 // https://html.spec.whatwg.org/multipage/browsers.html#origin |
| 94 // | 94 // |
| (...skipping 1019 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1114 InstallNewDocumentReason::kJavascriptURL, | 1114 InstallNewDocumentReason::kJavascriptURL, |
| 1115 kForceSynchronousParsing, KURL()); | 1115 kForceSynchronousParsing, KURL()); |
| 1116 if (!source.IsNull()) | 1116 if (!source.IsNull()) |
| 1117 writer_->AppendReplacingData(source); | 1117 writer_->AppendReplacingData(source); |
| 1118 EndWriting(); | 1118 EndWriting(); |
| 1119 } | 1119 } |
| 1120 | 1120 |
| 1121 DEFINE_WEAK_IDENTIFIER_MAP(DocumentLoader); | 1121 DEFINE_WEAK_IDENTIFIER_MAP(DocumentLoader); |
| 1122 | 1122 |
| 1123 } // namespace blink | 1123 } // namespace blink |
| OLD | NEW |