| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2010 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2010 Google Inc. All rights reserved. | 3 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 #include "core/InspectorFrontend.h" | 33 #include "core/InspectorFrontend.h" |
| 34 #include "core/inspector/InspectorBaseAgent.h" | 34 #include "core/inspector/InspectorBaseAgent.h" |
| 35 #include "wtf/Forward.h" | 35 #include "wtf/Forward.h" |
| 36 #include "wtf/HashMap.h" | 36 #include "wtf/HashMap.h" |
| 37 #include "wtf/Noncopyable.h" | 37 #include "wtf/Noncopyable.h" |
| 38 #include "wtf/PassOwnPtr.h" | 38 #include "wtf/PassOwnPtr.h" |
| 39 #include "wtf/text/WTFString.h" | 39 #include "wtf/text/WTFString.h" |
| 40 | 40 |
| 41 namespace blink { | 41 namespace blink { |
| 42 | 42 |
| 43 class ExecutionContext; |
| 43 class InjectedScriptManager; | 44 class InjectedScriptManager; |
| 44 class InspectorFrontend; | 45 class InspectorFrontend; |
| 45 class InspectorOverlay; | 46 class InspectorOverlay; |
| 46 class InstrumentingAgents; | 47 class InstrumentingAgents; |
| 47 class ScriptState; | 48 class ScriptState; |
| 48 class ScriptCallStack; | 49 class ScriptCallStack; |
| 49 class ScriptProfile; | 50 class ScriptProfile; |
| 50 | 51 |
| 51 | 52 |
| 52 typedef String ErrorString; | 53 typedef String ErrorString; |
| 53 | 54 |
| 54 class InspectorProfilerAgent FINAL : public InspectorBaseAgent<InspectorProfiler
Agent>, public InspectorBackendDispatcher::ProfilerCommandHandler { | 55 class InspectorProfilerAgent FINAL : public InspectorBaseAgent<InspectorProfiler
Agent>, public InspectorBackendDispatcher::ProfilerCommandHandler { |
| 55 WTF_MAKE_NONCOPYABLE(InspectorProfilerAgent); | 56 WTF_MAKE_NONCOPYABLE(InspectorProfilerAgent); |
| 56 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; | 57 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; |
| 57 public: | 58 public: |
| 58 static PassOwnPtrWillBeRawPtr<InspectorProfilerAgent> create(InjectedScriptM
anager*, InspectorOverlay*); | 59 static PassOwnPtrWillBeRawPtr<InspectorProfilerAgent> create(InjectedScriptM
anager*, InspectorOverlay*); |
| 59 virtual ~InspectorProfilerAgent(); | 60 virtual ~InspectorProfilerAgent(); |
| 60 virtual void trace(Visitor*) OVERRIDE; | 61 virtual void trace(Visitor*) OVERRIDE; |
| 61 | 62 |
| 62 void consoleProfile(const String& title, ScriptState*); | 63 void consoleProfile(ExecutionContext*, const String& title, ScriptState*); |
| 63 void consoleProfileEnd(const String& title, ScriptState*); | 64 void consoleProfileEnd(const String& title, ScriptState*); |
| 64 | 65 |
| 65 virtual void enable(ErrorString*) OVERRIDE; | 66 virtual void enable(ErrorString*) OVERRIDE; |
| 66 virtual void disable(ErrorString*) OVERRIDE; | 67 virtual void disable(ErrorString*) OVERRIDE; |
| 67 virtual void setSamplingInterval(ErrorString*, int) OVERRIDE; | 68 virtual void setSamplingInterval(ErrorString*, int) OVERRIDE; |
| 68 virtual void start(ErrorString*) OVERRIDE; | 69 virtual void start(ErrorString*) OVERRIDE; |
| 69 virtual void stop(ErrorString*, RefPtr<TypeBuilder::Profiler::CPUProfile>&)
OVERRIDE; | 70 virtual void stop(ErrorString*, RefPtr<TypeBuilder::Profiler::CPUProfile>&)
OVERRIDE; |
| 70 | 71 |
| 71 virtual void setFrontend(InspectorFrontend*) OVERRIDE; | 72 virtual void setFrontend(InspectorFrontend*) OVERRIDE; |
| 72 virtual void clearFrontend() OVERRIDE; | 73 virtual void clearFrontend() OVERRIDE; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 97 InspectorOverlay* m_overlay; | 98 InspectorOverlay* m_overlay; |
| 98 | 99 |
| 99 void idleStarted(); | 100 void idleStarted(); |
| 100 void idleFinished(); | 101 void idleFinished(); |
| 101 }; | 102 }; |
| 102 | 103 |
| 103 } // namespace blink | 104 } // namespace blink |
| 104 | 105 |
| 105 | 106 |
| 106 #endif // !defined(InspectorProfilerAgent_h) | 107 #endif // !defined(InspectorProfilerAgent_h) |
| OLD | NEW |