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

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

Issue 2899783002: Move DevTools out of ash and turn it to a component. (Closed)
Patch Set: add README.md Created 3 years, 6 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 unified diff | Download patch
« no previous file with comments | « components/ui_devtools/devtools_client.h ('k') | components/ui_devtools/devtools_server.h » ('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_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
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
OLDNEW
« no previous file with comments | « components/ui_devtools/devtools_client.h ('k') | components/ui_devtools/devtools_server.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698