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

Side by Side Diff: third_party/WebKit/Source/core/html/parser/HTMLScriptRunner.h

Issue 2020153002: Move ScriptResourceClient to Oilpan heap (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@onheap-font-resource-client
Patch Set: Created 4 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
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 25 matching lines...) Expand all
36 36
37 namespace blink { 37 namespace blink {
38 38
39 class Resource; 39 class Resource;
40 class Document; 40 class Document;
41 class Element; 41 class Element;
42 class HTMLScriptRunnerHost; 42 class HTMLScriptRunnerHost;
43 43
44 class HTMLScriptRunner final : public GarbageCollectedFinalized<HTMLScriptRunner >, private ScriptResourceClient { 44 class HTMLScriptRunner final : public GarbageCollectedFinalized<HTMLScriptRunner >, private ScriptResourceClient {
45 WTF_MAKE_NONCOPYABLE(HTMLScriptRunner); 45 WTF_MAKE_NONCOPYABLE(HTMLScriptRunner);
46 USING_GARBAGE_COLLECTED_MIXIN(HTMLScriptRunner);
46 USING_PRE_FINALIZER(HTMLScriptRunner, detach); 47 USING_PRE_FINALIZER(HTMLScriptRunner, detach);
47 public: 48 public:
48 static HTMLScriptRunner* create(Document* document, HTMLScriptRunnerHost* ho st) 49 static HTMLScriptRunner* create(Document* document, HTMLScriptRunnerHost* ho st)
49 { 50 {
50 return new HTMLScriptRunner(document, host); 51 return new HTMLScriptRunner(document, host);
51 } 52 }
52 ~HTMLScriptRunner(); 53 ~HTMLScriptRunner();
53 54
54 void detach(); 55 void detach();
55 56
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 // We only want stylesheet loads to trigger script execution if script 98 // We only want stylesheet loads to trigger script execution if script
98 // execution is currently stopped due to stylesheet loads, otherwise we'd 99 // execution is currently stopped due to stylesheet loads, otherwise we'd
99 // cause nested script execution when parsing <style> tags since </style> 100 // cause nested script execution when parsing <style> tags since </style>
100 // tags can cause Document to call executeScriptsWaitingForResources. 101 // tags can cause Document to call executeScriptsWaitingForResources.
101 bool m_hasScriptsWaitingForResources; 102 bool m_hasScriptsWaitingForResources;
102 }; 103 };
103 104
104 } // namespace blink 105 } // namespace blink
105 106
106 #endif 107 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698