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

Unified Diff: chrome/browser/extensions/tab_helper.h

Issue 1166393002: Reland "Encapsulate CSS selector declarative content condition tracking" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: crash fixes and tests Created 5 years, 6 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/tab_helper.h
diff --git a/chrome/browser/extensions/tab_helper.h b/chrome/browser/extensions/tab_helper.h
index 4608a064514dc6e9094109b2b5d87fb024d1c0f3..48d48bb6c9f18a9af26a45df77365f7827a58d5e 100644
--- a/chrome/browser/extensions/tab_helper.h
+++ b/chrome/browser/extensions/tab_helper.h
@@ -7,7 +7,6 @@
#include <set>
#include <string>
-#include <vector>
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
@@ -125,6 +124,11 @@ class TabHelper : public content::WebContentsObserver,
WebstoreInlineInstallerFactory* factory);
private:
+ // Utility function to invoke member functions on all relevant
+ // ContentRulesRegistries.
+ template <class Func>
+ void InvokeForContentRulesRegistries(const Func& func);
+
// Different types of action when web app info is available.
// OnDidGetApplicationInfo uses this to dispatch calls.
enum WebAppAction {
@@ -171,7 +175,6 @@ class TabHelper : public content::WebContentsObserver,
void OnContentScriptsExecuting(
const ScriptExecutionObserver::ExecutingScriptsMap& extension_ids,
const GURL& on_url);
- void OnWatchedPageChange(const std::vector<std::string>& css_selectors);
void OnDetailedConsoleMessageAdded(const base::string16& message,
const base::string16& source,
const StackTrace& stack_trace,
@@ -214,6 +217,8 @@ class TabHelper : public content::WebContentsObserver,
// Data for app extensions ---------------------------------------------------
not at google - send to devlin 2015/06/09 20:38:11 This comment seems entirely out of place. Can you
Mike Wittman 2015/06/09 22:05:56 Yes, I found this odd also. Removed.
+ Profile* profile_;
+
// Our content script observers. Declare at top so that it will outlive all
// other members, since they might add themselves as observers.
base::ObserverList<ScriptExecutionObserver> script_execution_observers_;
@@ -255,8 +260,6 @@ class TabHelper : public content::WebContentsObserver,
scoped_ptr<BookmarkAppHelper> bookmark_app_helper_;
- Profile* profile_;
-
// Creates WebstoreInlineInstaller instances for inline install triggers.
scoped_ptr<WebstoreInlineInstallerFactory> webstore_inline_installer_factory_;

Powered by Google App Engine
This is Rietveld 408576698