OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 <utility> | 5 #include <utility> |
6 | 6 |
7 #include "base/location.h" | 7 #include "base/location.h" |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "base/rand_util.h" | 10 #include "base/rand_util.h" |
11 #include "base/single_thread_task_runner.h" | 11 #include "base/single_thread_task_runner.h" |
12 #include "base/thread_task_runner_handle.h" | 12 #include "base/threading/thread_task_runner_handle.h" |
13 #include "chrome/browser/devtools/device/android_device_manager.h" | 13 #include "chrome/browser/devtools/device/android_device_manager.h" |
14 #include "content/public/browser/browser_thread.h" | 14 #include "content/public/browser/browser_thread.h" |
15 #include "net/base/io_buffer.h" | 15 #include "net/base/io_buffer.h" |
16 #include "net/base/net_errors.h" | 16 #include "net/base/net_errors.h" |
17 #include "net/server/web_socket_encoder.h" | 17 #include "net/server/web_socket_encoder.h" |
18 #include "net/socket/stream_socket.h" | 18 #include "net/socket/stream_socket.h" |
19 | 19 |
20 using content::BrowserThread; | 20 using content::BrowserThread; |
21 using net::WebSocket; | 21 using net::WebSocket; |
22 | 22 |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 } | 224 } |
225 } | 225 } |
226 | 226 |
227 AndroidDeviceManager::AndroidWebSocket* | 227 AndroidDeviceManager::AndroidWebSocket* |
228 AndroidDeviceManager::Device::CreateWebSocket( | 228 AndroidDeviceManager::Device::CreateWebSocket( |
229 const std::string& socket_name, | 229 const std::string& socket_name, |
230 const std::string& path, | 230 const std::string& path, |
231 AndroidWebSocket::Delegate* delegate) { | 231 AndroidWebSocket::Delegate* delegate) { |
232 return new AndroidWebSocket(this, socket_name, path, delegate); | 232 return new AndroidWebSocket(this, socket_name, path, delegate); |
233 } | 233 } |
OLD | NEW |