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

Side by Side Diff: Source/core/html/parser/HTMLViewSourceParser.h

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
« no previous file with comments | « Source/core/html/parser/HTMLTreeBuilder.h ('k') | Source/core/html/parser/TextDocumentParser.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 17 matching lines...) Expand all
28 28
29 #include "core/dom/DecodedDataDocumentParser.h" 29 #include "core/dom/DecodedDataDocumentParser.h"
30 #include "core/html/HTMLViewSourceDocument.h" 30 #include "core/html/HTMLViewSourceDocument.h"
31 #include "core/html/parser/HTMLInputStream.h" 31 #include "core/html/parser/HTMLInputStream.h"
32 #include "core/html/parser/HTMLSourceTracker.h" 32 #include "core/html/parser/HTMLSourceTracker.h"
33 #include "core/html/parser/HTMLTokenizer.h" 33 #include "core/html/parser/HTMLTokenizer.h"
34 #include "core/html/parser/XSSAuditor.h" 34 #include "core/html/parser/XSSAuditor.h"
35 35
36 namespace blink { 36 namespace blink {
37 37
38 class HTMLViewSourceParser FINAL : public DecodedDataDocumentParser { 38 class HTMLViewSourceParser final : public DecodedDataDocumentParser {
39 public: 39 public:
40 static PassRefPtrWillBeRawPtr<HTMLViewSourceParser> create(HTMLViewSourceDoc ument& document, const String& mimeType) 40 static PassRefPtrWillBeRawPtr<HTMLViewSourceParser> create(HTMLViewSourceDoc ument& document, const String& mimeType)
41 { 41 {
42 return adoptRefWillBeNoop(new HTMLViewSourceParser(document, mimeType)); 42 return adoptRefWillBeNoop(new HTMLViewSourceParser(document, mimeType));
43 } 43 }
44 virtual ~HTMLViewSourceParser() { } 44 virtual ~HTMLViewSourceParser() { }
45 45
46 private: 46 private:
47 HTMLViewSourceParser(HTMLViewSourceDocument&, const String& mimeType); 47 HTMLViewSourceParser(HTMLViewSourceDocument&, const String& mimeType);
48 48
49 // DocumentParser 49 // DocumentParser
50 virtual void insert(const SegmentedString&) OVERRIDE { ASSERT_NOT_REACHED(); } 50 virtual void insert(const SegmentedString&) override { ASSERT_NOT_REACHED(); }
51 virtual void append(PassRefPtr<StringImpl>) OVERRIDE; 51 virtual void append(PassRefPtr<StringImpl>) override;
52 virtual void finish() OVERRIDE; 52 virtual void finish() override;
53 53
54 HTMLViewSourceDocument* document() const { return static_cast<HTMLViewSource Document*>(DecodedDataDocumentParser::document()); } 54 HTMLViewSourceDocument* document() const { return static_cast<HTMLViewSource Document*>(DecodedDataDocumentParser::document()); }
55 55
56 void pumpTokenizer(); 56 void pumpTokenizer();
57 void updateTokenizerState(); 57 void updateTokenizerState();
58 58
59 HTMLInputStream m_input; 59 HTMLInputStream m_input;
60 HTMLToken m_token; 60 HTMLToken m_token;
61 HTMLSourceTracker m_sourceTracker; 61 HTMLSourceTracker m_sourceTracker;
62 OwnPtr<HTMLTokenizer> m_tokenizer; 62 OwnPtr<HTMLTokenizer> m_tokenizer;
63 XSSAuditor m_xssAuditor; 63 XSSAuditor m_xssAuditor;
64 }; 64 };
65 65
66 } 66 }
67 67
68 #endif 68 #endif
OLDNEW
« no previous file with comments | « Source/core/html/parser/HTMLTreeBuilder.h ('k') | Source/core/html/parser/TextDocumentParser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698