OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
145 | 145 |
146 scoped_ptr<UserScriptSlave> user_script_slave_; | 146 scoped_ptr<UserScriptSlave> user_script_slave_; |
147 | 147 |
148 // Same as above, but on a longer timer and will run even if the process is | 148 // Same as above, but on a longer timer and will run even if the process is |
149 // not idle, to ensure that IdleHandle gets called eventually. | 149 // not idle, to ensure that IdleHandle gets called eventually. |
150 base::RepeatingTimer<content::RenderThread> forced_idle_timer_; | 150 base::RepeatingTimer<content::RenderThread> forced_idle_timer_; |
151 | 151 |
152 // The v8 extensions which are restricted to extension-related contexts. | 152 // The v8 extensions which are restricted to extension-related contexts. |
153 std::set<std::string> restricted_v8_extensions_; | 153 std::set<std::string> restricted_v8_extensions_; |
154 | 154 |
155 // All declared function names from extension_api.json. | 155 // All declared function names from api/. |
Aaron Boodman
2011/12/07 23:30:35
Can remove " from api/"
koz (OOO until 15th September)
2011/12/09 19:24:18
Done.
| |
156 std::set<std::string> function_names_; | 156 std::set<std::string> function_names_; |
157 | 157 |
158 // The extensions that are active in this process. | 158 // The extensions that are active in this process. |
159 std::set<std::string> active_extension_ids_; | 159 std::set<std::string> active_extension_ids_; |
160 | 160 |
161 // The applications that are active in this process. | 161 // The applications that are active in this process. |
162 std::set<std::string> active_application_ids_; | 162 std::set<std::string> active_application_ids_; |
163 | 163 |
164 // True once WebKit has been initialized (and it is therefore safe to poke). | 164 // True once WebKit has been initialized (and it is therefore safe to poke). |
165 bool is_webkit_initialized_; | 165 bool is_webkit_initialized_; |
166 | 166 |
167 std::string test_extension_id_; | 167 std::string test_extension_id_; |
168 | 168 |
169 // Status of webrequest usage for known extensions. | 169 // Status of webrequest usage for known extensions. |
170 // TODO(mpcomplete): remove. http://crbug.com/100411 | 170 // TODO(mpcomplete): remove. http://crbug.com/100411 |
171 bool webrequest_adblock_; | 171 bool webrequest_adblock_; |
172 bool webrequest_adblock_plus_; | 172 bool webrequest_adblock_plus_; |
173 bool webrequest_other_; | 173 bool webrequest_other_; |
174 | 174 |
175 DISALLOW_COPY_AND_ASSIGN(ExtensionDispatcher); | 175 DISALLOW_COPY_AND_ASSIGN(ExtensionDispatcher); |
176 }; | 176 }; |
177 | 177 |
178 #endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_DISPATCHER_H_ | 178 #endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_DISPATCHER_H_ |
OLD | NEW |