Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(152)

Side by Side Diff: gin/modules/module_runner_delegate.h

Issue 401723002: Mojo: Log an error when we fail to find a JS module. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698