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

Side by Side Diff: third_party/WebKit/Source/platform/weborigin/SecurityPolicy.cpp

Issue 1818233003: Merge WTF::initializeMainThread into WTF::initialize (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 17 matching lines...) Expand all
28 28
29 #include "platform/weborigin/SecurityPolicy.h" 29 #include "platform/weborigin/SecurityPolicy.h"
30 30
31 #include "platform/RuntimeEnabledFeatures.h" 31 #include "platform/RuntimeEnabledFeatures.h"
32 #include "platform/weborigin/KURL.h" 32 #include "platform/weborigin/KURL.h"
33 #include "platform/weborigin/OriginAccessEntry.h" 33 #include "platform/weborigin/OriginAccessEntry.h"
34 #include "platform/weborigin/SchemeRegistry.h" 34 #include "platform/weborigin/SchemeRegistry.h"
35 #include "platform/weborigin/SecurityOrigin.h" 35 #include "platform/weborigin/SecurityOrigin.h"
36 #include "wtf/HashMap.h" 36 #include "wtf/HashMap.h"
37 #include "wtf/HashSet.h" 37 #include "wtf/HashSet.h"
38 #include "wtf/MainThread.h"
39 #include "wtf/OwnPtr.h" 38 #include "wtf/OwnPtr.h"
40 #include "wtf/PassOwnPtr.h" 39 #include "wtf/PassOwnPtr.h"
41 #include "wtf/Threading.h" 40 #include "wtf/Threading.h"
42 #include "wtf/text/StringHash.h" 41 #include "wtf/text/StringHash.h"
43 42
44 namespace blink { 43 namespace blink {
45 44
46 using OriginAccessWhiteList = Vector<OriginAccessEntry>; 45 using OriginAccessWhiteList = Vector<OriginAccessEntry>;
47 using OriginAccessMap = HashMap<String, OwnPtr<OriginAccessWhiteList>>; 46 using OriginAccessMap = HashMap<String, OwnPtr<OriginAccessWhiteList>>;
48 using OriginSet = HashSet<String>; 47 using OriginSet = HashSet<String>;
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 return true; 232 return true;
234 } 233 }
235 if (equalIgnoringCase(policy, "no-referrer-when-downgrade") || equalIgnoring Case(policy, "default")) { 234 if (equalIgnoringCase(policy, "no-referrer-when-downgrade") || equalIgnoring Case(policy, "default")) {
236 *result = ReferrerPolicyNoReferrerWhenDowngrade; 235 *result = ReferrerPolicyNoReferrerWhenDowngrade;
237 return true; 236 return true;
238 } 237 }
239 return false; 238 return false;
240 } 239 }
241 240
242 } // namespace blink 241 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/weborigin/SecurityOrigin.cpp ('k') | third_party/WebKit/Source/web/WebKit.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698