| 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 {
|
| + // 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
|
|
|