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

Side by Side Diff: components/ui_devtools/devtools_client.cc

Issue 2490473004: [DevTools] Roll third_party/inspector_protocol to e23134c5aa6131e5a3a3afbefce255becce3a3bd. (Closed)
Patch Set: ui_devtools 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 unified diff | Download patch
« no previous file with comments | « components/ui_devtools/BUILD.gn ('k') | components/ui_devtools/inspector_protocol_config.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/ui_devtools/devtools_client.h" 5 #include "components/ui_devtools/devtools_client.h"
6 6
7 #include "components/ui_devtools/devtools_server.h" 7 #include "components/ui_devtools/devtools_server.h"
8 8
9 namespace ui { 9 namespace ui {
10 namespace devtools { 10 namespace devtools {
(...skipping 13 matching lines...) Expand all
24 agent->Init(&dispatcher_); 24 agent->Init(&dispatcher_);
25 agents_.push_back(std::move(agent)); 25 agents_.push_back(std::move(agent));
26 } 26 }
27 27
28 void UiDevToolsClient::Disconnect() { 28 void UiDevToolsClient::Disconnect() {
29 connection_id_ = kNotConnected; 29 connection_id_ = kNotConnected;
30 DisableAllAgents(); 30 DisableAllAgents();
31 } 31 }
32 32
33 void UiDevToolsClient::Dispatch(const std::string& data) { 33 void UiDevToolsClient::Dispatch(const std::string& data) {
34 dispatcher_.dispatch(protocol::parseJSON(data)); 34 dispatcher_.dispatch(protocol::StringUtil::parseJSON(data));
35 } 35 }
36 36
37 bool UiDevToolsClient::connected() const { 37 bool UiDevToolsClient::connected() const {
38 return connection_id_ != kNotConnected; 38 return connection_id_ != kNotConnected;
39 } 39 }
40 40
41 void UiDevToolsClient::set_connection_id(int connection_id) { 41 void UiDevToolsClient::set_connection_id(int connection_id) {
42 connection_id_ = connection_id; 42 connection_id_ = connection_id;
43 } 43 }
44 44
(...skipping 15 matching lines...) Expand all
60 if (connected()) 60 if (connected())
61 server_->SendOverWebSocket(connection_id_, message); 61 server_->SendOverWebSocket(connection_id_, message);
62 } 62 }
63 63
64 void UiDevToolsClient::flushProtocolNotifications() { 64 void UiDevToolsClient::flushProtocolNotifications() {
65 NOTIMPLEMENTED(); 65 NOTIMPLEMENTED();
66 } 66 }
67 67
68 } // namespace devtools 68 } // namespace devtools
69 } // namespace ui 69 } // namespace ui
OLDNEW
« no previous file with comments | « components/ui_devtools/BUILD.gn ('k') | components/ui_devtools/inspector_protocol_config.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698