2016-11-02 19:18:13 +00:00
|
|
|
// Copyright 2004-present Facebook. All Rights Reserved.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "LegacyDispatcher.h"
|
|
|
|
|
|
|
|
namespace JSC {
|
|
|
|
class JSGlobalObject;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace facebook {
|
|
|
|
namespace react {
|
|
|
|
|
|
|
|
class LegacyInspectorEnvironment;
|
|
|
|
class ConsoleAgent;
|
|
|
|
|
2016-11-02 19:18:19 +00:00
|
|
|
/*
|
|
|
|
* An dispatcher that provides the existing agents in JavaScriptCore.
|
|
|
|
*/
|
2016-11-02 19:18:13 +00:00
|
|
|
class LegacyAgents : public LegacyDispatcher {
|
|
|
|
public:
|
|
|
|
LegacyAgents(
|
|
|
|
JSC::JSGlobalObject& globalObject,
|
|
|
|
std::unique_ptr<LegacyInspectorEnvironment> environment,
|
|
|
|
ConsoleAgent* consoleAgent);
|
|
|
|
private:
|
|
|
|
std::unique_ptr<LegacyInspectorEnvironment> environment_;
|
|
|
|
ConsoleAgent* consoleAgent_;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|