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

Unified Diff: third_party/WebKit/Source/platform/v8_inspector/InjectedScriptNative.h

Issue 2295913003: [DevTools] Switch from platform/v8_inspector to v8/v8-inspector.h. (Closed)
Patch Set: rebase Created 4 years, 3 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/platform/v8_inspector/InjectedScriptNative.h
diff --git a/third_party/WebKit/Source/platform/v8_inspector/InjectedScriptNative.h b/third_party/WebKit/Source/platform/v8_inspector/InjectedScriptNative.h
deleted file mode 100644
index e56b8a830527d4add465e02ef0754a67855b63d1..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/platform/v8_inspector/InjectedScriptNative.h
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef InjectedScriptNative_h
-#define InjectedScriptNative_h
-
-#include "platform/v8_inspector/protocol/Protocol.h"
-
-#include <v8.h>
-#include <vector>
-
-namespace v8_inspector {
-
-class InjectedScriptNative final {
-public:
- explicit InjectedScriptNative(v8::Isolate*);
- ~InjectedScriptNative();
-
- void setOnInjectedScriptHost(v8::Local<v8::Object>);
- static InjectedScriptNative* fromInjectedScriptHost(v8::Local<v8::Object>);
-
- int bind(v8::Local<v8::Value>, const String16& groupName);
- void unbind(int id);
- v8::Local<v8::Value> objectForId(int id);
-
- void releaseObjectGroup(const String16& groupName);
- String16 groupName(int objectId) const;
-
-private:
- void addObjectToGroup(int objectId, const String16& groupName);
-
- int m_lastBoundObjectId;
- v8::Isolate* m_isolate;
- protocol::HashMap<int, std::unique_ptr<v8::Global<v8::Value>>> m_idToWrappedObject;
- typedef protocol::HashMap<int, String16> IdToObjectGroupName;
- IdToObjectGroupName m_idToObjectGroupName;
- typedef protocol::HashMap<String16, std::vector<int>> NameToObjectGroup;
- NameToObjectGroup m_nameToObjectGroup;
-};
-
-} // namespace v8_inspector
-
-#endif

Powered by Google App Engine
This is Rietveld 408576698