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

Unified Diff: extensions/renderer/script_injection.h

Issue 922403002: [Extensions] Adjust script injection reporting to the browser side (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 | « extensions/renderer/injection_host.h ('k') | extensions/renderer/script_injection.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/script_injection.h
diff --git a/extensions/renderer/script_injection.h b/extensions/renderer/script_injection.h
index d28780f520567de1ed894dfa9e74b01107b9e02a..a8835457d95312b220ded68cba089261eb05e745 100644
--- a/extensions/renderer/script_injection.h
+++ b/extensions/renderer/script_injection.h
@@ -57,8 +57,9 @@ class ScriptInjection {
int64 request_id() const { return request_id_; }
private:
- // Send a message to the browser requesting permission to execute.
- void RequestPermission();
+ // Sends a message to the browser, either that the script injection would
+ // like to inject, or to notify the browser that it is currently injecting.
+ void SendInjectionMessage(bool request_permission);
// Injects the script, optionally populating |scripts_run_info|.
void Inject(const InjectionHost* injection_host,
« no previous file with comments | « extensions/renderer/injection_host.h ('k') | extensions/renderer/script_injection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698