| Index: content/browser/devtools/devtools_protocol.h
|
| diff --git a/content/browser/devtools/devtools_protocol.h b/content/browser/devtools/devtools_protocol.h
|
| index 63fbf0730f8871735a006d20e31ac89a76d68eee..975547691445ca405b79a723711e279cda6138dc 100644
|
| --- a/content/browser/devtools/devtools_protocol.h
|
| +++ b/content/browser/devtools/devtools_protocol.h
|
| @@ -100,6 +100,24 @@ class DevToolsProtocol {
|
| DISALLOW_COPY_AND_ASSIGN(Notification);
|
| };
|
|
|
| + class Event {
|
| + public:
|
| + ~Event();
|
| +
|
| + std::string Serialize();
|
| +
|
| + private:
|
| + friend class DevToolsProtocol;
|
| +
|
| + // Takes ownership over |params|.
|
| + Event(const std::string& method, base::DictionaryValue* params);
|
| +
|
| + std::string method_;
|
| + scoped_ptr<base::DictionaryValue> params_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(Event);
|
| + };
|
| +
|
| class Handler {
|
| public:
|
| typedef base::Callback<scoped_ptr<DevToolsProtocol::Response>(
|
| @@ -134,6 +152,9 @@ class DevToolsProtocol {
|
| static Command* ParseCommand(const std::string& json,
|
| std::string* error_response);
|
|
|
| + static Event* CreateEvent(const std::string& method,
|
| + base::DictionaryValue* params);
|
| +
|
| private:
|
| DevToolsProtocol() {}
|
| ~DevToolsProtocol() {}
|
|
|