Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(297)

Side by Side Diff: third_party/WebKit/Source/core/loader/DocumentLoader.cpp

Issue 2799553002: Provide a std::vector compliant empty() method for WebVector. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/testing/Internals.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1008 matching lines...) Expand 10 before | Expand all | Expand 10 after
1019 frame->securityContext()->getSecurityOrigin()); 1019 frame->securityContext()->getSecurityOrigin());
1020 } 1020 }
1021 frame->securityContext()->initializeFeaturePolicy( 1021 frame->securityContext()->initializeFeaturePolicy(
1022 parsedHeader, containerPolicy, parentFeaturePolicy); 1022 parsedHeader, containerPolicy, parentFeaturePolicy);
1023 1023
1024 for (auto& message : messages) { 1024 for (auto& message : messages) {
1025 document->addConsoleMessage( 1025 document->addConsoleMessage(
1026 ConsoleMessage::create(OtherMessageSource, ErrorMessageLevel, 1026 ConsoleMessage::create(OtherMessageSource, ErrorMessageLevel,
1027 "Error with Feature-Policy header: " + message)); 1027 "Error with Feature-Policy header: " + message));
1028 } 1028 }
1029 if (!parsedHeader.isEmpty()) 1029 if (!parsedHeader.empty())
1030 frame->client()->didSetFeaturePolicyHeader(parsedHeader); 1030 frame->client()->didSetFeaturePolicyHeader(parsedHeader);
1031 } 1031 }
1032 1032
1033 void DocumentLoader::installNewDocument( 1033 void DocumentLoader::installNewDocument(
1034 const DocumentInit& init, 1034 const DocumentInit& init,
1035 const AtomicString& mimeType, 1035 const AtomicString& mimeType,
1036 const AtomicString& encoding, 1036 const AtomicString& encoding,
1037 InstallNewDocumentReason reason, 1037 InstallNewDocumentReason reason,
1038 ParserSynchronizationPolicy parsingPolicy, 1038 ParserSynchronizationPolicy parsingPolicy,
1039 const KURL& overridingURL) { 1039 const KURL& overridingURL) {
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
1082 InstallNewDocumentReason::kJavascriptURL, 1082 InstallNewDocumentReason::kJavascriptURL,
1083 ForceSynchronousParsing, KURL()); 1083 ForceSynchronousParsing, KURL());
1084 if (!source.isNull()) 1084 if (!source.isNull())
1085 m_writer->appendReplacingData(source); 1085 m_writer->appendReplacingData(source);
1086 endWriting(); 1086 endWriting();
1087 } 1087 }
1088 1088
1089 DEFINE_WEAK_IDENTIFIER_MAP(DocumentLoader); 1089 DEFINE_WEAK_IDENTIFIER_MAP(DocumentLoader);
1090 1090
1091 } // namespace blink 1091 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/testing/Internals.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698