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

Unified Diff: extensions/renderer/module_system.h

Issue 2556153002: [Extensions] Convert more callers of CallModuleMethod (Closed)
Patch Set: revert doc change Created 4 years 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 | « extensions/renderer/api_test_base.cc ('k') | extensions/renderer/module_system.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/module_system.h
diff --git a/extensions/renderer/module_system.h b/extensions/renderer/module_system.h
index 9d7dbd27503519fd2b7e22d674a5f99980544abe..75f581970059b913b14e44bf077189e2f9cb8d89 100644
--- a/extensions/renderer/module_system.h
+++ b/extensions/renderer/module_system.h
@@ -16,6 +16,7 @@
#include "base/macros.h"
#include "extensions/renderer/native_handler.h"
#include "extensions/renderer/object_backed_native_handler.h"
+#include "extensions/renderer/script_injection_callback.h"
#include "gin/modules/module_registry_observer.h"
#include "v8/include/v8.h"
@@ -86,9 +87,6 @@ class ModuleSystem : public ObjectBackedNativeHandler,
// equivalent to calling require('module_name').method_name() from JS.
// DEPRECATED: see crbug.com/629431
// TODO(devlin): Remove these.
- v8::Local<v8::Value> CallModuleMethod(
- const std::string& module_name,
- const std::string& method_name);
v8::Local<v8::Value> CallModuleMethod(const std::string& module_name,
const std::string& method_name,
int argc,
@@ -104,6 +102,12 @@ class ModuleSystem : public ObjectBackedNativeHandler,
const std::string& method_name,
int argc,
v8::Local<v8::Value> argv[]);
+ void CallModuleMethodSafe(
+ const std::string& module_name,
+ const std::string& method_name,
+ int argc,
+ v8::Local<v8::Value> argv[],
+ const ScriptInjectionCallback::CompleteCallback& callback);
// Register |native_handler| as a potential target for requireNative(), so
// calls to requireNative(|name|) from JS will return a new object created by
« no previous file with comments | « extensions/renderer/api_test_base.cc ('k') | extensions/renderer/module_system.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698