OLD | NEW |
---|---|
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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
97 void resume(); | 97 void resume(); |
98 | 98 |
99 void detach(); // Clear active tasks if any. | 99 void detach(); // Clear active tasks if any. |
100 | 100 |
101 private: | 101 private: |
102 HTMLParserScheduler(HTMLDocumentParser*, WebTaskRunner*); | 102 HTMLParserScheduler(HTMLDocumentParser*, WebTaskRunner*); |
103 | 103 |
104 bool shouldYield(const SpeculationsPumpSession&, bool startingScript) const; | 104 bool shouldYield(const SpeculationsPumpSession&, bool startingScript) const; |
105 void continueParsing(); | 105 void continueParsing(); |
106 | 106 |
107 HTMLDocumentParser* m_parser; | 107 RawPtrWillBeUntracedMember<HTMLDocumentParser> m_parser; |
haraken
2015/11/12 14:20:49
A better option would be to move HTMLParserSchedul
sof
2015/11/16 10:58:39
I think that's feasible, the CancellableTaskFactor
| |
108 OwnPtr<WebTaskRunner> m_loadingTaskRunner; | 108 OwnPtr<WebTaskRunner> m_loadingTaskRunner; |
109 | 109 |
110 OwnPtr<CancellableTaskFactory> m_cancellableContinueParse; | 110 OwnPtr<CancellableTaskFactory> m_cancellableContinueParse; |
111 bool m_isSuspendedWithActiveTimer; | 111 bool m_isSuspendedWithActiveTimer; |
112 }; | 112 }; |
113 | 113 |
114 } | 114 } |
115 | 115 |
116 #endif | 116 #endif |
OLD | NEW |