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

Unified Diff: third_party/WebKit/Source/core/inspector/MainThreadDebugger.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/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 d0a7046b678fa243e7053d97c68a51589423d492..343d364acf71b2bb3aae6fc0427fe97808643270 100644
--- a/third_party/WebKit/Source/core/inspector/MainThreadDebugger.h
+++ b/third_party/WebKit/Source/core/inspector/MainThreadDebugger.h
@@ -36,7 +36,6 @@
#include "core/inspector/InspectorTaskRunner.h"
#include "core/inspector/ThreadDebugger.h"
#include "platform/heap/Handle.h"
-#include <memory>
#include <v8.h>
namespace blink {
@@ -63,7 +62,7 @@ public:
InspectorTaskRunner* taskRunner() const { return m_taskRunner.get(); }
bool isWorker() override { return false; }
- void setClientMessageLoop(std::unique_ptr<ClientMessageLoop>);
+ void setClientMessageLoop(PassOwnPtr<ClientMessageLoop>);
int contextGroupId(LocalFrame*);
void contextCreated(ScriptState*, LocalFrame*, SecurityOrigin*);
void contextWillBeDestroyed(ScriptState*);
@@ -85,8 +84,8 @@ private:
bool callingContextCanAccessContext(v8::Local<v8::Context> calling, v8::Local<v8::Context> target) override;
int ensureDefaultContextInGroup(int contextGroupId) override;
- std::unique_ptr<ClientMessageLoop> m_clientMessageLoop;
- std::unique_ptr<InspectorTaskRunner> m_taskRunner;
+ OwnPtr<ClientMessageLoop> m_clientMessageLoop;
+ OwnPtr<InspectorTaskRunner> m_taskRunner;
static MainThreadDebugger* s_instance;

Powered by Google App Engine
This is Rietveld 408576698