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

Unified Diff: third_party/WebKit/Source/core/dom/SecurityContext.cpp

Issue 2557063002: Upgrade Insecure Requests: bugfixes, tests, and support for OOPIF.
Patch Set: Addressed comments (@nasko #2). Created 4 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/core/dom/SecurityContext.h ('k') | third_party/WebKit/Source/core/frame/Frame.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/SecurityContext.cpp
diff --git a/third_party/WebKit/Source/core/dom/SecurityContext.cpp b/third_party/WebKit/Source/core/dom/SecurityContext.cpp
index dfce6551911360c73671df76b692b549be74aa97..ca411cf754f21d25f6690a017f3738203d5c3cec 100644
--- a/third_party/WebKit/Source/core/dom/SecurityContext.cpp
+++ b/third_party/WebKit/Source/core/dom/SecurityContext.cpp
@@ -32,6 +32,19 @@
namespace blink {
+// static
+std::vector<unsigned> SecurityContext::serializeInsecureNavigationSet(
+ const InsecureNavigationsSet& set) {
+ // The set is serialized as a sorted vector.
+ std::vector<unsigned> serialized;
+ serialized.reserve(set.size());
+ for (unsigned host : set)
+ serialized.push_back(host);
+ std::sort(serialized.begin(), serialized.end());
+
+ return serialized;
+}
+
SecurityContext::SecurityContext()
: m_sandboxFlags(SandboxNone),
m_addressSpace(WebAddressSpacePublic),
« no previous file with comments | « third_party/WebKit/Source/core/dom/SecurityContext.h ('k') | third_party/WebKit/Source/core/frame/Frame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698