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

Unified Diff: extensions/renderer/binding_generating_native_handler.h

Issue 1192763002: extensions: Use V8 Maybe APIs in NativeHandler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | extensions/renderer/binding_generating_native_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/binding_generating_native_handler.h
diff --git a/extensions/renderer/binding_generating_native_handler.h b/extensions/renderer/binding_generating_native_handler.h
index 9a8883347a8efa96c875b6667c16fb1d549d3cc3..d4e4b0aa722e030e7869d8b80858a5fa2f2d3bd3 100644
--- a/extensions/renderer/binding_generating_native_handler.h
+++ b/extensions/renderer/binding_generating_native_handler.h
@@ -12,7 +12,7 @@
namespace extensions {
-class ModuleSystem;
+class ScriptContext;
// Generates API bindings based on the JSON/IDL schemas. This is done by
// creating a |Binding| (from binding.js) for the schema and generating the
@@ -21,14 +21,14 @@ class BindingGeneratingNativeHandler : public NativeHandler {
public:
// Generates binding for |api_name|, and sets the |bind_to| property on the
// Object returned by |NewInstance| to the generated binding.
- BindingGeneratingNativeHandler(ModuleSystem* module_system,
+ BindingGeneratingNativeHandler(ScriptContext* context,
const std::string& api_name,
const std::string& bind_to);
v8::Local<v8::Object> NewInstance() override;
private:
- ModuleSystem* module_system_;
+ ScriptContext* context_;
std::string api_name_;
std::string bind_to_;
};
« no previous file with comments | « no previous file | extensions/renderer/binding_generating_native_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698