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

Side by Side Diff: third_party/WebKit/Source/platform/v8_inspector/public/V8ProfilerAgent.h

Issue 1767883002: DevTools: generate string16-based handlers for v8_inspector. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: for landing 2 Created 4 years, 9 months 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 unified diff | Download patch
OLDNEW
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)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698