#ifndef InspectorInstrumentation_h
#define InspectorInstrumentation_h
-#include "bindings/v8/ScriptString.h"
+#include "bindings/core/v8/ScriptString.h"
#include "core/css/CSSSelector.h"
#include "core/css/CSSStyleDeclaration.h"
#include "core/css/CSSStyleSheet.h"
#include "core/dom/Element.h"
#include "core/dom/ExecutionContext.h"
#include "core/events/NodeEventContext.h"
-#include "core/frame/Frame.h"
+#include "core/frame/LocalFrame.h"
#include "core/inspector/ConsoleAPITypes.h"
-#include "core/page/Page.h"
#include "core/rendering/HitTestResult.h"
#include "core/rendering/RenderImage.h"
#include "core/storage/StorageArea.h"
-#include "modules/websockets/WebSocketFrame.h"
#include "platform/network/FormData.h"
#include "platform/network/WebSocketHandshakeRequest.h"
#include "platform/network/WebSocketHandshakeResponse.h"
#include "wtf/RefPtr.h"
-namespace WebCore {
+namespace blink {
-struct CSSParserString;
-class DeviceOrientationData;
class Document;
-class Element;
class EventTarget;
class ExecutionContext;
-class GraphicsContext;
-class GraphicsLayer;
+class FrameHost;
class InspectorTimelineAgent;
class InstrumentingAgents;
-class RenderLayer;
class ThreadableLoaderClient;
class WorkerGlobalScope;
-class WorkerGlobalScopeProxy;
+class WorkerInspectorProxy;
#define FAST_RETURN_IF_NO_FRONTENDS(value) if (!hasFrontends()) return value;
class InspectorInstrumentationCookie {
+ STACK_ALLOCATED();
public:
InspectorInstrumentationCookie();
InspectorInstrumentationCookie(InstrumentingAgents*, int);
bool hasMatchingTimelineAgentId(int id) const { return m_timelineAgentId == id; }
private:
- RefPtr<InstrumentingAgents> m_instrumentingAgents;
+ RefPtrWillBeMember<InstrumentingAgents> m_instrumentingAgents;
int m_timelineAgentId;
};
static int s_frontendCounter;
};
-inline void frontendCreated() { FrontendCounter::s_frontendCounter += 1; }
-inline void frontendDeleted() { FrontendCounter::s_frontendCounter -= 1; }
+inline void frontendCreated() { atomicIncrement(&FrontendCounter::s_frontendCounter); }
+inline void frontendDeleted() { atomicDecrement(&FrontendCounter::s_frontendCounter); }
inline bool hasFrontends() { return FrontendCounter::s_frontendCounter; }
void registerInstrumentingAgents(InstrumentingAgents*);
// Called from generated instrumentation code.
InstrumentingAgents* instrumentingAgentsFor(Page*);
-InstrumentingAgents* instrumentingAgentsFor(Frame*);
+InstrumentingAgents* instrumentingAgentsFor(LocalFrame*);
InstrumentingAgents* instrumentingAgentsFor(EventTarget*);
InstrumentingAgents* instrumentingAgentsFor(ExecutionContext*);
InstrumentingAgents* instrumentingAgentsFor(Document&);
InstrumentingAgents* instrumentingAgentsFor(RenderObject*);
InstrumentingAgents* instrumentingAgentsFor(Node*);
InstrumentingAgents* instrumentingAgentsFor(WorkerGlobalScope*);
+InstrumentingAgents* instrumentingAgentsFor(FrameHost*);
// Helper for the one above.
InstrumentingAgents* instrumentingAgentsForNonDocumentContext(ExecutionContext*);
extern const char RasterTask[];
extern const char Paint[];
extern const char Layer[];
+extern const char RequestMainThreadFrame[];
extern const char BeginFrame[];
+extern const char DrawFrame[];
extern const char ActivateLayerTree[];
+extern const char EmbedderCallback[];
};
namespace InstrumentationEventArguments {
extern const char LayerId[];
extern const char LayerTreeId[];
extern const char PageId[];
+extern const char CallbackName[];
};
namespace InspectorInstrumentation {
return context->isDocument() ? instrumentingAgentsFor(*toDocument(context)) : instrumentingAgentsForNonDocumentContext(context);
}
-inline InstrumentingAgents* instrumentingAgentsFor(Frame* frame)
+inline InstrumentingAgents* instrumentingAgentsFor(LocalFrame* frame)
{
return frame ? instrumentingAgentsFor(frame->page()) : 0;
}
InstrumentingAgents* instrumentationForWorkerGlobalScope(WorkerGlobalScope*);
-} // namespace WebCore
+} // namespace blink
-// This file will soon be generated
-#include "InspectorInstrumentationInl.h"
+#include "core/InspectorInstrumentationInl.h"
-#include "InspectorInstrumentationCustomInl.h"
+#include "core/inspector/InspectorInstrumentationCustomInl.h"
-#include "InspectorOverridesInl.h"
+#include "core/InspectorOverridesInl.h"
#endif // !defined(InspectorInstrumentation_h)