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_SERIAL_SERIAL_EVENT_DISPATCHER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_SERIAL_SERIAL_EVENT_DISPATCHER_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_API_SERIAL_SERIAL_EVENT_DISPATCHER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_SERIAL_SERIAL_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/common/extensions/api/serial.h" | 9 #include "chrome/common/extensions/api/serial.h" |
10 | 10 |
| 11 class Profile; |
| 12 |
11 namespace extensions { | 13 namespace extensions { |
12 | 14 |
13 struct Event; | 15 struct Event; |
14 class SerialConnection; | 16 class SerialConnection; |
15 | 17 |
16 namespace api { | 18 namespace api { |
17 | 19 |
18 // Per-profile dispatcher for events on serial connections. | 20 // Per-profile dispatcher for events on serial connections. |
19 class SerialEventDispatcher : public ProfileKeyedAPI { | 21 class SerialEventDispatcher : public ProfileKeyedAPI { |
20 public: | 22 public: |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 content::BrowserThread::ID thread_id_; | 69 content::BrowserThread::ID thread_id_; |
68 Profile* const profile_; | 70 Profile* const profile_; |
69 scoped_refptr<ConnectionData> connections_; | 71 scoped_refptr<ConnectionData> connections_; |
70 }; | 72 }; |
71 | 73 |
72 } // namespace api | 74 } // namespace api |
73 | 75 |
74 } // namespace extensions | 76 } // namespace extensions |
75 | 77 |
76 #endif // CHROME_BROWSER_EXTENSIONS_API_SERIAL_SERIAL_EVENT_DISPATCHER_H_ | 78 #endif // CHROME_BROWSER_EXTENSIONS_API_SERIAL_SERIAL_EVENT_DISPATCHER_H_ |
OLD | NEW |