| 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 20 matching lines...) Expand all Loading... |
| 31 #include "wtf/CurrentTime.h" | 31 #include "wtf/CurrentTime.h" |
| 32 #include "wtf/PassOwnPtr.h" | 32 #include "wtf/PassOwnPtr.h" |
| 33 #include "wtf/RefPtr.h" | 33 #include "wtf/RefPtr.h" |
| 34 | 34 |
| 35 namespace WebCore { | 35 namespace WebCore { |
| 36 | 36 |
| 37 class Document; | 37 class Document; |
| 38 class HTMLDocumentParser; | 38 class HTMLDocumentParser; |
| 39 | 39 |
| 40 class ActiveParserSession { | 40 class ActiveParserSession { |
| 41 STACK_ALLOCATED(); |
| 41 public: | 42 public: |
| 42 explicit ActiveParserSession(Document*); | 43 explicit ActiveParserSession(Document*); |
| 43 ~ActiveParserSession(); | 44 ~ActiveParserSession(); |
| 44 | 45 |
| 45 private: | 46 private: |
| 46 RefPtr<Document> m_document; | 47 RefPtrWillBeMember<Document> m_document; |
| 47 }; | 48 }; |
| 48 | 49 |
| 49 class PumpSession : public NestingLevelIncrementer, public ActiveParserSession { | 50 class PumpSession : public NestingLevelIncrementer, public ActiveParserSession { |
| 51 STACK_ALLOCATED(); |
| 50 public: | 52 public: |
| 51 PumpSession(unsigned& nestingLevel, Document*); | 53 PumpSession(unsigned& nestingLevel, Document*); |
| 52 ~PumpSession(); | 54 ~PumpSession(); |
| 53 | 55 |
| 54 int processedTokens; | 56 int processedTokens; |
| 55 double startTime; | 57 double startTime; |
| 56 bool needsYield; | 58 bool needsYield; |
| 57 bool didSeeScript; | 59 bool didSeeScript; |
| 58 }; | 60 }; |
| 59 | 61 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 | 103 |
| 102 HTMLDocumentParser* m_parser; | 104 HTMLDocumentParser* m_parser; |
| 103 | 105 |
| 104 Timer<HTMLParserScheduler> m_continueNextChunkTimer; | 106 Timer<HTMLParserScheduler> m_continueNextChunkTimer; |
| 105 bool m_isSuspendedWithActiveTimer; | 107 bool m_isSuspendedWithActiveTimer; |
| 106 }; | 108 }; |
| 107 | 109 |
| 108 } | 110 } |
| 109 | 111 |
| 110 #endif | 112 #endif |
| OLD | NEW |