Hide methods inherited from GURL::Replacement's base class.
These methods are generally a bit more awkward to use than the helpers exposed by GURL::Replacement itself. Hide them to encourage callers to use the easier-to-use versions instead. Bug: 1271865 Change-Id: I592743c067edef3b90707c075ae20662099d0f8b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3292948 Commit-Queue: Daniel Cheng <dcheng@chromium.org> Reviewed-by: Mike West <mkwst@chromium.org> Cr-Commit-Position: refs/heads/main@{#944379}
This commit is contained in:

committed by
Chromium LUCI CQ

parent
ec3532203d
commit
8de0ee1ed0
@ -81,30 +81,47 @@ class StringPieceReplacements : public Replacements<CharT> {
|
||||
void SetUsernameStr(const CharT* str) { SetImpl(&ParentT::SetUsername, str); }
|
||||
void SetUsernameStr(StringPieceT str) { SetImpl(&ParentT::SetUsername, str); }
|
||||
void SetUsernameStr(const StringT&&) = delete;
|
||||
using ParentT::ClearUsername;
|
||||
|
||||
void SetPasswordStr(const CharT* str) { SetImpl(&ParentT::SetPassword, str); }
|
||||
void SetPasswordStr(StringPieceT str) { SetImpl(&ParentT::SetPassword, str); }
|
||||
void SetPasswordStr(const StringT&&) = delete;
|
||||
using ParentT::ClearPassword;
|
||||
|
||||
void SetHostStr(const CharT* str) { SetImpl(&ParentT::SetHost, str); }
|
||||
void SetHostStr(StringPieceT str) { SetImpl(&ParentT::SetHost, str); }
|
||||
void SetHostStr(const StringT&&) = delete;
|
||||
using ParentT::ClearHost;
|
||||
|
||||
void SetPortStr(const CharT* str) { SetImpl(&ParentT::SetPort, str); }
|
||||
void SetPortStr(StringPieceT str) { SetImpl(&ParentT::SetPort, str); }
|
||||
void SetPortStr(const StringT&&) = delete;
|
||||
using ParentT::ClearPort;
|
||||
|
||||
void SetPathStr(const CharT* str) { SetImpl(&ParentT::SetPath, str); }
|
||||
void SetPathStr(StringPieceT str) { SetImpl(&ParentT::SetPath, str); }
|
||||
void SetPathStr(const StringT&&) = delete;
|
||||
using ParentT::ClearPath;
|
||||
|
||||
void SetQueryStr(const CharT* str) { SetImpl(&ParentT::SetQuery, str); }
|
||||
void SetQueryStr(StringPieceT str) { SetImpl(&ParentT::SetQuery, str); }
|
||||
void SetQueryStr(const StringT&&) = delete;
|
||||
using ParentT::ClearQuery;
|
||||
|
||||
void SetRefStr(const CharT* str) { SetImpl(&ParentT::SetRef, str); }
|
||||
void SetRefStr(StringPieceT str) { SetImpl(&ParentT::SetRef, str); }
|
||||
void SetRefStr(const StringT&&) = delete;
|
||||
using ParentT::ClearRef;
|
||||
|
||||
private:
|
||||
using ParentT::SetHost;
|
||||
using ParentT::SetPassword;
|
||||
using ParentT::SetPath;
|
||||
using ParentT::SetPort;
|
||||
using ParentT::SetQuery;
|
||||
using ParentT::SetRef;
|
||||
using ParentT::SetScheme;
|
||||
using ParentT::SetUsername;
|
||||
};
|
||||
|
||||
} // namespace url
|
||||
|
Reference in New Issue
Block a user