OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 EXTENSIONS_RENDERER_DISPATCHER_H_ | 5 #ifndef EXTENSIONS_RENDERER_DISPATCHER_H_ |
6 #define EXTENSIONS_RENDERER_DISPATCHER_H_ | 6 #define EXTENSIONS_RENDERER_DISPATCHER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 | 239 |
240 v8::Local<v8::Object> GetOrCreateBindObjectIfAvailable( | 240 v8::Local<v8::Object> GetOrCreateBindObjectIfAvailable( |
241 const std::string& api_name, | 241 const std::string& api_name, |
242 std::string* bind_name, | 242 std::string* bind_name, |
243 ScriptContext* context); | 243 ScriptContext* context); |
244 | 244 |
245 // Requires the GuestView modules in the module system of the ScriptContext | 245 // Requires the GuestView modules in the module system of the ScriptContext |
246 // |context|. | 246 // |context|. |
247 void RequireGuestViewModules(ScriptContext* context); | 247 void RequireGuestViewModules(ScriptContext* context); |
248 | 248 |
249 // Adds features that are specific to the current channel. | |
250 void AddChannelSpecificFeatures(); | |
251 | |
252 // The delegate for this dispatcher. Not owned, but must extend beyond the | 249 // The delegate for this dispatcher. Not owned, but must extend beyond the |
253 // Dispatcher's own lifetime. | 250 // Dispatcher's own lifetime. |
254 DispatcherDelegate* delegate_; | 251 DispatcherDelegate* delegate_; |
255 | 252 |
256 // True if the IdleNotification timer should be set. | 253 // True if the IdleNotification timer should be set. |
257 bool set_idle_notifications_; | 254 bool set_idle_notifications_; |
258 | 255 |
259 // The IDs of extensions that failed to load, mapped to the error message | 256 // The IDs of extensions that failed to load, mapped to the error message |
260 // generated on failure. | 257 // generated on failure. |
261 std::map<std::string, std::string> extension_load_errors_; | 258 std::map<std::string, std::string> extension_load_errors_; |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 // if this renderer is a WebView guest render process. Otherwise, this will be | 304 // if this renderer is a WebView guest render process. Otherwise, this will be |
308 // empty. | 305 // empty. |
309 std::string webview_partition_id_; | 306 std::string webview_partition_id_; |
310 | 307 |
311 DISALLOW_COPY_AND_ASSIGN(Dispatcher); | 308 DISALLOW_COPY_AND_ASSIGN(Dispatcher); |
312 }; | 309 }; |
313 | 310 |
314 } // namespace extensions | 311 } // namespace extensions |
315 | 312 |
316 #endif // EXTENSIONS_RENDERER_DISPATCHER_H_ | 313 #endif // EXTENSIONS_RENDERER_DISPATCHER_H_ |
OLD | NEW |