OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/extensions/api/sockets_tcp/sockets_tcp_api.h" | 5 #include "chrome/browser/extensions/api/sockets_tcp/sockets_tcp_api.h" |
6 | 6 |
7 #include "chrome/browser/extensions/api/socket/tcp_socket.h" | 7 #include "chrome/browser/extensions/api/socket/tcp_socket.h" |
8 #include "chrome/browser/extensions/api/sockets_tcp/tcp_socket_event_dispatcher.
h" | 8 #include "chrome/browser/extensions/api/sockets_tcp/tcp_socket_event_dispatcher.
h" |
| 9 #include "chrome/browser/profiles/profile.h" |
9 #include "chrome/common/extensions/api/sockets/sockets_manifest_data.h" | 10 #include "chrome/common/extensions/api/sockets/sockets_manifest_data.h" |
10 #include "content/public/common/socket_permission_request.h" | 11 #include "content/public/common/socket_permission_request.h" |
11 #include "net/base/net_errors.h" | 12 #include "net/base/net_errors.h" |
12 | 13 |
13 using extensions::ResumableTCPSocket; | 14 using extensions::ResumableTCPSocket; |
14 using extensions::api::sockets_tcp::SocketInfo; | 15 using extensions::api::sockets_tcp::SocketInfo; |
15 using extensions::api::sockets_tcp::SocketProperties; | 16 using extensions::api::sockets_tcp::SocketProperties; |
16 | 17 |
17 namespace { | 18 namespace { |
18 | 19 |
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
435 if (socket) { | 436 if (socket) { |
436 socket_infos.push_back(CreateSocketInfo(socket_id, socket)); | 437 socket_infos.push_back(CreateSocketInfo(socket_id, socket)); |
437 } | 438 } |
438 } | 439 } |
439 } | 440 } |
440 results_ = sockets_tcp::GetSockets::Results::Create(socket_infos); | 441 results_ = sockets_tcp::GetSockets::Results::Create(socket_infos); |
441 } | 442 } |
442 | 443 |
443 } // namespace api | 444 } // namespace api |
444 } // namespace extensions | 445 } // namespace extensions |
OLD | NEW |