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