зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1536596 - Change AnonymizedOriginString and AnonymizedCString into functions. r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D88288
This commit is contained in:
Родитель
af5c4cc4cc
Коммит
0cb09645d3
|
@ -513,22 +513,19 @@ LogModule* GetQuotaManagerLogger();
|
|||
|
||||
void AnonymizeCString(nsACString& aCString);
|
||||
|
||||
class AnonymizedCString : public nsCString {
|
||||
public:
|
||||
explicit AnonymizedCString(const nsACString& aCString) : nsCString(aCString) {
|
||||
AnonymizeCString(*this);
|
||||
}
|
||||
};
|
||||
inline auto AnonymizedCString(const nsACString& aCString) {
|
||||
nsAutoCString result{aCString};
|
||||
AnonymizeCString(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
void AnonymizeOriginString(nsACString& aOriginString);
|
||||
|
||||
class AnonymizedOriginString : public nsCString {
|
||||
public:
|
||||
explicit AnonymizedOriginString(const nsACString& aOriginString)
|
||||
: nsCString(aOriginString) {
|
||||
AnonymizeOriginString(*this);
|
||||
}
|
||||
};
|
||||
inline auto AnonymizedOriginString(const nsACString& aOriginString) {
|
||||
nsAutoCString result{aOriginString};
|
||||
AnonymizeOriginString(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
void StringifyTableKeys(const T& aTable, nsACString& aResult) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче