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

Side by Side Diff: chrome/browser/subresource_filter/subresource_filter_activation_tracker.h

Issue 2838063002: [on-hold][subresource_filter] Add ActivationTracker to track all activated contents (Closed)
Patch Set: fix incognito Created 3 years, 8 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_SUBRESOURCE_FILTER_SUBRESOURCE_FILTER_ACTIVATION_TRACKER_ H_
6 #define CHROME_BROWSER_SUBRESOURCE_FILTER_SUBRESOURCE_FILTER_ACTIVATION_TRACKER_ H_
7
8 #include <set>
9
10 #include "base/macros.h"
11
12 namespace content {
13 class WebContents;
14 } // namespace content
15
16 class SubresourceFilterActivationTracker {
17 public:
18 SubresourceFilterActivationTracker();
19 ~SubresourceFilterActivationTracker();
20
21 void OnWebContentsActivated(content::WebContents* web_contents,
22 bool activated);
23 void OnWebContentsDestroyed(content::WebContents* web_contents);
24
25 bool HasActivatedWebContents() const;
26
27 private:
28 std::set<content::WebContents*> activated_contents_;
29 DISALLOW_COPY_AND_ASSIGN(SubresourceFilterActivationTracker);
30 };
31
32 #endif // CHROME_BROWSER_SUBRESOURCE_FILTER_SUBRESOURCE_FILTER_ACTIVATION_TRACK ER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698