| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef WEBKIT_GLUE_DEVTOOLS_PROFILER_AGENT_H_ | |
| 6 #define WEBKIT_GLUE_DEVTOOLS_PROFILER_AGENT_H_ | |
| 7 | |
| 8 #include "webkit/glue/devtools/devtools_rpc.h" | |
| 9 | |
| 10 // Profiler agent provides API for retrieving profiler data. | |
| 11 // These methods are handled on the IO thread, so profiler can | |
| 12 // operate while a script on a page performs heavy work. | |
| 13 #define PROFILER_AGENT_STRUCT(METHOD0, METHOD1, METHOD2, METHOD3) \ | |
| 14 /* Requests current profiler state. */ \ | |
| 15 METHOD0(GetActiveProfilerModules) \ | |
| 16 \ | |
| 17 /* Retrieves portion of profiler log. */ \ | |
| 18 METHOD1(GetLogLines, int /* position */) | |
| 19 | |
| 20 DEFINE_RPC_CLASS(ProfilerAgent, PROFILER_AGENT_STRUCT) | |
| 21 | |
| 22 #define PROFILER_AGENT_DELEGATE_STRUCT(METHOD0, METHOD1, METHOD2, METHOD3) \ | |
| 23 /* Response to GetActiveProfilerModules. */ \ | |
| 24 METHOD1(DidGetActiveProfilerModules, int /* flags */) \ | |
| 25 \ | |
| 26 /* Response to GetLogLines. */ \ | |
| 27 METHOD2(DidGetLogLines, int /* position */, String /* log */) | |
| 28 | |
| 29 DEFINE_RPC_CLASS(ProfilerAgentDelegate, PROFILER_AGENT_DELEGATE_STRUCT) | |
| 30 | |
| 31 #endif // WEBKIT_GLUE_DEVTOOLS_PROFILER_AGENT_H_ | |
| OLD | NEW |