This commit is contained in:
Robo 2016-01-22 14:17:23 +05:30
parent df5bad3f89
commit 3a60ab386c
4 changed files with 168 additions and 11 deletions

View file

@ -31,7 +31,8 @@ class Debugger: public mate::TrackableObject<Debugger>,
public content::DevToolsAgentHostClient {
public:
using SendCommandCallback =
base::Callback<void(const base::DictionaryValue&)>;
base::Callback<void(const base::DictionaryValue&,
const base::DictionaryValue&)>;
static mate::Handle<Debugger> Create(
v8::Isolate* isolate, content::WebContents* web_contents);
@ -54,6 +55,7 @@ class Debugger: public mate::TrackableObject<Debugger>,
using PendingRequestMap = std::map<int, SendCommandCallback>;
void Attach(mate::Arguments* args);
bool IsAttached();
void Detach();
void SendCommand(mate::Arguments* args);