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

Side by Side Diff: Source/core/html/parser/HTMLParserScheduler.h

Issue 313033003: Oilpan: Make ActiveParserSession::m_document traceable. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/html/parser/NestingLevelIncrementer.h » ('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) 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
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
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
OLDNEW
« no previous file with comments | « no previous file | Source/core/html/parser/NestingLevelIncrementer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698