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

Side by Side Diff: third_party/WebKit/Source/core/dom/PendingScript.h

Issue 1798253002: Stop scheduling in-order script execution upon hitting failed script. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix msvc compilation Created 4 years, 9 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 | « no previous file | third_party/WebKit/Source/core/dom/PendingScript.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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 void notifyAppendData(ScriptResource*) override; 71 void notifyAppendData(ScriptResource*) override;
72 72
73 DECLARE_TRACE(); 73 DECLARE_TRACE();
74 74
75 ScriptSourceCode getSource(const KURL& documentURL, bool& errorOccurred) con st; 75 ScriptSourceCode getSource(const KURL& documentURL, bool& errorOccurred) con st;
76 76
77 void setStreamer(PassRefPtrWillBeRawPtr<ScriptStreamer>); 77 void setStreamer(PassRefPtrWillBeRawPtr<ScriptStreamer>);
78 void streamingFinished(); 78 void streamingFinished();
79 79
80 bool isReady() const; 80 bool isReady() const;
81 bool errorOccurred() const;
81 82
82 void dispose(); 83 void dispose();
83 84
84 private: 85 private:
85 PendingScript(Element*, ScriptResource*); 86 PendingScript(Element*, ScriptResource*);
86 87
87 bool m_watchingForLoad; 88 bool m_watchingForLoad;
88 RefPtrWillBeMember<Element> m_element; 89 RefPtrWillBeMember<Element> m_element;
89 TextPosition m_startingPosition; // Only used for inline script tags. 90 TextPosition m_startingPosition; // Only used for inline script tags.
90 bool m_integrityFailure; 91 bool m_integrityFailure;
91 92
92 RefPtrWillBeMember<ScriptStreamer> m_streamer; 93 RefPtrWillBeMember<ScriptStreamer> m_streamer;
93 ScriptResourceClient* m_client; 94 ScriptResourceClient* m_client;
94 }; 95 };
95 96
96 } // namespace blink 97 } // namespace blink
97 98
98 #endif // PendingScript_h 99 #endif // PendingScript_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/PendingScript.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698