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

Unified Diff: chrome/browser/extensions/script_executor.h

Issue 286003004: Block tabs.executeScript() from executing until user grants permission (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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
Index: chrome/browser/extensions/script_executor.h
diff --git a/chrome/browser/extensions/script_executor.h b/chrome/browser/extensions/script_executor.h
index c4d1567b21583fea40fa296c473cdca6e04c50ca..219a09c4a5a99510d0a43eb5272648877ad99229 100644
--- a/chrome/browser/extensions/script_executor.h
+++ b/chrome/browser/extensions/script_executor.h
@@ -13,6 +13,7 @@
#include "extensions/common/user_script.h"
class GURL;
+struct ExtensionMsg_ExecuteCode_Params;
namespace base {
class ListValue;
@@ -93,6 +94,10 @@ class ScriptExecutor {
const ExecuteScriptCallback& callback);
private:
+ // A helper function, called upon request being given to execute the script.
not at google - send to devlin 2014/05/15 00:12:36 s/A helper function, c/C/
Devlin 2014/05/15 17:45:59 Done.
+ void ExecuteScriptHelper(const ExtensionMsg_ExecuteCode_Params& params,
+ const ExecuteScriptCallback& callback);
+
// The next value to use for request_id in ExtensionMsg_ExecuteCode_Params.
int next_request_id_;

Powered by Google App Engine
This is Rietveld 408576698