| 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 |
| 249 // The delegate for this dispatcher. Not owned, but must extend beyond the | 252 // The delegate for this dispatcher. Not owned, but must extend beyond the |
| 250 // Dispatcher's own lifetime. | 253 // Dispatcher's own lifetime. |
| 251 DispatcherDelegate* delegate_; | 254 DispatcherDelegate* delegate_; |
| 252 | 255 |
| 253 // True if the IdleNotification timer should be set. | 256 // True if the IdleNotification timer should be set. |
| 254 bool set_idle_notifications_; | 257 bool set_idle_notifications_; |
| 255 | 258 |
| 256 // The IDs of extensions that failed to load, mapped to the error message | 259 // The IDs of extensions that failed to load, mapped to the error message |
| 257 // generated on failure. | 260 // generated on failure. |
| 258 std::map<std::string, std::string> extension_load_errors_; | 261 std::map<std::string, std::string> extension_load_errors_; |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 // if this renderer is a WebView guest render process. Otherwise, this will be | 307 // if this renderer is a WebView guest render process. Otherwise, this will be |
| 305 // empty. | 308 // empty. |
| 306 std::string webview_partition_id_; | 309 std::string webview_partition_id_; |
| 307 | 310 |
| 308 DISALLOW_COPY_AND_ASSIGN(Dispatcher); | 311 DISALLOW_COPY_AND_ASSIGN(Dispatcher); |
| 309 }; | 312 }; |
| 310 | 313 |
| 311 } // namespace extensions | 314 } // namespace extensions |
| 312 | 315 |
| 313 #endif // EXTENSIONS_RENDERER_DISPATCHER_H_ | 316 #endif // EXTENSIONS_RENDERER_DISPATCHER_H_ |
| OLD | NEW |