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_DISPATCHER_H_ | 5 #ifndef CHROME_RENDERER_EXTENSIONS_DISPATCHER_H_ |
6 #define CHROME_RENDERER_EXTENSIONS_DISPATCHER_H_ | 6 #define CHROME_RENDERER_EXTENSIONS_DISPATCHER_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 // Cache for the v8 representation of extension API schemas. | 249 // Cache for the v8 representation of extension API schemas. |
250 V8SchemaRegistry v8_schema_registry_; | 250 V8SchemaRegistry v8_schema_registry_; |
251 | 251 |
252 // Bindings that are defined lazily and have BindingInstallers to install | 252 // Bindings that are defined lazily and have BindingInstallers to install |
253 // them. | 253 // them. |
254 std::map<std::string, BindingInstaller> lazy_bindings_map_; | 254 std::map<std::string, BindingInstaller> lazy_bindings_map_; |
255 | 255 |
256 // Sends API requests to the extension host. | 256 // Sends API requests to the extension host. |
257 scoped_ptr<RequestSender> request_sender_; | 257 scoped_ptr<RequestSender> request_sender_; |
258 | 258 |
259 // The current channel. From VersionInfo::GetChannel(). | |
260 // TODO(aa): Remove when we can restrict non-permission APIs to dev-only. | |
261 int chrome_channel_; | |
262 | |
263 DISALLOW_COPY_AND_ASSIGN(Dispatcher); | 259 DISALLOW_COPY_AND_ASSIGN(Dispatcher); |
264 }; | 260 }; |
265 | 261 |
266 } // namespace extensions | 262 } // namespace extensions |
267 | 263 |
268 #endif // CHROME_RENDERER_EXTENSIONS_DISPATCHER_H_ | 264 #endif // CHROME_RENDERER_EXTENSIONS_DISPATCHER_H_ |
OLD | NEW |