OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 GIN_MODULES_MODULE_RUNNER_DELEGATE_H_ | 5 #ifndef GIN_MODULES_MODULE_RUNNER_DELEGATE_H_ |
6 #define GIN_MODULES_MODULE_RUNNER_DELEGATE_H_ | 6 #define GIN_MODULES_MODULE_RUNNER_DELEGATE_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 22 matching lines...) Expand all Loading... |
33 private: | 33 private: |
34 typedef std::map<std::string, ModuleGetter> BuiltinModuleMap; | 34 typedef std::map<std::string, ModuleGetter> BuiltinModuleMap; |
35 | 35 |
36 // From ShellRunnerDelegate: | 36 // From ShellRunnerDelegate: |
37 virtual v8::Handle<v8::ObjectTemplate> GetGlobalTemplate( | 37 virtual v8::Handle<v8::ObjectTemplate> GetGlobalTemplate( |
38 ShellRunner* runner, | 38 ShellRunner* runner, |
39 v8::Isolate* isolate) OVERRIDE; | 39 v8::Isolate* isolate) OVERRIDE; |
40 virtual void DidCreateContext(ShellRunner* runner) OVERRIDE; | 40 virtual void DidCreateContext(ShellRunner* runner) OVERRIDE; |
41 virtual void DidRunScript(ShellRunner* runner) OVERRIDE; | 41 virtual void DidRunScript(ShellRunner* runner) OVERRIDE; |
42 | 42 |
| 43 // Callback for when module_provider_ finishes reading from disk. |
| 44 void DidLoadFileModules(const std::set<std::string>& loaded_modules); |
| 45 |
43 BuiltinModuleMap builtin_modules_; | 46 BuiltinModuleMap builtin_modules_; |
44 FileModuleProvider module_provider_; | 47 FileModuleProvider module_provider_; |
| 48 std::set<std::string> unsatisfied_dependencies_; |
45 | 49 |
46 DISALLOW_COPY_AND_ASSIGN(ModuleRunnerDelegate); | 50 DISALLOW_COPY_AND_ASSIGN(ModuleRunnerDelegate); |
47 }; | 51 }; |
48 | 52 |
49 } // namespace gin | 53 } // namespace gin |
50 | 54 |
51 #endif // GIN_MODULES_MODULE_RUNNER_DELEGATE_H_ | 55 #endif // GIN_MODULES_MODULE_RUNNER_DELEGATE_H_ |
OLD | NEW |