| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google, Inc. All Rights Reserved. | 2 * Copyright (C) 2010 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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 if (m_haveBackgroundParser) | 150 if (m_haveBackgroundParser) |
| 151 stopBackgroundParser(); | 151 stopBackgroundParser(); |
| 152 } | 152 } |
| 153 | 153 |
| 154 DEFINE_TRACE(HTMLDocumentParser) | 154 DEFINE_TRACE(HTMLDocumentParser) |
| 155 { | 155 { |
| 156 visitor->trace(m_treeBuilder); | 156 visitor->trace(m_treeBuilder); |
| 157 visitor->trace(m_parserScheduler); | 157 visitor->trace(m_parserScheduler); |
| 158 visitor->trace(m_xssAuditorDelegate); | 158 visitor->trace(m_xssAuditorDelegate); |
| 159 visitor->trace(m_scriptRunner); | 159 visitor->trace(m_scriptRunner); |
| 160 visitor->trace(m_weakFactory); |
| 160 visitor->trace(m_preloader); | 161 visitor->trace(m_preloader); |
| 161 ScriptableDocumentParser::trace(visitor); | 162 ScriptableDocumentParser::trace(visitor); |
| 162 HTMLScriptRunnerHost::trace(visitor); | 163 HTMLScriptRunnerHost::trace(visitor); |
| 163 } | 164 } |
| 164 | 165 |
| 165 void HTMLDocumentParser::detach() | 166 void HTMLDocumentParser::detach() |
| 166 { | 167 { |
| 167 if (!isParsingFragment() && m_tokenizedChunkQueue.get() && m_tokenizedChunkQ
ueue->peakPendingChunkCount()) { | 168 if (!isParsingFragment() && m_tokenizedChunkQueue.get() && m_tokenizedChunkQ
ueue->peakPendingChunkCount()) { |
| 168 DEFINE_STATIC_LOCAL(CustomCountHistogram, peakPendingChunkHistogram, ("P
arser.PeakPendingChunkCount", 1, 1000, 50)); | 169 DEFINE_STATIC_LOCAL(CustomCountHistogram, peakPendingChunkHistogram, ("P
arser.PeakPendingChunkCount", 1, 1000, 50)); |
| 169 peakPendingChunkHistogram.count(m_tokenizedChunkQueue->peakPendingChunkC
ount()); | 170 peakPendingChunkHistogram.count(m_tokenizedChunkQueue->peakPendingChunkC
ount()); |
| (...skipping 1042 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1212 (*WTF::bind(function, std::forward<Ps>(parameters)...))(); | 1213 (*WTF::bind(function, std::forward<Ps>(parameters)...))(); |
| 1213 return; | 1214 return; |
| 1214 case Asynchronous: | 1215 case Asynchronous: |
| 1215 m_loadingTaskRunner->postTask(BLINK_FROM_HERE, WTF::bind(function, std::
forward<Ps>(parameters)...)); | 1216 m_loadingTaskRunner->postTask(BLINK_FROM_HERE, WTF::bind(function, std::
forward<Ps>(parameters)...)); |
| 1216 return; | 1217 return; |
| 1217 } | 1218 } |
| 1218 NOTREACHED(); | 1219 NOTREACHED(); |
| 1219 } | 1220 } |
| 1220 | 1221 |
| 1221 } // namespace blink | 1222 } // namespace blink |
| OLD | NEW |