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

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

Issue 2622043003: Replaced RefPtr::release with std::move in Source/core. (Closed)
Patch Set: Created 3 years, 11 months 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) 2013 Google, Inc. All Rights Reserved. 2 * Copyright (C) 2013 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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 m_tokenizer(HTMLTokenizer::create(config->options)), 115 m_tokenizer(HTMLTokenizer::create(config->options)),
116 m_treeBuilderSimulator(config->options), 116 m_treeBuilderSimulator(config->options),
117 m_options(config->options), 117 m_options(config->options),
118 m_outstandingTokenLimit(config->outstandingTokenLimit), 118 m_outstandingTokenLimit(config->outstandingTokenLimit),
119 m_parser(config->parser), 119 m_parser(config->parser),
120 m_pendingTokens(WTF::wrapUnique(new CompactHTMLTokenStream)), 120 m_pendingTokens(WTF::wrapUnique(new CompactHTMLTokenStream)),
121 m_pendingTokenLimit(config->pendingTokenLimit), 121 m_pendingTokenLimit(config->pendingTokenLimit),
122 m_xssAuditor(std::move(config->xssAuditor)), 122 m_xssAuditor(std::move(config->xssAuditor)),
123 m_decoder(std::move(config->decoder)), 123 m_decoder(std::move(config->decoder)),
124 m_loadingTaskRunner(std::move(loadingTaskRunner)), 124 m_loadingTaskRunner(std::move(loadingTaskRunner)),
125 m_tokenizedChunkQueue(config->tokenizedChunkQueue.release()), 125 m_tokenizedChunkQueue(std::move(config->tokenizedChunkQueue)),
126 m_pendingCSPMetaTokenIndex( 126 m_pendingCSPMetaTokenIndex(
127 HTMLDocumentParser::TokenizedChunk::noPendingToken), 127 HTMLDocumentParser::TokenizedChunk::noPendingToken),
128 m_startingScript(false), 128 m_startingScript(false),
129 m_lastBytesReceivedTime(0.0), 129 m_lastBytesReceivedTime(0.0),
130 m_shouldCoalesceChunks(config->shouldCoalesceChunks) { 130 m_shouldCoalesceChunks(config->shouldCoalesceChunks) {
131 ASSERT(m_outstandingTokenLimit > 0); 131 ASSERT(m_outstandingTokenLimit > 0);
132 ASSERT(m_pendingTokenLimit > 0); 132 ASSERT(m_pendingTokenLimit > 0);
133 ASSERT(m_outstandingTokenLimit >= m_pendingTokenLimit); 133 ASSERT(m_outstandingTokenLimit >= m_pendingTokenLimit);
134 } 134 }
135 135
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 if (isMainThread()) { 377 if (isMainThread()) {
378 (*WTF::bind(function, std::forward<Ps>(parameters)...))(); 378 (*WTF::bind(function, std::forward<Ps>(parameters)...))();
379 } else { 379 } else {
380 m_loadingTaskRunner->postTask( 380 m_loadingTaskRunner->postTask(
381 BLINK_FROM_HERE, 381 BLINK_FROM_HERE,
382 crossThreadBind(function, std::forward<Ps>(parameters)...)); 382 crossThreadBind(function, std::forward<Ps>(parameters)...));
383 } 383 }
384 } 384 }
385 385
386 } // namespace blink 386 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698