#ifndef InspectorProfilerAgent_h
#define InspectorProfilerAgent_h
-#include "InspectorFrontend.h"
+#include "core/InspectorFrontend.h"
#include "core/inspector/InspectorBaseAgent.h"
#include "wtf/Forward.h"
#include "wtf/HashMap.h"
#include "wtf/PassOwnPtr.h"
#include "wtf/text/WTFString.h"
-namespace WebCore {
+namespace blink {
+class ExecutionContext;
class InjectedScriptManager;
class InspectorFrontend;
class InspectorOverlay;
typedef String ErrorString;
class InspectorProfilerAgent FINAL : public InspectorBaseAgent<InspectorProfilerAgent>, public InspectorBackendDispatcher::ProfilerCommandHandler {
- WTF_MAKE_NONCOPYABLE(InspectorProfilerAgent); WTF_MAKE_FAST_ALLOCATED;
+ WTF_MAKE_NONCOPYABLE(InspectorProfilerAgent);
+ WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED;
public:
- static PassOwnPtr<InspectorProfilerAgent> create(InjectedScriptManager*, InspectorOverlay*);
+ static PassOwnPtrWillBeRawPtr<InspectorProfilerAgent> create(InjectedScriptManager*, InspectorOverlay*);
virtual ~InspectorProfilerAgent();
+ virtual void trace(Visitor*) OVERRIDE;
- void consoleProfile(const String& title, ScriptState*);
+ void consoleProfile(ExecutionContext*, const String& title);
void consoleProfileEnd(const String& title);
virtual void enable(ErrorString*) OVERRIDE;
void stop(ErrorString*, RefPtr<TypeBuilder::Profiler::CPUProfile>*);
String nextProfileId();
- InjectedScriptManager* m_injectedScriptManager;
+ RawPtrWillBeMember<InjectedScriptManager> m_injectedScriptManager;
InspectorFrontend::Profiler* m_frontend;
bool m_recordingCPUProfile;
class ProfileDescriptor;
void idleFinished();
};
-} // namespace WebCore
+} // namespace blink
#endif // !defined(InspectorProfilerAgent_h)