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

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

Issue 1648523002: DevTools: move InjectedScript* to inspector/v8. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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/InjectedScriptNative.h
diff --git a/third_party/WebKit/Source/core/inspector/InjectedScriptNative.h b/third_party/WebKit/Source/core/inspector/InjectedScriptNative.h
deleted file mode 100644
index 4c020ae2cca0b604f6c2c8628e59514f1e99243d..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/core/inspector/InjectedScriptNative.h
+++ /dev/null
@@ -1,45 +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 "bindings/core/v8/V8GlobalValueMap.h"
-#include "wtf/Forward.h"
-#include "wtf/HashMap.h"
-#include "wtf/RefCounted.h"
-#include <v8.h>
-
-namespace blink {
-
-class InjectedScriptNative final : public RefCounted<InjectedScriptNative> {
-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 String& groupName);
- void unbind(int id);
- v8::Local<v8::Value> objectForId(int id);
-
- void releaseObjectGroup(const String& groupName);
- String groupName(int objectId) const;
-
-private:
- void addObjectToGroup(int objectId, const String& groupName);
-
- int m_lastBoundObjectId;
- v8::Isolate* m_isolate;
- V8GlobalValueMap<int, v8::Value, v8::kNotWeak> m_idToWrappedObject;
- typedef HashMap<int, String> IdToObjectGroupName;
- IdToObjectGroupName m_idToObjectGroupName;
- typedef HashMap<String, Vector<int>> NameToObjectGroup;
- NameToObjectGroup m_nameToObjectGroup;
-};
-
-} // namespace blink
-
-#endif

Powered by Google App Engine
This is Rietveld 408576698