| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "content/browser/devtools/devtools_browser_target.h" | 5 #include "content/browser/devtools/devtools_browser_target.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/location.h" | 8 #include "base/location.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "base/message_loop_proxy.h" | 11 #include "base/message_loop/message_loop_proxy.h" |
| 12 #include "base/values.h" | 12 #include "base/values.h" |
| 13 #include "net/server/http_server.h" | 13 #include "net/server/http_server.h" |
| 14 | 14 |
| 15 namespace content { | 15 namespace content { |
| 16 | 16 |
| 17 DevToolsBrowserTarget::DevToolsBrowserTarget( | 17 DevToolsBrowserTarget::DevToolsBrowserTarget( |
| 18 base::MessageLoopProxy* message_loop_proxy, | 18 base::MessageLoopProxy* message_loop_proxy, |
| 19 net::HttpServer* http_server, | 19 net::HttpServer* http_server, |
| 20 int connection_id) | 20 int connection_id) |
| 21 : message_loop_proxy_(message_loop_proxy), | 21 : message_loop_proxy_(message_loop_proxy), |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 void DevToolsBrowserTarget::OnNotification(const std::string& message) { | 57 void DevToolsBrowserTarget::OnNotification(const std::string& message) { |
| 58 message_loop_proxy_->PostTask( | 58 message_loop_proxy_->PostTask( |
| 59 FROM_HERE, | 59 FROM_HERE, |
| 60 base::Bind(&net::HttpServer::SendOverWebSocket, | 60 base::Bind(&net::HttpServer::SendOverWebSocket, |
| 61 http_server_, | 61 http_server_, |
| 62 connection_id_, | 62 connection_id_, |
| 63 message)); | 63 message)); |
| 64 } | 64 } |
| 65 | 65 |
| 66 } // namespace content | 66 } // namespace content |
| OLD | NEW |