зеркало из https://github.com/mozilla/gecko-dev.git
Bug 271386- Make some functions private in nsHttpResponseHead r=necko-reviewers,kershaw
Make the following functions private because they are only used in nsHttpResponseHead.cpp for compiler optimization- GetDateValue,GetAgeValue,GetMaxAgeValue,GetExpiresValue. GetLastModifiedValue cannot be made private since it is being used in CachePushChecker.cpp and ParseDateHeader is already private. Differential Revision: https://phabricator.services.mozilla.com/D129664
This commit is contained in:
Родитель
109fa2a6d5
Коммит
7f3ac3954b
|
@ -126,11 +126,6 @@ class nsHttpResponseHead {
|
|||
// reset the response head to it's initial state
|
||||
void Reset();
|
||||
|
||||
[[nodiscard]] nsresult GetAgeValue(uint32_t* result);
|
||||
[[nodiscard]] nsresult GetMaxAgeValue(uint32_t* result);
|
||||
[[nodiscard]] nsresult GetStaleWhileRevalidateValue(uint32_t* result);
|
||||
[[nodiscard]] nsresult GetDateValue(uint32_t* result);
|
||||
[[nodiscard]] nsresult GetExpiresValue(uint32_t* result);
|
||||
[[nodiscard]] nsresult GetLastModifiedValue(uint32_t* result);
|
||||
|
||||
bool operator==(const nsHttpResponseHead& aOther) const;
|
||||
|
@ -162,6 +157,11 @@ class nsHttpResponseHead {
|
|||
// these return failure if the header does not exist.
|
||||
[[nodiscard]] nsresult ParseDateHeader(const nsHttpAtom& header,
|
||||
uint32_t* result) const;
|
||||
[[nodiscard]] nsresult GetAgeValue(uint32_t* result);
|
||||
[[nodiscard]] nsresult GetMaxAgeValue(uint32_t* result);
|
||||
[[nodiscard]] nsresult GetStaleWhileRevalidateValue(uint32_t* result);
|
||||
[[nodiscard]] nsresult GetDateValue(uint32_t* result);
|
||||
[[nodiscard]] nsresult GetExpiresValue(uint32_t* result);
|
||||
|
||||
bool ExpiresInPast_locked() const;
|
||||
[[nodiscard]] nsresult GetAgeValue_locked(uint32_t* result) const;
|
||||
|
|
Загрузка…
Ссылка в новой задаче