| Index: Source/core/inspector/InspectorDartAgent.h
|
| diff --git a/Source/core/inspector/InspectorMemoryAgent.h b/Source/core/inspector/InspectorDartAgent.h
|
| similarity index 69%
|
| copy from Source/core/inspector/InspectorMemoryAgent.h
|
| copy to Source/core/inspector/InspectorDartAgent.h
|
| index 1aa511f7fd57870a87bfb30e27037209b4048447..67e67933f5e0f1ed6ac9d01f5da68a44d5965605 100644
|
| --- a/Source/core/inspector/InspectorMemoryAgent.h
|
| +++ b/Source/core/inspector/InspectorDartAgent.h
|
| @@ -28,8 +28,8 @@
|
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| */
|
|
|
| -#ifndef InspectorMemoryAgent_h
|
| -#define InspectorMemoryAgent_h
|
| +#ifndef InspectorDartAgent_h
|
| +#define InspectorDartAgent_h
|
|
|
| #include "InspectorFrontend.h"
|
| #include "core/inspector/InspectorBaseAgent.h"
|
| @@ -37,34 +37,33 @@
|
|
|
| namespace WebCore {
|
|
|
| +class InspectorPageAgent;
|
| class InstrumentingAgents;
|
| -
|
| typedef String ErrorString;
|
|
|
| -class InspectorMemoryAgent : public InspectorBaseAgent<InspectorMemoryAgent>, public InspectorBackendDispatcher::MemoryCommandHandler {
|
| - WTF_MAKE_NONCOPYABLE(InspectorMemoryAgent);
|
| +class InspectorDartAgent : public InspectorBaseAgent<InspectorDartAgent>, public InspectorBackendDispatcher::DartCommandHandler {
|
| + WTF_MAKE_NONCOPYABLE(InspectorDartAgent);
|
| public:
|
| typedef Vector<OwnPtr<InspectorBaseAgentInterface> > InspectorAgents;
|
|
|
| - static PassOwnPtr<InspectorMemoryAgent> create(InstrumentingAgents* instrumentingAgents, InspectorCompositeState* state)
|
| + static PassOwnPtr<InspectorDartAgent> create(InstrumentingAgents* instrumentingAgents, InspectorPageAgent* pageAgent, InspectorCompositeState* state)
|
| {
|
| - return adoptPtr(new InspectorMemoryAgent(instrumentingAgents, state));
|
| + return adoptPtr(new InspectorDartAgent(instrumentingAgents, pageAgent, state));
|
| }
|
| - virtual ~InspectorMemoryAgent();
|
| + virtual ~InspectorDartAgent();
|
|
|
| - virtual void getDOMCounters(ErrorString*, int* documents, int* nodes, int* jsEventListeners);
|
| + virtual void observatoryQuery(ErrorString*, const String& inId, const String& inQuery);
|
|
|
| virtual void setFrontend(InspectorFrontend*);
|
| virtual void clearFrontend();
|
|
|
| private:
|
| - InspectorMemoryAgent(InstrumentingAgents*, InspectorCompositeState*);
|
| -
|
| - PassRefPtr<JSONObject> getProcessMemoryDistributionImpl(bool reportGraph, HashMap<String, size_t>* memoryInfo);
|
| + InspectorDartAgent(InstrumentingAgents*, InspectorPageAgent*, InspectorCompositeState*);
|
|
|
| - InspectorFrontend::Memory* m_frontend;
|
| + InspectorFrontend::Dart* m_frontend;
|
| + InspectorPageAgent* m_pageAgent;
|
| };
|
|
|
| } // namespace WebCore
|
|
|
| -#endif // !defined(InspectorMemoryAgent_h)
|
| +#endif // !defined(InspectorDartAgent_h)
|
|
|