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