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

Unified Diff: third_party/WebKit/Source/core/inspector/MainThreadDebugger.h

Issue 2050123002: Remove OwnPtr from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: First attempt to land. 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/core/inspector/MainThreadDebugger.h
diff --git a/third_party/WebKit/Source/core/inspector/MainThreadDebugger.h b/third_party/WebKit/Source/core/inspector/MainThreadDebugger.h
index 343d364acf71b2bb3aae6fc0427fe97808643270..d0a7046b678fa243e7053d97c68a51589423d492 100644
--- a/third_party/WebKit/Source/core/inspector/MainThreadDebugger.h
+++ b/third_party/WebKit/Source/core/inspector/MainThreadDebugger.h
@@ -36,6 +36,7 @@
#include "core/inspector/InspectorTaskRunner.h"
#include "core/inspector/ThreadDebugger.h"
#include "platform/heap/Handle.h"
+#include <memory>
#include <v8.h>
namespace blink {
@@ -62,7 +63,7 @@ public:
InspectorTaskRunner* taskRunner() const { return m_taskRunner.get(); }
bool isWorker() override { return false; }
- void setClientMessageLoop(PassOwnPtr<ClientMessageLoop>);
+ void setClientMessageLoop(std::unique_ptr<ClientMessageLoop>);
int contextGroupId(LocalFrame*);
void contextCreated(ScriptState*, LocalFrame*, SecurityOrigin*);
void contextWillBeDestroyed(ScriptState*);
@@ -84,8 +85,8 @@ private:
bool callingContextCanAccessContext(v8::Local<v8::Context> calling, v8::Local<v8::Context> target) override;
int ensureDefaultContextInGroup(int contextGroupId) override;
- OwnPtr<ClientMessageLoop> m_clientMessageLoop;
- OwnPtr<InspectorTaskRunner> m_taskRunner;
+ std::unique_ptr<ClientMessageLoop> m_clientMessageLoop;
+ std::unique_ptr<InspectorTaskRunner> m_taskRunner;
static MainThreadDebugger* s_instance;

Powered by Google App Engine
This is Rietveld 408576698