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

Side by Side Diff: third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.cpp

Issue 2175123002: Move platform/ParsingUtilities.h to wtf/text/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: I keep forgetting this bit... Created 4 years, 4 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 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 29 matching lines...) Expand all
40 #include "core/frame/csp/CSPSource.h" 40 #include "core/frame/csp/CSPSource.h"
41 #include "core/frame/csp/CSPSourceList.h" 41 #include "core/frame/csp/CSPSourceList.h"
42 #include "core/frame/csp/MediaListDirective.h" 42 #include "core/frame/csp/MediaListDirective.h"
43 #include "core/frame/csp/SourceListDirective.h" 43 #include "core/frame/csp/SourceListDirective.h"
44 #include "core/inspector/ConsoleMessage.h" 44 #include "core/inspector/ConsoleMessage.h"
45 #include "core/inspector/InspectorInstrumentation.h" 45 #include "core/inspector/InspectorInstrumentation.h"
46 #include "core/loader/DocumentLoader.h" 46 #include "core/loader/DocumentLoader.h"
47 #include "core/loader/FrameLoaderClient.h" 47 #include "core/loader/FrameLoaderClient.h"
48 #include "core/loader/PingLoader.h" 48 #include "core/loader/PingLoader.h"
49 #include "platform/JSONValues.h" 49 #include "platform/JSONValues.h"
50 #include "platform/ParsingUtilities.h"
51 #include "platform/RuntimeEnabledFeatures.h" 50 #include "platform/RuntimeEnabledFeatures.h"
52 #include "platform/network/ContentSecurityPolicyParsers.h" 51 #include "platform/network/ContentSecurityPolicyParsers.h"
53 #include "platform/network/ContentSecurityPolicyResponseHeaders.h" 52 #include "platform/network/ContentSecurityPolicyResponseHeaders.h"
54 #include "platform/network/EncodedFormData.h" 53 #include "platform/network/EncodedFormData.h"
55 #include "platform/network/ResourceRequest.h" 54 #include "platform/network/ResourceRequest.h"
56 #include "platform/network/ResourceResponse.h" 55 #include "platform/network/ResourceResponse.h"
57 #include "platform/weborigin/KURL.h" 56 #include "platform/weborigin/KURL.h"
58 #include "platform/weborigin/KnownPorts.h" 57 #include "platform/weborigin/KnownPorts.h"
59 #include "platform/weborigin/SchemeRegistry.h" 58 #include "platform/weborigin/SchemeRegistry.h"
60 #include "platform/weborigin/SecurityOrigin.h" 59 #include "platform/weborigin/SecurityOrigin.h"
61 #include "public/platform/Platform.h" 60 #include "public/platform/Platform.h"
62 #include "public/platform/WebAddressSpace.h" 61 #include "public/platform/WebAddressSpace.h"
63 #include "public/platform/WebURLRequest.h" 62 #include "public/platform/WebURLRequest.h"
64 #include "wtf/PtrUtil.h" 63 #include "wtf/PtrUtil.h"
65 #include "wtf/StringHasher.h" 64 #include "wtf/StringHasher.h"
65 #include "wtf/text/ParsingUtilities.h"
66 #include "wtf/text/StringBuilder.h" 66 #include "wtf/text/StringBuilder.h"
67 #include "wtf/text/StringUTF8Adaptor.h" 67 #include "wtf/text/StringUTF8Adaptor.h"
68 #include <memory> 68 #include <memory>
69 69
70 namespace blink { 70 namespace blink {
71 71
72 // CSP Level 1 Directives 72 // CSP Level 1 Directives
73 const char ContentSecurityPolicy::ConnectSrc[] = "connect-src"; 73 const char ContentSecurityPolicy::ConnectSrc[] = "connect-src";
74 const char ContentSecurityPolicy::DefaultSrc[] = "default-src"; 74 const char ContentSecurityPolicy::DefaultSrc[] = "default-src";
75 const char ContentSecurityPolicy::FontSrc[] = "font-src"; 75 const char ContentSecurityPolicy::FontSrc[] = "font-src";
(...skipping 1043 matching lines...) Expand 10 before | Expand all | Expand 10 after
1119 // Collisions have no security impact, so we can save space by storing only the string's hash rather than the whole report. 1119 // Collisions have no security impact, so we can save space by storing only the string's hash rather than the whole report.
1120 return !m_violationReportsSent.contains(report.impl()->hash()); 1120 return !m_violationReportsSent.contains(report.impl()->hash());
1121 } 1121 }
1122 1122
1123 void ContentSecurityPolicy::didSendViolationReport(const String& report) 1123 void ContentSecurityPolicy::didSendViolationReport(const String& report)
1124 { 1124 {
1125 m_violationReportsSent.add(report.impl()->hash()); 1125 m_violationReportsSent.add(report.impl()->hash());
1126 } 1126 }
1127 1127
1128 } // namespace blink 1128 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698