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 #ifndef EXTENSIONS_BROWSER_API_SOCKETS_UDP_SOCKETS_UDP_API_H_ | 5 #ifndef EXTENSIONS_BROWSER_API_SOCKETS_UDP_SOCKETS_UDP_API_H_ |
6 #define EXTENSIONS_BROWSER_API_SOCKETS_UDP_SOCKETS_UDP_API_H_ | 6 #define EXTENSIONS_BROWSER_API_SOCKETS_UDP_SOCKETS_UDP_API_H_ |
7 | 7 |
8 #include "extensions/browser/api/socket/socket_api.h" | 8 #include "extensions/browser/api/socket/socket_api.h" |
9 #include "extensions/common/api/sockets_udp.h" | 9 #include "extensions/common/api/sockets_udp.h" |
10 | 10 |
11 namespace extensions { | 11 namespace extensions { |
12 class ResumableUDPSocket; | 12 class ResumableUDPSocket; |
13 } | 13 } |
14 | 14 |
15 namespace extensions { | 15 namespace extensions { |
16 namespace core_api { | 16 namespace api { |
17 | 17 |
18 class UDPSocketEventDispatcher; | 18 class UDPSocketEventDispatcher; |
19 | 19 |
20 class UDPSocketAsyncApiFunction : public SocketAsyncApiFunction { | 20 class UDPSocketAsyncApiFunction : public SocketAsyncApiFunction { |
21 protected: | 21 protected: |
22 ~UDPSocketAsyncApiFunction() override; | 22 ~UDPSocketAsyncApiFunction() override; |
23 | 23 |
24 scoped_ptr<SocketResourceManagerInterface> CreateSocketResourceManager() | 24 scoped_ptr<SocketResourceManagerInterface> CreateSocketResourceManager() |
25 override; | 25 override; |
26 | 26 |
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 ~SocketsUdpSetBroadcastFunction() override; | 284 ~SocketsUdpSetBroadcastFunction() override; |
285 | 285 |
286 // AsyncApiFunction | 286 // AsyncApiFunction |
287 bool Prepare() override; | 287 bool Prepare() override; |
288 void Work() override; | 288 void Work() override; |
289 | 289 |
290 private: | 290 private: |
291 scoped_ptr<sockets_udp::SetBroadcast::Params> params_; | 291 scoped_ptr<sockets_udp::SetBroadcast::Params> params_; |
292 }; | 292 }; |
293 | 293 |
294 } // namespace core_api | 294 } // namespace api |
295 } // namespace extensions | 295 } // namespace extensions |
296 | 296 |
297 #endif // EXTENSIONS_BROWSER_API_SOCKETS_UDP_SOCKETS_UDP_API_H_ | 297 #endif // EXTENSIONS_BROWSER_API_SOCKETS_UDP_SOCKETS_UDP_API_H_ |
OLD | NEW |