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

Unified Diff: third_party/WebKit/Source/core/workers/WorkerScriptLoader.cpp

Issue 2807343002: Rename ScriptResource/WorkerScriptLoader::Script() to SourceText() (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/workers/WorkerScriptLoader.cpp
diff --git a/third_party/WebKit/Source/core/workers/WorkerScriptLoader.cpp b/third_party/WebKit/Source/core/workers/WorkerScriptLoader.cpp
index be4952718282bb80ddd61bba6990db8867fdb540..216581fc817213a89b413632c11cc3f713ec11be 100644
--- a/third_party/WebKit/Source/core/workers/WorkerScriptLoader.cpp
+++ b/third_party/WebKit/Source/core/workers/WorkerScriptLoader.cpp
@@ -189,7 +189,7 @@ void WorkerScriptLoader::DidReceiveData(const char* data, unsigned len) {
if (!len)
return;
- script_.Append(decoder_->Decode(data, len));
+ source_text_.Append(decoder_->Decode(data, len));
}
void WorkerScriptLoader::DidReceiveCachedMetadata(const char* data, int size) {
@@ -200,7 +200,7 @@ void WorkerScriptLoader::DidReceiveCachedMetadata(const char* data, int size) {
void WorkerScriptLoader::DidFinishLoading(unsigned long identifier, double) {
need_to_cancel_ = false;
if (!failed_ && decoder_)
- script_.Append(decoder_->Flush());
+ source_text_.Append(decoder_->Flush());
NotifyFinished();
}
@@ -223,8 +223,8 @@ void WorkerScriptLoader::Cancel() {
threadable_loader_->Cancel();
}
-String WorkerScriptLoader::Script() {
- return script_.ToString();
+String WorkerScriptLoader::SourceText() {
+ return source_text_.ToString();
}
void WorkerScriptLoader::NotifyError() {
« no previous file with comments | « third_party/WebKit/Source/core/workers/WorkerScriptLoader.h ('k') | third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698