| Index: gin/modules/module_runner_delegate.h
|
| diff --git a/gin/modules/module_runner_delegate.h b/gin/modules/module_runner_delegate.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..f16596ea5d3266f834ed572d5c64c58f0d21ea01
|
| --- /dev/null
|
| +++ b/gin/modules/module_runner_delegate.h
|
| @@ -0,0 +1,33 @@
|
| +// Copyright 2013 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef GIN_MODULES_MODULE_RUNNER_DELEGATE_H_
|
| +#define GIN_MODULES_MODULE_RUNNER_DELEGATE_H_
|
| +
|
| +#include "base/compiler_specific.h"
|
| +#include "gin/modules/file_module_provider.h"
|
| +#include "gin/runner.h"
|
| +
|
| +namespace gin {
|
| +
|
| +class ModuleRunnerDelegate : public RunnerDelegate {
|
| + public:
|
| + explicit ModuleRunnerDelegate(const base::FilePath& module_base);
|
| + virtual ~ModuleRunnerDelegate();
|
| +
|
| + private:
|
| + // From RunnerDelegate:
|
| + virtual v8::Handle<v8::ObjectTemplate> GetGlobalTemplate(
|
| + Runner* runner) OVERRIDE;
|
| + virtual void DidRunScript(Runner* runner,
|
| + v8::Handle<v8::Script> script) OVERRIDE;
|
| +
|
| + FileModuleProvider module_provider_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(ModuleRunnerDelegate);
|
| +};
|
| +
|
| +} // namespace gin
|
| +
|
| +#endif // GIN_MODULES_MODULE_RUNNER_DELEGATE_H_
|
|
|