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_udp/sockets_udp_api.h" | 5 #include "chrome/browser/extensions/api/sockets_udp/sockets_udp_api.h" |
6 | 6 |
7 #include "chrome/browser/extensions/api/socket/udp_socket.h" | 7 #include "chrome/browser/extensions/api/socket/udp_socket.h" |
8 #include "chrome/browser/extensions/api/sockets_udp/udp_socket_event_dispatcher.
h" | 8 #include "chrome/browser/extensions/api/sockets_udp/udp_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 namespace extensions { | 14 namespace extensions { |
14 namespace api { | 15 namespace api { |
15 | 16 |
16 using content::SocketPermissionRequest; | 17 using content::SocketPermissionRequest; |
17 | 18 |
18 const char kSocketNotFoundError[] = "Socket not found"; | 19 const char kSocketNotFoundError[] = "Socket not found"; |
(...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
496 error_ = kPermissionError; | 497 error_ = kPermissionError; |
497 return; | 498 return; |
498 } | 499 } |
499 | 500 |
500 const std::vector<std::string>& groups = socket->GetJoinedGroups(); | 501 const std::vector<std::string>& groups = socket->GetJoinedGroups(); |
501 results_ = sockets_udp::GetJoinedGroups::Results::Create(groups); | 502 results_ = sockets_udp::GetJoinedGroups::Results::Create(groups); |
502 } | 503 } |
503 | 504 |
504 } // namespace api | 505 } // namespace api |
505 } // namespace extensions | 506 } // namespace extensions |
OLD | NEW |