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

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

Issue 635793002: Replace FINAL and OVERRIDE with their C++11 counterparts in Source/core/html (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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) 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 } 76 }
77 77
78 class ParserDataReceiver : public blink::WebThreadedDataReceiver { 78 class ParserDataReceiver : public blink::WebThreadedDataReceiver {
79 public: 79 public:
80 explicit ParserDataReceiver(WeakPtr<BackgroundHTMLParser> backgroundParser) 80 explicit ParserDataReceiver(WeakPtr<BackgroundHTMLParser> backgroundParser)
81 : m_backgroundParser(backgroundParser) 81 : m_backgroundParser(backgroundParser)
82 { 82 {
83 } 83 }
84 84
85 // WebThreadedDataReceiver 85 // WebThreadedDataReceiver
86 virtual void acceptData(const char* data, int dataLength) OVERRIDE FINAL 86 virtual void acceptData(const char* data, int dataLength) override final
87 { 87 {
88 ASSERT(backgroundThread() && backgroundThread()->isCurrentThread()); 88 ASSERT(backgroundThread() && backgroundThread()->isCurrentThread());
89 if (m_backgroundParser.get()) 89 if (m_backgroundParser.get())
90 m_backgroundParser.get()->appendRawBytesFromParserThread(data, dataL ength); 90 m_backgroundParser.get()->appendRawBytesFromParserThread(data, dataL ength);
91 } 91 }
92 92
93 virtual blink::WebThread* backgroundThread() OVERRIDE FINAL 93 virtual blink::WebThread* backgroundThread() override final
94 { 94 {
95 if (HTMLParserThread::shared()) 95 if (HTMLParserThread::shared())
96 return &HTMLParserThread::shared()->platformThread(); 96 return &HTMLParserThread::shared()->platformThread();
97 97
98 return 0; 98 return 0;
99 } 99 }
100 100
101 private: 101 private:
102 WeakPtr<BackgroundHTMLParser> m_backgroundParser; 102 WeakPtr<BackgroundHTMLParser> m_backgroundParser;
103 }; 103 };
(...skipping 970 matching lines...) Expand 10 before | Expand all | Expand 10 after
1074 void HTMLDocumentParser::setDecoder(PassOwnPtr<TextResourceDecoder> decoder) 1074 void HTMLDocumentParser::setDecoder(PassOwnPtr<TextResourceDecoder> decoder)
1075 { 1075 {
1076 ASSERT(decoder); 1076 ASSERT(decoder);
1077 DecodedDataDocumentParser::setDecoder(decoder); 1077 DecodedDataDocumentParser::setDecoder(decoder);
1078 1078
1079 if (m_haveBackgroundParser) 1079 if (m_haveBackgroundParser)
1080 HTMLParserThread::shared()->postTask(bind(&BackgroundHTMLParser::setDeco der, m_backgroundParser, takeDecoder())); 1080 HTMLParserThread::shared()->postTask(bind(&BackgroundHTMLParser::setDeco der, m_backgroundParser, takeDecoder()));
1081 } 1081 }
1082 1082
1083 } 1083 }
OLDNEW
« no previous file with comments | « Source/core/html/parser/HTMLDocumentParser.h ('k') | Source/core/html/parser/HTMLElementStack.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698