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

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: Epic master rebase 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 4fecfef92b9a770aa7aec77235d5bb02410873d8..af2ec57f048e5900695d21da13e362c3cb96ffa4 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;
@@ -101,6 +102,10 @@ class ScriptExecutor {
const ExecuteScriptCallback& callback);
private:
+ // Called upon a request being given to execute the script.
+ void ExecuteScriptHelper(scoped_ptr<ExtensionMsg_ExecuteCode_Params> params,
+ const ExecuteScriptCallback& callback);
+
// The next value to use for request_id in ExtensionMsg_ExecuteCode_Params.
int next_request_id_;
« no previous file with comments | « chrome/browser/extensions/active_script_controller_browsertest.cc ('k') | chrome/browser/extensions/script_executor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698