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

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

Issue 2050123002: Remove OwnPtr from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments from Kent; merge. 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 3ccc1ea9677bcd10b44c2bc7715fec258d001837..fd87560e300e1e4b8ef42989bbaf1dd0fa4f37ba 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&, PassOwnPtr<SourceLocation>) override;
+ void reportException(const WTF::String&, std::unique_ptr<SourceLocation>) override;
void reportConsoleMessage(ConsoleMessage*) override;
void postMessageToPageInspector(const WTF::String&) override;
void postWorkerConsoleAgentEnabled() override { }
@@ -140,11 +140,11 @@ private:
bool m_askedToTerminate;
// This one is bound to and used only on the main thread.
- OwnPtr<WebServiceWorkerNetworkProvider> m_networkProvider;
+ std::unique_ptr<WebServiceWorkerNetworkProvider> m_networkProvider;
Persistent<WorkerInspectorProxy> m_workerInspectorProxy;
- OwnPtr<WorkerThread> m_workerThread;
+ std::unique_ptr<WorkerThread> m_workerThread;
WebSharedWorkerClient* m_client;

Powered by Google App Engine
This is Rietveld 408576698