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

Side by Side Diff: components/subresource_filter/content/browser/subresource_filter_client.h

Issue 2795053002: [subresource_filter] Implement the "Smart" UI on Android (Closed)
Patch Set: minor tweaks Created 3 years, 7 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
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_SUBRESOURCE_FILTER_CORE_BROWSER_SUBRESOURCE_FILTER_CLIENT_H_ 5 #ifndef COMPONENTS_SUBRESOURCE_FILTER_CORE_BROWSER_SUBRESOURCE_FILTER_CLIENT_H_
6 #define COMPONENTS_SUBRESOURCE_FILTER_CORE_BROWSER_SUBRESOURCE_FILTER_CLIENT_H_ 6 #define COMPONENTS_SUBRESOURCE_FILTER_CORE_BROWSER_SUBRESOURCE_FILTER_CLIENT_H_
7 7
8 #include "components/subresource_filter/content/browser/verified_ruleset_dealer. h" 8 #include "components/subresource_filter/content/browser/verified_ruleset_dealer. h"
9 #include "content/public/browser/web_contents.h" 9 #include "content/public/browser/web_contents.h"
10 10
(...skipping 16 matching lines...) Expand all
27 // a bubble is shown that explains the feature and alalows the user to turn it 27 // a bubble is shown that explains the feature and alalows the user to turn it
28 // off. 28 // off.
29 virtual void ToggleNotificationVisibility(bool visibility) = 0; 29 virtual void ToggleNotificationVisibility(bool visibility) = 0;
30 30
31 // Returns true if the navigation is in a main frame and the URL is 31 // Returns true if the navigation is in a main frame and the URL is
32 // whitelisted from activation via content settings or by the per-tab 32 // whitelisted from activation via content settings or by the per-tab
33 // whitelist. 33 // whitelist.
34 virtual bool ShouldSuppressActivation( 34 virtual bool ShouldSuppressActivation(
35 content::NavigationHandle* navigation_handle) = 0; 35 content::NavigationHandle* navigation_handle) = 0;
36 36
37 // Adds |url| to the BLOCKED state via content settings for the current 37 // Adds |top_level_url| to the BLOCKED state via content settings for the
38 // profile. 38 // current profile.
39 virtual void WhitelistByContentSettings(const GURL& url) = 0; 39 virtual void WhitelistByContentSettings(const GURL& top_level_url) = 0;
40 40
41 // Adds |url| to a per-WebContents whitelist. 41 // Adds |url| to a per-WebContents whitelist.
42 virtual void WhitelistInCurrentWebContents(const GURL& url) = 0; 42 virtual void WhitelistInCurrentWebContents(const GURL& url) = 0;
43 43
44 virtual VerifiedRulesetDealer::Handle* GetRulesetDealer() = 0; 44 virtual VerifiedRulesetDealer::Handle* GetRulesetDealer() = 0;
45 }; 45 };
46 46
47 } // namespace subresource_filter 47 } // namespace subresource_filter
48 48
49 #endif // COMPONENTS_SUBRESOURCE_FILTER_CORE_BROWSER_SUBRESOURCE_FILTER_CLIENT_ H_ 49 #endif // COMPONENTS_SUBRESOURCE_FILTER_CORE_BROWSER_SUBRESOURCE_FILTER_CLIENT_ H_
OLDNEW
« no previous file with comments | « components/content_settings/core/common/content_settings_types.h ('k') | tools/metrics/histograms/enums.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698