| 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 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 // exist. | 255 // exist. |
| 256 v8::Handle<v8::Object> GetOrCreateObject(const v8::Handle<v8::Object>& object, | 256 v8::Handle<v8::Object> GetOrCreateObject(const v8::Handle<v8::Object>& object, |
| 257 const std::string& field, | 257 const std::string& field, |
| 258 v8::Isolate* isolate); | 258 v8::Isolate* isolate); |
| 259 | 259 |
| 260 v8::Handle<v8::Object> GetOrCreateBindObjectIfAvailable( | 260 v8::Handle<v8::Object> GetOrCreateBindObjectIfAvailable( |
| 261 const std::string& api_name, | 261 const std::string& api_name, |
| 262 std::string* bind_name, | 262 std::string* bind_name, |
| 263 ScriptContext* context); | 263 ScriptContext* context); |
| 264 | 264 |
| 265 // Requires the GuestView modules in the module system of the ScriptContext |
| 266 // |context|. |
| 267 void RequireGuestViewModules(ScriptContext* context); |
| 268 |
| 265 // The delegate for this dispatcher. Not owned, but must extend beyond the | 269 // The delegate for this dispatcher. Not owned, but must extend beyond the |
| 266 // Dispatcher's own lifetime. | 270 // Dispatcher's own lifetime. |
| 267 DispatcherDelegate* delegate_; | 271 DispatcherDelegate* delegate_; |
| 268 | 272 |
| 269 // True if the IdleNotification timer should be set. | 273 // True if the IdleNotification timer should be set. |
| 270 bool set_idle_notifications_; | 274 bool set_idle_notifications_; |
| 271 | 275 |
| 272 // Contains all loaded extensions. This is essentially the renderer | 276 // Contains all loaded extensions. This is essentially the renderer |
| 273 // counterpart to ExtensionService in the browser. It contains information | 277 // counterpart to ExtensionService in the browser. It contains information |
| 274 // about all extensions currently loaded by the browser. | 278 // about all extensions currently loaded by the browser. |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 323 | 327 |
| 324 // Status of webrequest usage. | 328 // Status of webrequest usage. |
| 325 bool webrequest_used_; | 329 bool webrequest_used_; |
| 326 | 330 |
| 327 DISALLOW_COPY_AND_ASSIGN(Dispatcher); | 331 DISALLOW_COPY_AND_ASSIGN(Dispatcher); |
| 328 }; | 332 }; |
| 329 | 333 |
| 330 } // namespace extensions | 334 } // namespace extensions |
| 331 | 335 |
| 332 #endif // EXTENSIONS_RENDERER_DISPATCHER_H_ | 336 #endif // EXTENSIONS_RENDERER_DISPATCHER_H_ |
| OLD | NEW |