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 #ifndef CHROME_BROWSER_EXTENSIONS_API_SOCKETS_UDP_UDP_SOCKET_EVENT_DISPATCHER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_SOCKETS_UDP_UDP_SOCKET_EVENT_DISPATCHER_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_API_SOCKETS_UDP_UDP_SOCKET_EVENT_DISPATCHER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_SOCKETS_UDP_UDP_SOCKET_EVENT_DISPATCHER_H_ |
7 | 7 |
8 #include "chrome/browser/extensions/api/api_resource_manager.h" | 8 #include "chrome/browser/extensions/api/api_resource_manager.h" |
9 #include "chrome/browser/extensions/api/sockets_udp/sockets_udp_api.h" | 9 #include "chrome/browser/extensions/api/sockets_udp/sockets_udp_api.h" |
10 | 10 |
| 11 class Profile; |
| 12 |
11 namespace extensions { | 13 namespace extensions { |
12 struct Event; | 14 struct Event; |
13 class ResumableUDPSocket; | 15 class ResumableUDPSocket; |
14 } | 16 } |
15 | 17 |
16 namespace extensions { | 18 namespace extensions { |
17 namespace api { | 19 namespace api { |
18 | 20 |
19 // Dispatch events related to "sockets.udp" sockets from callback on native | 21 // Dispatch events related to "sockets.udp" sockets from callback on native |
20 // socket instances. There is one instance per profile. | 22 // socket instances. There is one instance per profile. |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 // Usually IO thread (except for unit testing). | 83 // Usually IO thread (except for unit testing). |
82 content::BrowserThread::ID thread_id_; | 84 content::BrowserThread::ID thread_id_; |
83 Profile* const profile_; | 85 Profile* const profile_; |
84 scoped_refptr<SocketData> sockets_; | 86 scoped_refptr<SocketData> sockets_; |
85 }; | 87 }; |
86 | 88 |
87 } // namespace api | 89 } // namespace api |
88 } // namespace extensions | 90 } // namespace extensions |
89 | 91 |
90 #endif // CHROME_BROWSER_EXTENSIONS_API_SOCKETS_UDP_UDP_SOCKET_EVENT_DISPATCHER
_H_ | 92 #endif // CHROME_BROWSER_EXTENSIONS_API_SOCKETS_UDP_UDP_SOCKET_EVENT_DISPATCHER
_H_ |
OLD | NEW |