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

Unified Diff: chrome/renderer/extensions/dispatcher.h

Issue 19045002: Use Blink support to watch CSS selectors directly instead of using a MutationObserver. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Initial Created 7 years, 3 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/renderer/extensions/dispatcher.h
diff --git a/chrome/renderer/extensions/dispatcher.h b/chrome/renderer/extensions/dispatcher.h
index 180007651177f1496c4acef55e6a62cee93379bf..50b54605daae0ab31e9c0f72b299e564e8361579 100644
--- a/chrome/renderer/extensions/dispatcher.h
+++ b/chrome/renderer/extensions/dispatcher.h
@@ -20,6 +20,8 @@
#include "content/public/renderer/render_process_observer.h"
#include "extensions/common/event_filter.h"
#include "extensions/common/features/feature.h"
+#include "third_party/WebKit/public/platform/WebString.h"
+#include "third_party/WebKit/public/platform/WebVector.h"
#include "v8/include/v8.h"
class ChromeRenderViewTest;
@@ -97,6 +99,11 @@ class Dispatcher : public content::RenderProcessObserver {
void DidCreateDocumentElement(WebKit::WebFrame* frame);
+ void DidMatchCSS(
+ WebKit::WebFrame* frame,
+ const WebKit::WebVector<WebKit::WebString>& newlyMatchingSelectors,
+ const WebKit::WebVector<WebKit::WebString>& stoppedMatchingSelectors);
+
// TODO(mpcomplete): remove. http://crbug.com/100411
bool IsAdblockWithWebRequestInstalled() const {
return webrequest_adblock_;

Powered by Google App Engine
This is Rietveld 408576698