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

Unified Diff: third_party/WebKit/Source/platform/v8_inspector/InspectedContext.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/InspectedContext.h
diff --git a/third_party/WebKit/Source/platform/v8_inspector/InspectedContext.h b/third_party/WebKit/Source/platform/v8_inspector/InspectedContext.h
deleted file mode 100644
index e43270286f6eea8963b6c0ab33f56684e726fd2a..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/platform/v8_inspector/InspectedContext.h
+++ /dev/null
@@ -1,62 +0,0 @@
-// Copyright 2016 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 InspectedContext_h
-#define InspectedContext_h
-
-#include "platform/v8_inspector/Allocator.h"
-#include "platform/v8_inspector/String16.h"
-
-#include <v8.h>
-
-namespace v8_inspector {
-
-class InjectedScript;
-class InjectedScriptHost;
-class V8ContextInfo;
-class V8InspectorImpl;
-
-class InspectedContext {
- V8_INSPECTOR_DISALLOW_COPY(InspectedContext);
-public:
- ~InspectedContext();
-
- v8::Local<v8::Context> context() const;
- int contextId() const { return m_contextId; }
- int contextGroupId() const { return m_contextGroupId; }
- String16 origin() const { return m_origin; }
- String16 humanReadableName() const { return m_humanReadableName; }
- String16 auxData() const { return m_auxData; }
-
- bool isReported() const { return m_reported; }
- void setReported(bool reported) { m_reported = reported; }
-
- v8::Isolate* isolate() const;
- V8InspectorImpl* inspector() const { return m_inspector; }
-
- InjectedScript* getInjectedScript() { return m_injectedScript.get(); }
- void createInjectedScript();
- void discardInjectedScript();
-
-private:
- friend class V8InspectorImpl;
- InspectedContext(V8InspectorImpl*, const V8ContextInfo&, int contextId);
- static void weakCallback(const v8::WeakCallbackInfo<InspectedContext>&);
- static void consoleWeakCallback(const v8::WeakCallbackInfo<InspectedContext>&);
-
- V8InspectorImpl* m_inspector;
- v8::Global<v8::Context> m_context;
- int m_contextId;
- int m_contextGroupId;
- const String16 m_origin;
- const String16 m_humanReadableName;
- const String16 m_auxData;
- bool m_reported;
- std::unique_ptr<InjectedScript> m_injectedScript;
- v8::Global<v8::Object> m_console;
-};
-
-} // namespace v8_inspector
-
-#endif

Powered by Google App Engine
This is Rietveld 408576698