-
Notifications
You must be signed in to change notification settings - Fork 922
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove cosmetic filtering extension version #9995
Merged
antonok-edm
merged 2 commits into
master
from
remove-cosmetic-filtering-extension-version
Sep 8, 2021
+14
−1,207
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,46 +8,12 @@ | |
|
||
#include <memory> | ||
#include <string> | ||
#include <vector> | ||
|
||
#include "extensions/browser/extension_function.h" | ||
|
||
namespace extensions { | ||
namespace api { | ||
|
||
class BraveShieldsUrlCosmeticResourcesFunction : public ExtensionFunction { | ||
public: | ||
DECLARE_EXTENSION_FUNCTION("braveShields.urlCosmeticResources", UNKNOWN) | ||
|
||
protected: | ||
~BraveShieldsUrlCosmeticResourcesFunction() override {} | ||
|
||
ResponseAction Run() override; | ||
|
||
private: | ||
std::unique_ptr<base::ListValue> GetUrlCosmeticResourcesOnTaskRunner( | ||
const std::string& url); | ||
void GetUrlCosmeticResourcesOnUI(std::unique_ptr<base::ListValue> resources); | ||
}; | ||
|
||
class BraveShieldsHiddenClassIdSelectorsFunction : public ExtensionFunction { | ||
public: | ||
DECLARE_EXTENSION_FUNCTION("braveShields.hiddenClassIdSelectors", UNKNOWN) | ||
|
||
protected: | ||
~BraveShieldsHiddenClassIdSelectorsFunction() override {} | ||
|
||
ResponseAction Run() override; | ||
|
||
private: | ||
std::unique_ptr<base::ListValue> GetHiddenClassIdSelectorsOnTaskRunner( | ||
const std::vector<std::string>& classes, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
const std::vector<std::string>& ids, | ||
const std::vector<std::string>& exceptions); | ||
void GetHiddenClassIdSelectorsOnUI( | ||
std::unique_ptr<base::ListValue> selectors); | ||
}; | ||
|
||
class BraveShieldsAddSiteCosmeticFilterFunction : public ExtensionFunction { | ||
public: | ||
DECLARE_EXTENSION_FUNCTION("braveShields.addSiteCosmeticFilter", UNKNOWN) | ||
|
@@ -109,16 +75,6 @@ class BraveShieldsGetBraveShieldsEnabledFunction : public ExtensionFunction { | |
ResponseAction Run() override; | ||
}; | ||
|
||
class BraveShieldsShouldDoCosmeticFilteringFunction : public ExtensionFunction { | ||
public: | ||
DECLARE_EXTENSION_FUNCTION("braveShields.shouldDoCosmeticFiltering", UNKNOWN) | ||
|
||
protected: | ||
~BraveShieldsShouldDoCosmeticFilteringFunction() override {} | ||
|
||
ResponseAction Run() override; | ||
}; | ||
|
||
class BraveShieldsSetCosmeticFilteringControlTypeFunction : | ||
public ExtensionFunction { | ||
public: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pls double-check unused headers, e.g.
#include "base/feature_list.h"
or#include "brave/components/brave_shields/common/features.h"
, maybe anything elseThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#include "brave/browser/brave_browser_process.h"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We still have e.g.
so I can't remove
brave_browser_process.h
, but I removed the others