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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp

Issue 1636873005: blink: Fix naming and const-ness of constants and non-constants. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: constants: indents Created 4 years, 11 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: third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp b/third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp
index d46fdc42c2515670a9eb9de5a3e09bf1661457ad..d7ff45f5d2e205fcabcf0046d4b5754598ea2099 100644
--- a/third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp
@@ -375,7 +375,7 @@ private:
OwnPtr<WebTaskRunner> m_loadingTaskRunner;
};
-size_t ScriptStreamer::kSmallScriptThreshold = 30 * 1024;
+size_t ScriptStreamer::s_smallScriptThreshold = 30 * 1024;
void ScriptStreamer::startStreaming(PendingScript* script, Type scriptType, Settings* settings, ScriptState* scriptState, WebTaskRunner* loadingTaskRunner)
{
@@ -470,7 +470,7 @@ void ScriptStreamer::notifyAppendData(ScriptResource* resource)
// enough - wait until the next data chunk comes before deciding whether
// to start the streaming.
ASSERT(resource->resourceBuffer());
- if (resource->resourceBuffer()->size() < kSmallScriptThreshold)
+ if (resource->resourceBuffer()->size() < s_smallScriptThreshold)
return;
m_haveEnoughDataForStreaming = true;
@@ -480,7 +480,7 @@ void ScriptStreamer::notifyAppendData(ScriptResource* resource)
// addition, check for byte order marks. Note that checking the byte
// order mark might change the encoding. We cannot decode the full text
// here, because it might contain incomplete UTF-8 characters. Also note
- // that have at least kSmallScriptThreshold worth of data, which is more
+ // that have at least s_smallScriptThreshold worth of data, which is more
// than enough for detecting a BOM.
const char* data = 0;
size_t length = resource->resourceBuffer()->getSomeData(data, static_cast<size_t>(0));

Powered by Google App Engine
This is Rietveld 408576698