Replace QuicString with std::string, pass 1
This replaces QuicString with std::string in all of the "QUIC proper". I will
delete QuicString once all code using it is gone.
gfe-relnote: n/a (no functional change)
PiperOrigin-RevId: 237872023
Change-Id: I82de62c9855516b15039734d05155917e68ff4ee
diff --git a/quic/core/tls_server_handshaker.h b/quic/core/tls_server_handshaker.h
index c3efc82..4b38a74 100644
--- a/quic/core/tls_server_handshaker.h
+++ b/quic/core/tls_server_handshaker.h
@@ -37,7 +37,7 @@
// From QuicCryptoServerStream::HandshakerDelegate
void CancelOutstandingCallbacks() override;
- bool GetBase64SHA256ClientChannelID(QuicString* output) const override;
+ bool GetBase64SHA256ClientChannelID(std::string* output) const override;
void SendServerConfigUpdate(
const CachedNetworkParameters* cached_network_params) override;
uint8_t NumHandshakeMessages() const override;
@@ -64,7 +64,7 @@
class SignatureCallback : public ProofSource::SignatureCallback {
public:
explicit SignatureCallback(TlsServerHandshaker* handshaker);
- void Run(bool ok, QuicString signature) override;
+ void Run(bool ok, std::string signature) override;
// If called, Cancel causes the pending callback to be a no-op.
void Cancel();
@@ -90,15 +90,15 @@
// for the TLS stack to read.
void AdvanceHandshake() override;
void CloseConnection(QuicErrorCode error,
- const QuicString& reason_phrase) override;
+ const std::string& reason_phrase) override;
// Called when the TLS handshake is complete.
void FinishHandshake();
- void CloseConnection(const QuicString& reason_phrase);
+ void CloseConnection(const std::string& reason_phrase);
bool SetTransportParameters();
- bool ProcessTransportParameters(QuicString* error_details);
+ bool ProcessTransportParameters(std::string* error_details);
// Calls the instance method PrivateKeySign after looking up the
// TlsServerHandshaker from |ssl|.
@@ -154,8 +154,8 @@
ProofSource* proof_source_;
SignatureCallback* signature_callback_ = nullptr;
- QuicString hostname_;
- QuicString cert_verify_sig_;
+ std::string hostname_;
+ std::string cert_verify_sig_;
bool encryption_established_ = false;
bool handshake_confirmed_ = false;