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

Unified Diff: Source/bindings/core/v8/ScriptStreamingMode.h

Issue 651163002: Script streaming: Add an option to make the main thread block (wait for parsing) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: code review (jochen@, skyostil@) Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: Source/bindings/core/v8/ScriptStreamingMode.h
diff --git a/Source/bindings/core/v8/ScriptStreamingMode.h b/Source/bindings/core/v8/ScriptStreamingMode.h
new file mode 100644
index 0000000000000000000000000000000000000000..d88d8fd05e7f904b3742ede3cd6dd300dad962b8
--- /dev/null
+++ b/Source/bindings/core/v8/ScriptStreamingMode.h
@@ -0,0 +1,25 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef ScriptStreamingMode_h
+#define ScriptStreamingMode_h
+
+// ScriptStreamingModes are used for evaluating different heuristics for when we
+// should start streaming.
+
+namespace blink {
+
+enum ScriptStreamingMode {
haraken 2014/10/23 15:32:10 Nit: I'd put this enum into ScriptStreaming.h.
marja 2014/10/24 13:04:41 I'd rather keep it here, this is the minimal file
+ // Stream all scripts
+ ScriptStreamingModeAll,
+ // Stream only async and deferred scripts
+ ScriptStreamingModeOnlyAsyncAndDefer,
+ // Stream all scripts, block the main thread after loading when streaming
+ // parser blocking scripts.
+ ScriptStreamingModeAllPlusBlockParsingBlocking
+};
+
+} // namespace blink
+
+#endif // ScriptStreamingMode_h

Powered by Google App Engine
This is Rietveld 408576698