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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/ScriptSourceCode.h

Issue 2552673002: Eagerly dispose of ScheduledActions (reland.) (Closed)
Patch Set: Add assert Created 4 years 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/ScriptSourceCode.h
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptSourceCode.h b/third_party/WebKit/Source/bindings/core/v8/ScriptSourceCode.h
index 3af0431128cc1dd3d013cea05c296ef0f0e8618f..15651270c95ff59303a05ce9f61fdc261ef9c611 100644
--- a/third_party/WebKit/Source/bindings/core/v8/ScriptSourceCode.h
+++ b/third_party/WebKit/Source/bindings/core/v8/ScriptSourceCode.h
@@ -56,6 +56,7 @@ class CORE_EXPORT ScriptSourceCode final {
ScriptSourceCode(ScriptStreamer*, ScriptResource*);
~ScriptSourceCode();
+ void dispose();
DECLARE_TRACE();
bool isEmpty() const { return m_source.isEmpty(); }
@@ -65,13 +66,13 @@ class CORE_EXPORT ScriptSourceCode final {
bool isNull() const { return m_source.isNull(); }
const String& source() const { return m_source; }
- ScriptResource* resource() const { return m_resource.get(); }
+ ScriptResource* resource() const { return m_resource; }
const KURL& url() const;
int startLine() const { return m_startPosition.m_line.oneBasedInt(); }
const TextPosition& startPosition() const { return m_startPosition; }
String sourceMapUrl() const;
- ScriptStreamer* streamer() const { return m_streamer.get(); }
+ ScriptStreamer* streamer() const { return m_streamer; }
private:
void treatNullSourceAsEmpty();

Powered by Google App Engine
This is Rietveld 408576698