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

Side by Side Diff: third_party/WebKit/Source/core/dom/ClassicPendingScript.cpp

Issue 2819043002: Reland of name PendingScript::Url() to UrlForClassicScript() (Closed)
Patch Set: Rebase Created 3 years, 7 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
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/dom/ClassicPendingScript.h" 5 #include "core/dom/ClassicPendingScript.h"
6 6
7 #include "bindings/core/v8/ScriptSourceCode.h" 7 #include "bindings/core/v8/ScriptSourceCode.h"
8 #include "bindings/core/v8/ScriptState.h" 8 #include "bindings/core/v8/ScriptState.h"
9 #include "bindings/core/v8/ScriptStreamer.h" 9 #include "bindings/core/v8/ScriptStreamer.h"
10 #include "bindings/core/v8/V8BindingForCore.h" 10 #include "bindings/core/v8/V8BindingForCore.h"
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 227
228 ScriptStreamer::StartStreaming( 228 ScriptStreamer::StartStreaming(
229 this, streamer_type, document->GetFrame()->GetSettings(), script_state, 229 this, streamer_type, document->GetFrame()->GetSettings(), script_state,
230 TaskRunnerHelper::Get(TaskType::kNetworking, document)); 230 TaskRunnerHelper::Get(TaskType::kNetworking, document));
231 } 231 }
232 232
233 bool ClassicPendingScript::WasCanceled() const { 233 bool ClassicPendingScript::WasCanceled() const {
234 return GetResource()->WasCanceled(); 234 return GetResource()->WasCanceled();
235 } 235 }
236 236
237 KURL ClassicPendingScript::Url() const { 237 KURL ClassicPendingScript::UrlForClassicScript() const {
238 return GetResource()->Url(); 238 return GetResource()->Url();
239 } 239 }
240 240
241 void ClassicPendingScript::RemoveFromMemoryCache() { 241 void ClassicPendingScript::RemoveFromMemoryCache() {
242 GetMemoryCache()->Remove(GetResource()); 242 GetMemoryCache()->Remove(GetResource());
243 } 243 }
244 244
245 } // namespace blink 245 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/ClassicPendingScript.h ('k') | third_party/WebKit/Source/core/dom/PendingScript.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698