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

Unified Diff: src/inspector/V8InspectorSessionImpl.h

Issue 2300823002: Revert of [inspector] Initial import of v8_inspector. (Closed)
Patch Set: Created 4 years, 4 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
« no previous file with comments | « src/inspector/V8InspectorImpl.cpp ('k') | src/inspector/V8InspectorSessionImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/inspector/V8InspectorSessionImpl.h
diff --git a/src/inspector/V8InspectorSessionImpl.h b/src/inspector/V8InspectorSessionImpl.h
deleted file mode 100644
index d5b15b58a18f12db6c9777369ec574be0cbf6eb6..0000000000000000000000000000000000000000
--- a/src/inspector/V8InspectorSessionImpl.h
+++ /dev/null
@@ -1,105 +0,0 @@
-// Copyright 2016 the V8 project 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 V8_INSPECTOR_V8INSPECTORSESSIONIMPL_H_
-#define V8_INSPECTOR_V8INSPECTORSESSIONIMPL_H_
-
-#include "src/inspector/Allocator.h"
-#include "src/inspector/protocol/Forward.h"
-#include "src/inspector/protocol/Runtime.h"
-#include "src/inspector/protocol/Schema.h"
-#include "src/inspector/public/V8Inspector.h"
-#include "src/inspector/public/V8InspectorSession.h"
-
-#include <v8.h>
-#include <vector>
-
-namespace v8_inspector {
-
-class InjectedScript;
-class RemoteObjectIdBase;
-class V8ConsoleAgentImpl;
-class V8DebuggerAgentImpl;
-class V8InspectorImpl;
-class V8HeapProfilerAgentImpl;
-class V8ProfilerAgentImpl;
-class V8RuntimeAgentImpl;
-class V8SchemaAgentImpl;
-
-using protocol::ErrorString;
-
-class V8InspectorSessionImpl : public V8InspectorSession, public protocol::FrontendChannel {
- V8_INSPECTOR_DISALLOW_COPY(V8InspectorSessionImpl);
-public:
- static std::unique_ptr<V8InspectorSessionImpl> create(V8InspectorImpl*, int contextGroupId, V8Inspector::Channel*, const StringView& state);
- ~V8InspectorSessionImpl();
-
- V8InspectorImpl* inspector() const { return m_inspector; }
- V8ConsoleAgentImpl* consoleAgent() { return m_consoleAgent.get(); }
- V8DebuggerAgentImpl* debuggerAgent() { return m_debuggerAgent.get(); }
- V8SchemaAgentImpl* schemaAgent() { return m_schemaAgent.get(); }
- V8ProfilerAgentImpl* profilerAgent() { return m_profilerAgent.get(); }
- V8RuntimeAgentImpl* runtimeAgent() { return m_runtimeAgent.get(); }
- int contextGroupId() const { return m_contextGroupId; }
-
- InjectedScript* findInjectedScript(ErrorString*, int contextId);
- InjectedScript* findInjectedScript(ErrorString*, RemoteObjectIdBase*);
- void reset();
- void discardInjectedScripts();
- void reportAllContexts(V8RuntimeAgentImpl*);
- void setCustomObjectFormatterEnabled(bool);
- std::unique_ptr<protocol::Runtime::RemoteObject> wrapObject(v8::Local<v8::Context>, v8::Local<v8::Value>, const String16& groupName, bool generatePreview);
- std::unique_ptr<protocol::Runtime::RemoteObject> wrapTable(v8::Local<v8::Context>, v8::Local<v8::Value> table, v8::Local<v8::Value> columns);
- std::vector<std::unique_ptr<protocol::Schema::Domain>> supportedDomainsImpl();
- bool unwrapObject(ErrorString*, const String16& objectId, v8::Local<v8::Value>*, v8::Local<v8::Context>*, String16* objectGroup);
- void releaseObjectGroup(const String16& objectGroup);
-
- // V8InspectorSession implementation.
- void dispatchProtocolMessage(const StringView& message) override;
- std::unique_ptr<StringBuffer> stateJSON() override;
- std::vector<std::unique_ptr<protocol::Schema::API::Domain>> supportedDomains() override;
- void addInspectedObject(std::unique_ptr<V8InspectorSession::Inspectable>) override;
- void schedulePauseOnNextStatement(const StringView& breakReason, const StringView& breakDetails) override;
- void cancelPauseOnNextStatement() override;
- void breakProgram(const StringView& breakReason, const StringView& breakDetails) override;
- void setSkipAllPauses(bool) override;
- void resume() override;
- void stepOver() override;
- std::vector<std::unique_ptr<protocol::Debugger::API::SearchMatch>> searchInTextByLines(const StringView& text, const StringView& query, bool caseSensitive, bool isRegex) override;
- void releaseObjectGroup(const StringView& objectGroup) override;
- bool unwrapObject(std::unique_ptr<StringBuffer>*, const StringView& objectId, v8::Local<v8::Value>*, v8::Local<v8::Context>*, std::unique_ptr<StringBuffer>* objectGroup) override;
- std::unique_ptr<protocol::Runtime::API::RemoteObject> wrapObject(v8::Local<v8::Context>, v8::Local<v8::Value>, const StringView& groupName) override;
-
- V8InspectorSession::Inspectable* inspectedObject(unsigned num);
- static const unsigned kInspectedObjectBufferSize = 5;
-
-private:
- V8InspectorSessionImpl(V8InspectorImpl*, int contextGroupId, V8Inspector::Channel*, const StringView& state);
- protocol::DictionaryValue* agentState(const String16& name);
-
- // protocol::FrontendChannel implementation.
- void sendProtocolResponse(int callId, const String16& message) override;
- void sendProtocolNotification(const String16& message) override;
- void flushProtocolNotifications() override;
-
- int m_contextGroupId;
- V8InspectorImpl* m_inspector;
- V8Inspector::Channel* m_channel;
- bool m_customObjectFormatterEnabled;
-
- protocol::UberDispatcher m_dispatcher;
- std::unique_ptr<protocol::DictionaryValue> m_state;
-
- std::unique_ptr<V8RuntimeAgentImpl> m_runtimeAgent;
- std::unique_ptr<V8DebuggerAgentImpl> m_debuggerAgent;
- std::unique_ptr<V8HeapProfilerAgentImpl> m_heapProfilerAgent;
- std::unique_ptr<V8ProfilerAgentImpl> m_profilerAgent;
- std::unique_ptr<V8ConsoleAgentImpl> m_consoleAgent;
- std::unique_ptr<V8SchemaAgentImpl> m_schemaAgent;
- std::vector<std::unique_ptr<V8InspectorSession::Inspectable>> m_inspectedObjects;
-};
-
-} // namespace v8_inspector
-
-#endif // V8_INSPECTOR_V8INSPECTORSESSIONIMPL_H_
« no previous file with comments | « src/inspector/V8InspectorImpl.cpp ('k') | src/inspector/V8InspectorSessionImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698