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

Unified Diff: third_party/WebKit/Source/web/WebSharedWorkerImpl.h

Issue 2080623002: Revert "Remove OwnPtr from Blink." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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/web/WebSharedWorkerImpl.h
diff --git a/third_party/WebKit/Source/web/WebSharedWorkerImpl.h b/third_party/WebKit/Source/web/WebSharedWorkerImpl.h
index 3c6753360f4214ba0ea4507439995b7b8922fc9c..9a0036200c6eaffc42c66a1b5bfc0877dd4dd059 100644
--- a/third_party/WebKit/Source/web/WebSharedWorkerImpl.h
+++ b/third_party/WebKit/Source/web/WebSharedWorkerImpl.h
@@ -42,8 +42,8 @@
#include "public/web/WebDevToolsAgentClient.h"
#include "public/web/WebFrameClient.h"
#include "public/web/WebSharedWorkerClient.h"
+#include "wtf/PassOwnPtr.h"
#include "wtf/RefPtr.h"
-#include <memory>
namespace blink {
@@ -75,7 +75,7 @@ public:
explicit WebSharedWorkerImpl(WebSharedWorkerClient*);
// WorkerReportingProxy methods:
- void reportException(const WTF::String&, std::unique_ptr<SourceLocation>) override;
+ void reportException(const WTF::String&, PassOwnPtr<SourceLocation>) override;
void reportConsoleMessage(ConsoleMessage*) override;
void postMessageToPageInspector(const WTF::String&) override;
void postWorkerConsoleAgentEnabled() override { }
@@ -141,11 +141,11 @@ private:
bool m_askedToTerminate;
// This one is bound to and used only on the main thread.
- std::unique_ptr<WebServiceWorkerNetworkProvider> m_networkProvider;
+ OwnPtr<WebServiceWorkerNetworkProvider> m_networkProvider;
Persistent<WorkerInspectorProxy> m_workerInspectorProxy;
- std::unique_ptr<WorkerThread> m_workerThread;
+ OwnPtr<WorkerThread> m_workerThread;
WebSharedWorkerClient* m_client;
« no previous file with comments | « third_party/WebKit/Source/web/WebRemoteFrameImpl.h ('k') | third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698