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 "chrome/browser/devtools/device/webrtc/webrtc_device_provider.h" | 5 #include "chrome/browser/devtools/device/webrtc/webrtc_device_provider.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/location.h" | 9 #include "base/location.h" |
8 #include "base/single_thread_task_runner.h" | 10 #include "base/single_thread_task_runner.h" |
9 #include "base/thread_task_runner_handle.h" | 11 #include "base/thread_task_runner_handle.h" |
10 #include "chrome/browser/devtools/device/webrtc/devtools_bridge_client.h" | 12 #include "chrome/browser/devtools/device/webrtc/devtools_bridge_client.h" |
11 #include "chrome/common/url_constants.h" | 13 #include "chrome/common/url_constants.h" |
12 #include "content/public/browser/web_ui.h" | 14 #include "content/public/browser/web_ui.h" |
13 #include "content/public/browser/web_ui_data_source.h" | 15 #include "content/public/browser/web_ui_data_source.h" |
14 #include "grit/webrtc_device_provider_resources_map.h" | 16 #include "grit/webrtc_device_provider_resources_map.h" |
15 #include "net/base/net_errors.h" | 17 #include "net/base/net_errors.h" |
16 #include "net/socket/stream_socket.h" | 18 #include "net/socket/stream_socket.h" |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 BrowserThread::PostTask( | 85 BrowserThread::PostTask( |
84 BrowserThread::UI, | 86 BrowserThread::UI, |
85 FROM_HERE, | 87 FROM_HERE, |
86 base::Bind(&DevToolsBridgeClient::StartSessionIfNeeded, | 88 base::Bind(&DevToolsBridgeClient::StartSessionIfNeeded, |
87 client_, socket_name)); | 89 client_, socket_name)); |
88 // TODO(serya): Implement | 90 // TODO(serya): Implement |
89 scoped_ptr<net::StreamSocket> socket; | 91 scoped_ptr<net::StreamSocket> socket; |
90 base::ThreadTaskRunnerHandle::Get()->PostTask( | 92 base::ThreadTaskRunnerHandle::Get()->PostTask( |
91 FROM_HERE, base::Bind(callback, net::ERR_FAILED, base::Passed(&socket))); | 93 FROM_HERE, base::Bind(callback, net::ERR_FAILED, base::Passed(&socket))); |
92 } | 94 } |
OLD | NEW |