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

Unified Diff: components/ui_devtools/devtools_client.cc

Issue 2522583002: Roll third_party/inspector_protocol to 4ad35c45aca9834b67ec2cb152c816ea1b7ceb48 (Closed)
Patch Set: updated README.chromium Created 4 years, 1 month 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
« no previous file with comments | « components/ui_devtools/devtools_client.h ('k') | content/browser/devtools/devtools_session.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/ui_devtools/devtools_client.cc
diff --git a/components/ui_devtools/devtools_client.cc b/components/ui_devtools/devtools_client.cc
index 1e0cdc40f2a7113754337e25abfcdf45e77439d4..4c2a1fc0e7d35fc987c599f0c9e1f31ca5666990 100644
--- a/components/ui_devtools/devtools_client.cc
+++ b/components/ui_devtools/devtools_client.cc
@@ -51,14 +51,17 @@ void UiDevToolsClient::DisableAllAgents() {
agent->Disable();
}
-void UiDevToolsClient::sendProtocolResponse(int callId, const String& message) {
+void UiDevToolsClient::sendProtocolResponse(
+ int callId,
+ std::unique_ptr<protocol::Serializable> message) {
if (connected())
- server_->SendOverWebSocket(connection_id_, message);
+ server_->SendOverWebSocket(connection_id_, message->serialize());
}
-void UiDevToolsClient::sendProtocolNotification(const String& message) {
+void UiDevToolsClient::sendProtocolNotification(
+ std::unique_ptr<protocol::Serializable> message) {
if (connected())
- server_->SendOverWebSocket(connection_id_, message);
+ server_->SendOverWebSocket(connection_id_, message->serialize());
}
void UiDevToolsClient::flushProtocolNotifications() {
« no previous file with comments | « components/ui_devtools/devtools_client.h ('k') | content/browser/devtools/devtools_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698