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 <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 // All the bindings contexts that are currently loaded for this renderer. | 272 // All the bindings contexts that are currently loaded for this renderer. |
273 // There is zero or one for each v8 context. | 273 // There is zero or one for each v8 context. |
274 ChromeV8ContextSet v8_context_set_; | 274 ChromeV8ContextSet v8_context_set_; |
275 | 275 |
276 scoped_ptr<UserScriptSlave> user_script_slave_; | 276 scoped_ptr<UserScriptSlave> user_script_slave_; |
277 | 277 |
278 scoped_ptr<ContentWatcher> content_watcher_; | 278 scoped_ptr<ContentWatcher> content_watcher_; |
279 | 279 |
280 // Same as above, but on a longer timer and will run even if the process is | 280 // Same as above, but on a longer timer and will run even if the process is |
281 // not idle, to ensure that IdleHandle gets called eventually. | 281 // not idle, to ensure that IdleHandle gets called eventually. |
282 base::RepeatingTimer<content::RenderThread> forced_idle_timer_; | 282 scoped_ptr<base::RepeatingTimer<content::RenderThread> > forced_idle_timer_; |
283 | 283 |
284 // All declared function names. | 284 // All declared function names. |
285 std::set<std::string> function_names_; | 285 std::set<std::string> function_names_; |
286 | 286 |
287 // The extensions and apps that are active in this process. | 287 // The extensions and apps that are active in this process. |
288 std::set<std::string> active_extension_ids_; | 288 std::set<std::string> active_extension_ids_; |
289 | 289 |
290 // True once WebKit has been initialized (and it is therefore safe to poke). | 290 // True once WebKit has been initialized (and it is therefore safe to poke). |
291 bool is_webkit_initialized_; | 291 bool is_webkit_initialized_; |
292 | 292 |
(...skipping 21 matching lines...) Expand all Loading... |
314 | 314 |
315 // Mapping of port IDs to tabs. If there is no tab, the value would be -1. | 315 // Mapping of port IDs to tabs. If there is no tab, the value would be -1. |
316 std::map<int, int> port_to_tab_id_map_; | 316 std::map<int, int> port_to_tab_id_map_; |
317 | 317 |
318 DISALLOW_COPY_AND_ASSIGN(Dispatcher); | 318 DISALLOW_COPY_AND_ASSIGN(Dispatcher); |
319 }; | 319 }; |
320 | 320 |
321 } // namespace extensions | 321 } // namespace extensions |
322 | 322 |
323 #endif // CHROME_RENDERER_EXTENSIONS_DISPATCHER_H_ | 323 #endif // CHROME_RENDERER_EXTENSIONS_DISPATCHER_H_ |
OLD | NEW |