| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |