| 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 return; | 90 return; |
| 91 | 91 |
| 92 if (callStack) | 92 if (callStack) |
| 93 InspectorInstrumentation::addMessageToConsole(page, source, LogMessageTy
pe, level, message, callStack, requestIdentifier); | 93 InspectorInstrumentation::addMessageToConsole(page, source, LogMessageTy
pe, level, message, callStack, requestIdentifier); |
| 94 else | 94 else |
| 95 InspectorInstrumentation::addMessageToConsole(page, source, LogMessageTy
pe, level, message, url, lineNumber, state, requestIdentifier); | 95 InspectorInstrumentation::addMessageToConsole(page, source, LogMessageTy
pe, level, message, url, lineNumber, state, requestIdentifier); |
| 96 | 96 |
| 97 if (source == CSSMessageSource) | 97 if (source == CSSMessageSource) |
| 98 return; | 98 return; |
| 99 | 99 |
| 100 if (page->settings()->privateBrowsingEnabled()) | |
| 101 return; | |
| 102 | |
| 103 page->chrome()->client()->addMessageToConsole(source, level, message, lineNu
mber, url); | 100 page->chrome()->client()->addMessageToConsole(source, level, message, lineNu
mber, url); |
| 104 } | 101 } |
| 105 | 102 |
| 106 // static | 103 // static |
| 107 void PageConsole::mute() | 104 void PageConsole::mute() |
| 108 { | 105 { |
| 109 muteCount++; | 106 muteCount++; |
| 110 } | 107 } |
| 111 | 108 |
| 112 // static | 109 // static |
| 113 void PageConsole::unmute() | 110 void PageConsole::unmute() |
| 114 { | 111 { |
| 115 ASSERT(muteCount > 0); | 112 ASSERT(muteCount > 0); |
| 116 muteCount--; | 113 muteCount--; |
| 117 } | 114 } |
| 118 | 115 |
| 119 } // namespace WebCore | 116 } // namespace WebCore |
| OLD | NEW |