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 "chrome/browser/extensions/api/socket/socket_api.h" | 5 #include "chrome/browser/extensions/api/socket/socket_api.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/hash_tables.h" | 10 #include "base/containers/hash_tables.h" |
11 #include "chrome/browser/browser_process.h" | 11 #include "chrome/browser/browser_process.h" |
12 #include "chrome/browser/extensions/api/dns/host_resolver_wrapper.h" | 12 #include "chrome/browser/extensions/api/dns/host_resolver_wrapper.h" |
13 #include "chrome/browser/extensions/api/socket/socket.h" | 13 #include "chrome/browser/extensions/api/socket/socket.h" |
14 #include "chrome/browser/extensions/api/socket/tcp_socket.h" | 14 #include "chrome/browser/extensions/api/socket/tcp_socket.h" |
15 #include "chrome/browser/extensions/api/socket/udp_socket.h" | 15 #include "chrome/browser/extensions/api/socket/udp_socket.h" |
16 #include "chrome/browser/extensions/extension_system.h" | 16 #include "chrome/browser/extensions/extension_system.h" |
17 #include "chrome/browser/io_thread.h" | 17 #include "chrome/browser/io_thread.h" |
18 #include "chrome/common/extensions/extension.h" | 18 #include "chrome/common/extensions/extension.h" |
19 #include "chrome/common/extensions/permissions/permissions_data.h" | 19 #include "chrome/common/extensions/permissions/permissions_data.h" |
20 #include "chrome/common/extensions/permissions/socket_permission.h" | 20 #include "chrome/common/extensions/permissions/socket_permission.h" |
(...skipping 874 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
895 return; | 895 return; |
896 } | 896 } |
897 | 897 |
898 base::ListValue* values = new base::ListValue(); | 898 base::ListValue* values = new base::ListValue(); |
899 values->AppendStrings((std::vector<std::string>&) | 899 values->AppendStrings((std::vector<std::string>&) |
900 static_cast<UDPSocket*>(socket)->GetJoinedGroups()); | 900 static_cast<UDPSocket*>(socket)->GetJoinedGroups()); |
901 SetResult(values); | 901 SetResult(values); |
902 } | 902 } |
903 | 903 |
904 } // namespace extensions | 904 } // namespace extensions |
OLD | NEW |