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

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

Issue 368283002: Stream scripts to V8 as they load - Blink side. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: removed untrue assert Created 6 years, 3 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 | « Source/core/frame/Settings.in ('k') | Source/core/html/parser/HTMLScriptRunner.cpp » ('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 25 matching lines...) Expand all
36 namespace blink { 36 namespace blink {
37 37
38 class Resource; 38 class Resource;
39 class ScriptResource; 39 class ScriptResource;
40 class Document; 40 class Document;
41 class Element; 41 class Element;
42 class LocalFrame; 42 class LocalFrame;
43 class HTMLScriptRunnerHost; 43 class HTMLScriptRunnerHost;
44 class ScriptSourceCode; 44 class ScriptSourceCode;
45 45
46 class HTMLScriptRunner FINAL : public NoBaseWillBeGarbageCollectedFinalized<HTML ScriptRunner>, private ResourceClient { 46 class HTMLScriptRunner FINAL : public NoBaseWillBeGarbageCollectedFinalized<HTML ScriptRunner>, private ScriptResourceClient {
47 WTF_MAKE_NONCOPYABLE(HTMLScriptRunner); WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMO VED; 47 WTF_MAKE_NONCOPYABLE(HTMLScriptRunner); WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMO VED;
48 public: 48 public:
49 static PassOwnPtrWillBeRawPtr<HTMLScriptRunner> create(Document* document, H TMLScriptRunnerHost* host) 49 static PassOwnPtrWillBeRawPtr<HTMLScriptRunner> create(Document* document, H TMLScriptRunnerHost* host)
50 { 50 {
51 return adoptPtrWillBeNoop(new HTMLScriptRunner(document, host)); 51 return adoptPtrWillBeNoop(new HTMLScriptRunner(document, host));
52 } 52 }
53 ~HTMLScriptRunner(); 53 ~HTMLScriptRunner();
54 54
55 void detach(); 55 void detach();
56 56
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 104
105 // For tracking the times between script load and compilation, we need to 105 // For tracking the times between script load and compilation, we need to
106 // know whether a parser blocking script was loaded previously, or whether 106 // know whether a parser blocking script was loaded previously, or whether
107 // it's really loaded when requested. 107 // it's really loaded when requested.
108 bool m_parserBlockingScriptAlreadyLoaded; 108 bool m_parserBlockingScriptAlreadyLoaded;
109 }; 109 };
110 110
111 } 111 }
112 112
113 #endif 113 #endif
OLDNEW
« no previous file with comments | « Source/core/frame/Settings.in ('k') | Source/core/html/parser/HTMLScriptRunner.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698