Chromium Code Reviews| 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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 |
| OLD | NEW |