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

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

Issue 290873002: DevTools: allow embedder handling remote debugger commands. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 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 15b0a8087be5c57dac3efe471bd25862204f5fd6..65a49254a1f044fa2e8611683d29a9ded0edbf7f 100644
--- a/content/browser/devtools/devtools_protocol.h
+++ b/content/browser/devtools/devtools_protocol.h
@@ -157,25 +157,32 @@ class DevToolsProtocol {
DISALLOW_COPY_AND_ASSIGN(Handler);
};
+ CONTENT_EXPORT static base::DictionaryValue* ParseMessage(
+ const std::string& json,
+ std::string* error_response);
+
CONTENT_EXPORT static scoped_refptr<Command> ParseCommand(
const std::string& json,
std::string* error_response);
+ CONTENT_EXPORT static scoped_refptr<Command> ParseCommand(
+ base::DictionaryValue* command_dict,
+ std::string* error_response);
+
CONTENT_EXPORT static scoped_refptr<Command> CreateCommand(
int id,
const std::string& method,
base::DictionaryValue* params);
+ CONTENT_EXPORT static scoped_refptr<Response> ParseResponse(
+ base::DictionaryValue* response_dict);
+
static scoped_refptr<Notification> ParseNotification(
const std::string& json);
static scoped_refptr<Notification> CreateNotification(
const std::string& method, base::DictionaryValue* params);
- private:
- static base::DictionaryValue* ParseMessage(const std::string& json,
- std::string* error_response);
-
DevToolsProtocol() {}
~DevToolsProtocol() {}
};

Powered by Google App Engine
This is Rietveld 408576698