OLD | NEW |
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_devtools { |
10 namespace devtools { | |
11 | 10 |
12 UiDevToolsClient::UiDevToolsClient(const std::string& name, | 11 UiDevToolsClient::UiDevToolsClient(const std::string& name, |
13 UiDevToolsServer* server) | 12 UiDevToolsServer* server) |
14 : name_(name), | 13 : name_(name), |
15 connection_id_(kNotConnected), | 14 connection_id_(kNotConnected), |
16 dispatcher_(this), | 15 dispatcher_(this), |
17 server_(server) { | 16 server_(server) { |
18 DCHECK(server_); | 17 DCHECK(server_); |
19 } | 18 } |
20 | 19 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 void UiDevToolsClient::sendProtocolNotification( | 60 void UiDevToolsClient::sendProtocolNotification( |
62 std::unique_ptr<protocol::Serializable> message) { | 61 std::unique_ptr<protocol::Serializable> message) { |
63 if (connected()) | 62 if (connected()) |
64 server_->SendOverWebSocket(connection_id_, message->serialize()); | 63 server_->SendOverWebSocket(connection_id_, message->serialize()); |
65 } | 64 } |
66 | 65 |
67 void UiDevToolsClient::flushProtocolNotifications() { | 66 void UiDevToolsClient::flushProtocolNotifications() { |
68 NOTIMPLEMENTED(); | 67 NOTIMPLEMENTED(); |
69 } | 68 } |
70 | 69 |
71 } // namespace devtools | 70 } // namespace ui_devtools |
72 } // namespace ui | |
OLD | NEW |