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

Unified Diff: headless/lib/browser/domain_h.template

Issue 2476723002: headless: Register event handlers on demand (Closed)
Patch Set: Created 4 years, 1 month 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 | « headless/lib/browser/domain_cc.template ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: headless/lib/browser/domain_h.template
diff --git a/headless/lib/browser/domain_h.template b/headless/lib/browser/domain_h.template
index 2d146a70b52e34dec2ab6204c39660ee19507539..73ee9fefda5c4a1fddb146a385f023b622da36de 100644
--- a/headless/lib/browser/domain_h.template
+++ b/headless/lib/browser/domain_h.template
@@ -120,7 +120,16 @@ class HEADLESS_EXPORT Domain {
base::ObserverList<ExperimentalObserver> observers_;
{% endif %}
+ {% if "events" in domain %}
+ protected:
+ void RegisterEventHandlersIfNeeded();
+
+ {% endif %}
private:
+ {% if "events" in domain %}
+ bool event_handlers_registered_ = false;
+
+ {% endif %}
DISALLOW_COPY_AND_ASSIGN(Domain);
};
« no previous file with comments | « headless/lib/browser/domain_cc.template ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698