OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_RENDERER_EXTENSIONS_EXTENSION_DISPATCHER_H_ | 5 #ifndef CHROME_RENDERER_EXTENSIONS_EXTENSION_DISPATCHER_H_ |
6 #define CHROME_RENDERER_EXTENSIONS_EXTENSION_DISPATCHER_H_ | 6 #define CHROME_RENDERER_EXTENSIONS_EXTENSION_DISPATCHER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 // them. | 256 // them. |
257 std::map<std::string, BindingInstaller> lazy_bindings_map_; | 257 std::map<std::string, BindingInstaller> lazy_bindings_map_; |
258 | 258 |
259 // Sends API requests to the extension host. | 259 // Sends API requests to the extension host. |
260 scoped_ptr<ExtensionRequestSender> request_sender_; | 260 scoped_ptr<ExtensionRequestSender> request_sender_; |
261 | 261 |
262 // The current channel. From VersionInfo::GetChannel(). | 262 // The current channel. From VersionInfo::GetChannel(). |
263 // TODO(aa): Remove when we can restrict non-permission APIs to dev-only. | 263 // TODO(aa): Remove when we can restrict non-permission APIs to dev-only. |
264 int chrome_channel_; | 264 int chrome_channel_; |
265 | 265 |
| 266 // Routes events to the appropriate listener taking into consideration event |
| 267 // filters. |
| 268 scoped_ptr<extensions::EventFilter> event_filter_; |
| 269 |
266 DISALLOW_COPY_AND_ASSIGN(ExtensionDispatcher); | 270 DISALLOW_COPY_AND_ASSIGN(ExtensionDispatcher); |
267 }; | 271 }; |
268 | 272 |
269 #endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_DISPATCHER_H_ | 273 #endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_DISPATCHER_H_ |
OLD | NEW |