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

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: Review comments 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
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/html/parser/HTMLPreloadScanner.cpp » ('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) 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 String m_pictureSourceURL; 100 String m_pictureSourceURL;
101 size_t m_templateCount; 101 size_t m_templateCount;
102 RefPtr<MediaValues> m_mediaValues; 102 RefPtr<MediaValues> m_mediaValues;
103 103
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 static PassOwnPtr<HTMLPreloadScanner> create(const HTMLParserOptions&, const KURL& documentURL, PassRefPtr<MediaValues>);
kouhei (in TOK) 2015/04/30 14:06:29 Nit: inline
111
110 HTMLPreloadScanner(const HTMLParserOptions&, const KURL& documentURL, PassRe fPtr<MediaValues>); 112 HTMLPreloadScanner(const HTMLParserOptions&, const KURL& documentURL, PassRe fPtr<MediaValues>);
111 ~HTMLPreloadScanner(); 113 ~HTMLPreloadScanner();
112 114
113 void appendToEnd(const SegmentedString&); 115 void appendToEnd(const SegmentedString&);
114 void scan(HTMLResourcePreloader*, const KURL& documentBaseElementURL); 116 void scan(ResourcePreloader*, const KURL& documentBaseElementURL);
115 117
116 private: 118 private:
117 TokenPreloadScanner m_scanner; 119 TokenPreloadScanner m_scanner;
118 SegmentedString m_source; 120 SegmentedString m_source;
119 HTMLToken m_token; 121 HTMLToken m_token;
120 OwnPtr<HTMLTokenizer> m_tokenizer; 122 OwnPtr<HTMLTokenizer> m_tokenizer;
121 }; 123 };
122 124
123 } 125 }
124 126
125 #endif 127 #endif
OLDNEW
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/html/parser/HTMLPreloadScanner.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698