OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google, Inc. All Rights Reserved. | 2 * Copyright (C) 2013 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 20 matching lines...) Expand all Loading... |
31 #include "Document.h" | 31 #include "Document.h" |
32 #include "DocumentLoader.h" | 32 #include "DocumentLoader.h" |
33 #include "FormData.h" | 33 #include "FormData.h" |
34 #include "Frame.h" | 34 #include "Frame.h" |
35 #include "FrameLoader.h" | 35 #include "FrameLoader.h" |
36 #include "FrameLoaderClient.h" | 36 #include "FrameLoaderClient.h" |
37 #include "HTMLParserIdioms.h" | 37 #include "HTMLParserIdioms.h" |
38 #include "InspectorValues.h" | 38 #include "InspectorValues.h" |
39 #include "PingLoader.h" | 39 #include "PingLoader.h" |
40 #include "SecurityOrigin.h" | 40 #include "SecurityOrigin.h" |
| 41 #include <wtf/text/StringBuilder.h> |
41 | 42 |
42 namespace WebCore { | 43 namespace WebCore { |
43 | 44 |
44 XSSAuditorDelegate::XSSAuditorDelegate(Document* document) | 45 XSSAuditorDelegate::XSSAuditorDelegate(Document* document) |
45 : m_document(document) | 46 : m_document(document) |
46 , m_didSendNotifications(false) | 47 , m_didSendNotifications(false) |
47 { | 48 { |
48 ASSERT(isMainThread()); | 49 ASSERT(isMainThread()); |
49 ASSERT(m_document); | 50 ASSERT(m_document); |
50 } | 51 } |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 | 111 |
111 if (!m_reportURL.isEmpty()) | 112 if (!m_reportURL.isEmpty()) |
112 PingLoader::sendViolationReport(m_document->frame(), m_reportURL, ge
nerateViolationReport()); | 113 PingLoader::sendViolationReport(m_document->frame(), m_reportURL, ge
nerateViolationReport()); |
113 } | 114 } |
114 | 115 |
115 if (xssInfo.m_didBlockEntirePage) | 116 if (xssInfo.m_didBlockEntirePage) |
116 m_document->frame()->navigationScheduler()->scheduleLocationChange(m_doc
ument->securityOrigin(), SecurityOrigin::urlWithUniqueSecurityOrigin(), String()
); | 117 m_document->frame()->navigationScheduler()->scheduleLocationChange(m_doc
ument->securityOrigin(), SecurityOrigin::urlWithUniqueSecurityOrigin(), String()
); |
117 } | 118 } |
118 | 119 |
119 } // namespace WebCore | 120 } // namespace WebCore |
OLD | NEW |