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

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

Issue 1108303002: HTMLPreloadScanner unit tests (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Actually working Created 5 years, 7 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) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved.
3 * Copyright (C) 2010 Google Inc. All Rights Reserved. 3 * Copyright (C) 2010 Google Inc. All Rights Reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 Vector<Checkpoint> m_checkpoints; 104 Vector<Checkpoint> m_checkpoints;
105 }; 105 };
106 106
107 class HTMLPreloadScanner { 107 class HTMLPreloadScanner {
108 WTF_MAKE_NONCOPYABLE(HTMLPreloadScanner); WTF_MAKE_FAST_ALLOCATED(HTMLPreloa dScanner); 108 WTF_MAKE_NONCOPYABLE(HTMLPreloadScanner); WTF_MAKE_FAST_ALLOCATED(HTMLPreloa dScanner);
109 public: 109 public:
110 HTMLPreloadScanner(const HTMLParserOptions&, const KURL& documentURL, PassRe fPtr<MediaValues>); 110 HTMLPreloadScanner(const HTMLParserOptions&, const KURL& documentURL, PassRe fPtr<MediaValues>);
111 ~HTMLPreloadScanner(); 111 ~HTMLPreloadScanner();
112 112
113 void appendToEnd(const SegmentedString&); 113 void appendToEnd(const SegmentedString&);
114 void scan(HTMLResourcePreloader*, const KURL& documentBaseElementURL); 114 void scan(ResourcePreloader*, const KURL& documentBaseElementURL);
115 115
116 private: 116 private:
117 TokenPreloadScanner m_scanner; 117 TokenPreloadScanner m_scanner;
118 SegmentedString m_source; 118 SegmentedString m_source;
119 HTMLToken m_token; 119 HTMLToken m_token;
120 OwnPtr<HTMLTokenizer> m_tokenizer; 120 OwnPtr<HTMLTokenizer> m_tokenizer;
121 }; 121 };
122 122
123 } 123 }
124 124
125 #endif 125 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698