| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Apple Inc. All rights reserved. | 2 * Copyright (C) 2013 Apple 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 11 matching lines...) Expand all Loading... |
| 22 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | 22 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
| 23 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | 23 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
| 24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
| 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 */ | 27 */ |
| 28 | 28 |
| 29 #include "config.h" | 29 #include "config.h" |
| 30 #include "PageConsole.h" | 30 #include "PageConsole.h" |
| 31 | 31 |
| 32 #include <stdio.h> |
| 32 #include "Chrome.h" | 33 #include "Chrome.h" |
| 33 #include "ChromeClient.h" | 34 #include "ChromeClient.h" |
| 34 #include "ConsoleAPITypes.h" | 35 #include "ConsoleAPITypes.h" |
| 35 #include "ConsoleTypes.h" | 36 #include "ConsoleTypes.h" |
| 36 #include "Document.h" | 37 #include "Document.h" |
| 37 #include "Frame.h" | 38 #include "Frame.h" |
| 38 #include "InspectorConsoleInstrumentation.h" | 39 #include "InspectorConsoleInstrumentation.h" |
| 39 #include "InspectorController.h" | 40 #include "InspectorController.h" |
| 40 #include "Page.h" | 41 #include "Page.h" |
| 41 #include "ScriptArguments.h" | 42 #include "ScriptArguments.h" |
| 42 #include "ScriptCallStack.h" | 43 #include "ScriptCallStack.h" |
| 43 #include "ScriptCallStackFactory.h" | 44 #include "ScriptCallStackFactory.h" |
| 44 #include "ScriptValue.h" | 45 #include "ScriptValue.h" |
| 45 #include "ScriptableDocumentParser.h" | 46 #include "ScriptableDocumentParser.h" |
| 46 #include "Settings.h" | 47 #include "Settings.h" |
| 47 #include <stdio.h> | |
| 48 #include <wtf/UnusedParam.h> | |
| 49 #include <wtf/text/CString.h> | 48 #include <wtf/text/CString.h> |
| 50 #include <wtf/text/WTFString.h> | 49 #include <wtf/text/WTFString.h> |
| 50 #include <wtf/UnusedParam.h> |
| 51 | 51 |
| 52 #include "TraceEvent.h" | 52 #include "core/platform/chromium/TraceEvent.h" |
| 53 | 53 |
| 54 namespace WebCore { | 54 namespace WebCore { |
| 55 | 55 |
| 56 namespace { | 56 namespace { |
| 57 | 57 |
| 58 int muteCount = 0; | 58 int muteCount = 0; |
| 59 | 59 |
| 60 // Ensure that this stays in sync with the DeprecatedFeature enum. | 60 // Ensure that this stays in sync with the DeprecatedFeature enum. |
| 61 static const char* const deprecationMessages[] = { | 61 static const char* const deprecationMessages[] = { |
| 62 "The 'X-WebKit-CSP' headers are deprecated; please consider using the canoni
cal 'Content-Security-Policy' header instead.", | 62 "The 'X-WebKit-CSP' headers are deprecated; please consider using the canoni
cal 'Content-Security-Policy' header instead.", |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 ASSERT(feature < NumberOfFeatures); | 162 ASSERT(feature < NumberOfFeatures); |
| 163 | 163 |
| 164 if (m_deprecationNotifications.quickGet(feature)) | 164 if (m_deprecationNotifications.quickGet(feature)) |
| 165 return; | 165 return; |
| 166 | 166 |
| 167 m_deprecationNotifications.quickSet(feature); | 167 m_deprecationNotifications.quickSet(feature); |
| 168 addMessage(DeprecationMessageSource, WarningMessageLevel, ASCIILiteral(depre
cationMessages[feature])); | 168 addMessage(DeprecationMessageSource, WarningMessageLevel, ASCIILiteral(depre
cationMessages[feature])); |
| 169 } | 169 } |
| 170 | 170 |
| 171 } // namespace WebCore | 171 } // namespace WebCore |
| OLD | NEW |