| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8ProfilerAgent_h | 5 #ifndef V8ProfilerAgent_h |
| 6 #define V8ProfilerAgent_h | 6 #define V8ProfilerAgent_h |
| 7 | 7 |
| 8 #include "platform/PlatformExport.h" | 8 #include "platform/PlatformExport.h" |
| 9 #include "platform/inspector_protocol/Dispatcher.h" | 9 #include "platform/inspector_protocol/Dispatcher.h" |
| 10 #include "platform/v8_inspector/public/V8Debugger.h" | 10 #include "platform/v8_inspector/public/V8Debugger.h" |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 | 13 |
| 14 class PLATFORM_EXPORT V8ProfilerAgent : public protocol::Dispatcher::ProfilerCom
mandHandler, public V8Debugger::Agent<protocol::Frontend::Profiler> { | 14 class PLATFORM_EXPORT V8ProfilerAgent : public protocol::Dispatcher::ProfilerCom
mandHandler, public V8Debugger::Agent<protocol::Frontend::Profiler> { |
| 15 public: | 15 public: |
| 16 static PassOwnPtr<V8ProfilerAgent> create(V8Debugger*); | 16 static PassOwnPtr<V8ProfilerAgent> create(V8Debugger*); |
| 17 virtual ~V8ProfilerAgent() { } | 17 virtual ~V8ProfilerAgent() { } |
| 18 | 18 |
| 19 // API for the embedder. | 19 // API for the embedder. |
| 20 virtual void consoleProfile(const String& title) = 0; | 20 virtual void consoleProfile(const String16& title) = 0; |
| 21 virtual void consoleProfileEnd(const String& title) = 0; | 21 virtual void consoleProfileEnd(const String16& title) = 0; |
| 22 | 22 |
| 23 virtual void idleStarted() = 0; | 23 virtual void idleStarted() = 0; |
| 24 virtual void idleFinished() = 0; | 24 virtual void idleFinished() = 0; |
| 25 }; | 25 }; |
| 26 | 26 |
| 27 } // namespace blink | 27 } // namespace blink |
| 28 | 28 |
| 29 | 29 |
| 30 #endif // !defined(V8ProfilerAgent_h) | 30 #endif // !defined(V8ProfilerAgent_h) |
| OLD | NEW |