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

Unified Diff: Source/core/inspector/InspectorDartAgent.h

Issue 104433004: Enable VM service inside Dartium Renderer processes (Closed) Base URL: svn://svn.chromium.org/multivm/branches/1650/blink
Patch Set: Created 7 years 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: 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)

Powered by Google App Engine
This is Rietveld 408576698