| 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_TCP_TCP_SOCKET_EVENT_DISPATCHER_H_ | 5 #ifndef EXTENSIONS_BROWSER_API_SOCKETS_TCP_TCP_SOCKET_EVENT_DISPATCHER_H_ |
| 6 #define EXTENSIONS_BROWSER_API_SOCKETS_TCP_TCP_SOCKET_EVENT_DISPATCHER_H_ | 6 #define EXTENSIONS_BROWSER_API_SOCKETS_TCP_TCP_SOCKET_EVENT_DISPATCHER_H_ |
| 7 | 7 |
| 8 #include <string> |
| 9 |
| 8 #include "extensions/browser/api/api_resource_manager.h" | 10 #include "extensions/browser/api/api_resource_manager.h" |
| 9 #include "extensions/browser/api/sockets_tcp/sockets_tcp_api.h" | 11 #include "extensions/browser/api/sockets_tcp/sockets_tcp_api.h" |
| 10 | 12 |
| 11 namespace content { | 13 namespace content { |
| 12 class BrowserContext; | 14 class BrowserContext; |
| 13 } | 15 } |
| 14 | 16 |
| 15 namespace extensions { | 17 namespace extensions { |
| 16 struct Event; | 18 struct Event; |
| 17 class ResumableTCPSocket; | 19 class ResumableTCPSocket; |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 // Usually IO thread (except for unit testing). | 87 // Usually IO thread (except for unit testing). |
| 86 content::BrowserThread::ID thread_id_; | 88 content::BrowserThread::ID thread_id_; |
| 87 content::BrowserContext* const browser_context_; | 89 content::BrowserContext* const browser_context_; |
| 88 scoped_refptr<SocketData> sockets_; | 90 scoped_refptr<SocketData> sockets_; |
| 89 }; | 91 }; |
| 90 | 92 |
| 91 } // namespace core_api | 93 } // namespace core_api |
| 92 } // namespace extensions | 94 } // namespace extensions |
| 93 | 95 |
| 94 #endif // EXTENSIONS_BROWSER_API_SOCKETS_TCP_TCP_SOCKET_EVENT_DISPATCHER_H_ | 96 #endif // EXTENSIONS_BROWSER_API_SOCKETS_TCP_TCP_SOCKET_EVENT_DISPATCHER_H_ |
| OLD | NEW |