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

Unified Diff: extensions/renderer/script_injection.h

Issue 2633253002: Split content script injections into multiple tasks (Closed)
Patch Set: Inject document_idle scripts before window.onload Created 3 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
Index: extensions/renderer/script_injection.h
diff --git a/extensions/renderer/script_injection.h b/extensions/renderer/script_injection.h
index e5cd8ac5434061c83b503d75e8af5122ce9df21f..8d57dd4c8812484d43d632bb01f9cc23ced0587e 100644
--- a/extensions/renderer/script_injection.h
+++ b/extensions/renderer/script_injection.h
@@ -84,6 +84,10 @@ class ScriptInjection {
const HostID& host_id() const { return injection_host_->id(); }
int64_t request_id() const { return request_id_; }
+ // Called when JS injection for the given frame has been completed.
+ void OnJsInjectionCompleted(const std::vector<v8::Local<v8::Value>>& results,
+ base::TimeDelta elapsed);
+
private:
class FrameWatcher;
@@ -98,9 +102,6 @@ class ScriptInjection {
void InjectJs(std::set<std::string>* executing_scripts,
size_t* num_injected_js_scripts);
- // Called when JS injection for the given frame has been completed.
- void OnJsInjectionCompleted(const std::vector<v8::Local<v8::Value>>& results);
-
// Inject any CSS source into the frame for the injection.
void InjectCss(std::set<std::string>* injected_stylesheets,
size_t* num_injected_stylesheets);

Powered by Google App Engine
This is Rietveld 408576698