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

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

Issue 1274063003: [Loader] Make ThreadableLoader non-RefCounted and be managed by OwnPtr (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Reflect comments. Created 4 years, 10 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.h
diff --git a/third_party/WebKit/Source/core/workers/WorkerScriptLoader.h b/third_party/WebKit/Source/core/workers/WorkerScriptLoader.h
index cae04263530d19e0aff74cac673489b063ebfe57..12c61e5d27518228b96a32db509e0f678c1ae6e1 100644
--- a/third_party/WebKit/Source/core/workers/WorkerScriptLoader.h
+++ b/third_party/WebKit/Source/core/workers/WorkerScriptLoader.h
@@ -36,6 +36,7 @@
#include "public/platform/WebURLRequest.h"
#include "wtf/Allocator.h"
#include "wtf/Functional.h"
+#include "wtf/OwnPtr.h"
#include "wtf/PassRefPtr.h"
#include "wtf/RefCounted.h"
#include "wtf/text/StringBuilder.h"
@@ -106,7 +107,7 @@ private:
OwnPtr<Closure> m_responseCallback;
OwnPtr<Closure> m_finishedCallback;
- RefPtr<ThreadableLoader> m_threadableLoader;
+ OwnPtr<ThreadableLoader> m_threadableLoader;
String m_responseEncoding;
OwnPtr<TextResourceDecoder> m_decoder;
StringBuilder m_script;

Powered by Google App Engine
This is Rietveld 408576698