Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp

Issue 2458003002: Remove ASSERT_WITH_SECURITY_IMPLICATION. (Closed)
Patch Set: Minor formatting fix Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 463 matching lines...) Expand 10 before | Expand all | Expand 10 after
474 } 474 }
475 475
476 size_t HTMLDocumentParser::processTokenizedChunkFromBackgroundParser( 476 size_t HTMLDocumentParser::processTokenizedChunkFromBackgroundParser(
477 std::unique_ptr<TokenizedChunk> popChunk) { 477 std::unique_ptr<TokenizedChunk> popChunk) {
478 TRACE_EVENT_WITH_FLOW0( 478 TRACE_EVENT_WITH_FLOW0(
479 "blink,loading", 479 "blink,loading",
480 "HTMLDocumentParser::processTokenizedChunkFromBackgroundParser", 480 "HTMLDocumentParser::processTokenizedChunkFromBackgroundParser",
481 popChunk.get(), TRACE_EVENT_FLAG_FLOW_IN); 481 popChunk.get(), TRACE_EVENT_FLAG_FLOW_IN);
482 AutoReset<bool> hasLineNumber(&m_isParsingAtLineNumber, true); 482 AutoReset<bool> hasLineNumber(&m_isParsingAtLineNumber, true);
483 483
484 ASSERT_WITH_SECURITY_IMPLICATION(m_pumpSpeculationsSessionNestingLevel == 1); 484 SECURITY_DCHECK(m_pumpSpeculationsSessionNestingLevel == 1);
485 ASSERT_WITH_SECURITY_IMPLICATION(!inPumpSession()); 485 SECURITY_DCHECK(!inPumpSession());
486 ASSERT(!isParsingFragment()); 486 ASSERT(!isParsingFragment());
487 ASSERT(!isWaitingForScripts()); 487 ASSERT(!isWaitingForScripts());
488 ASSERT(!isStopped()); 488 ASSERT(!isStopped());
489 ASSERT(shouldUseThreading()); 489 ASSERT(shouldUseThreading());
490 ASSERT(!m_tokenizer); 490 ASSERT(!m_tokenizer);
491 ASSERT(!m_token); 491 ASSERT(!m_token);
492 ASSERT(!m_lastChunkBeforeScript); 492 ASSERT(!m_lastChunkBeforeScript);
493 493
494 std::unique_ptr<TokenizedChunk> chunk(std::move(popChunk)); 494 std::unique_ptr<TokenizedChunk> chunk(std::move(popChunk));
495 std::unique_ptr<CompactHTMLTokenStream> tokens = std::move(chunk->tokens); 495 std::unique_ptr<CompactHTMLTokenStream> tokens = std::move(chunk->tokens);
(...skipping 799 matching lines...) Expand 10 before | Expand all | Expand 10 after
1295 case Asynchronous: 1295 case Asynchronous:
1296 m_loadingTaskRunner->postTask( 1296 m_loadingTaskRunner->postTask(
1297 BLINK_FROM_HERE, 1297 BLINK_FROM_HERE,
1298 WTF::bind(function, std::forward<Ps>(parameters)...)); 1298 WTF::bind(function, std::forward<Ps>(parameters)...));
1299 return; 1299 return;
1300 } 1300 }
1301 NOTREACHED(); 1301 NOTREACHED();
1302 } 1302 }
1303 1303
1304 } // namespace blink 1304 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698