summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/script_executor.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/extensions/script_executor.h')
-rw-r--r--chrome/browser/extensions/script_executor.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/chrome/browser/extensions/script_executor.h b/chrome/browser/extensions/script_executor.h
index 2119cc6..93c423e 100644
--- a/chrome/browser/extensions/script_executor.h
+++ b/chrome/browser/extensions/script_executor.h
@@ -11,6 +11,10 @@
#include "base/callback_forward.h"
#include "chrome/common/extensions/user_script.h"
+namespace base {
+ class ListValue;
+}
+
namespace content {
class WebContents;
}
@@ -42,9 +46,10 @@ class ScriptExecutor {
ISOLATED_WORLD,
};
- // Callback from ExecuteScript. The arguments are (success, page_id, error).
- // page_id is only valid on success, error is only valid on !success.
- typedef base::Callback<void(bool, int32, const std::string&)>
+ // Callback from ExecuteScript. The arguments are (success, page_id, error,
+ // result). page_id is only valid on success, error is only valid on !success.
+ typedef base::Callback<void(bool, int32, const std::string&,
+ const base::ListValue&)>
ExecuteScriptCallback;
// Executes a script. The arguments match ExtensionMsg_ExecuteCode_Params in