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

Unified Diff: content/browser/devtools/devtools_protocol.h

Issue 12906011: Detect debugging target crash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 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 side-by-side diff with in-line comments
Download patch
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..1a2d6da10bd3292c4cb530b207d3cef5cf97882a 100644
--- a/content/browser/devtools/devtools_protocol.h
+++ b/content/browser/devtools/devtools_protocol.h
@@ -100,6 +100,21 @@ class DevToolsProtocol {
DISALLOW_COPY_AND_ASSIGN(Notification);
};
+ class Event {
+ public:
+ ~Event();
+
+ std::string Serialize();
+
+ private:
+ friend class DevToolsProtocol;
+
+ std::string method_;
+ scoped_ptr<base::DictionaryValue> params_;
+
+ Event(const std::string& method, base::DictionaryValue* params);
pfeldman 2013/03/21 06:30:08 List constructor first. DISALLOW_COPY_AND_ASSIGN m
Vladislav Kaznacheev 2013/03/21 07:24:02 Done.
+ };
+
class Handler {
public:
typedef base::Callback<scoped_ptr<DevToolsProtocol::Response>(
@@ -134,6 +149,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() {}

Powered by Google App Engine
This is Rietveld 408576698