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

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

Issue 298863010: Oilpan: have PendingScripts trace their script elements. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Trace HTMLScriptRunnerHost from HTMLScriptRunner 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
« no previous file with comments | « Source/core/html/parser/HTMLScriptRunner.cpp ('k') | no next file » | 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 12 matching lines...) Expand all
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */ 24 */
25 25
26 #ifndef HTMLScriptRunnerHost_h 26 #ifndef HTMLScriptRunnerHost_h
27 #define HTMLScriptRunnerHost_h 27 #define HTMLScriptRunnerHost_h
28 28
29 #include "wtf/Forward.h" 29 #include "wtf/Forward.h"
30 30
31 namespace WebCore { 31 namespace WebCore {
32 32
33 class HTMLInputStream;
33 class Resource; 34 class Resource;
34 class Element; 35 class Visitor;
35 class HTMLInputStream;
36 class ScriptSourceCode;
37 36
38 class HTMLScriptRunnerHost { 37 class HTMLScriptRunnerHost : public WillBeGarbageCollectedMixin {
39 public: 38 public:
40 virtual ~HTMLScriptRunnerHost() { } 39 virtual ~HTMLScriptRunnerHost() { }
40 virtual void trace(Visitor*) { }
41 41
42 // Implementors should call cachedResource->addClient() here or soon after. 42 virtual void notifyScriptLoaded(Resource*) = 0;
43 virtual void watchForLoad(Resource*) = 0;
44 // Implementors must call cachedResource->removeClient() immediately.
45 virtual void stopWatchingForLoad(Resource*) = 0;
46
47 virtual HTMLInputStream& inputStream() = 0; 43 virtual HTMLInputStream& inputStream() = 0;
48 44
49 virtual bool hasPreloadScanner() const = 0; 45 virtual bool hasPreloadScanner() const = 0;
50 virtual void appendCurrentInputStreamToPreloadScannerAndScan() = 0; 46 virtual void appendCurrentInputStreamToPreloadScannerAndScan() = 0;
51 47
52 }; 48 };
53 49
54 } 50 }
55 51
56 #endif 52 #endif
OLDNEW
« no previous file with comments | « Source/core/html/parser/HTMLScriptRunner.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698