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

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

Issue 2800683005: Introduce PendingScript::startStreamingIfPossible() (Closed)
Patch Set: Rebase Created 3 years, 8 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 97
98 ScriptSourceCode getSource(const KURL& documentURL, 98 ScriptSourceCode getSource(const KURL& documentURL,
99 bool& errorOccurred) const; 99 bool& errorOccurred) const;
100 100
101 void setStreamer(ScriptStreamer*); 101 void setStreamer(ScriptStreamer*);
102 void streamingFinished(); 102 void streamingFinished();
103 103
104 bool isReady() const; 104 bool isReady() const;
105 bool errorOccurred() const; 105 bool errorOccurred() const;
106 106
107 void startStreamingIfPossible(Document*, ScriptStreamer::Type);
107 void dispose(); 108 void dispose();
108 109
109 private: 110 private:
110 PendingScript(ScriptElementBase*, 111 PendingScript(ScriptElementBase*,
111 ScriptResource*, 112 ScriptResource*,
112 const TextPosition&, 113 const TextPosition&,
113 bool isForTesting = false); 114 bool isForTesting = false);
114 PendingScript() = delete; 115 PendingScript() = delete;
115 116
116 void checkState() const; 117 void checkState() const;
(...skipping 21 matching lines...) Expand all
138 Member<PendingScriptClient> m_client; 139 Member<PendingScriptClient> m_client;
139 140
140 // This flag is used to skip non-null checks of |m_element| in unit 141 // This flag is used to skip non-null checks of |m_element| in unit
141 // tests, because |m_element| can be null in unit tests. 142 // tests, because |m_element| can be null in unit tests.
142 const bool m_isForTesting; 143 const bool m_isForTesting;
143 }; 144 };
144 145
145 } // namespace blink 146 } // namespace blink
146 147
147 #endif // PendingScript_h 148 #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