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/quartc/quartc_session.h b/quic/quartc/quartc_session.h
index 7efa186..35df8b6 100644
--- a/quic/quartc/quartc_session.h
+++ b/quic/quartc/quartc_session.h
@@ -48,7 +48,7 @@
// support SendMessage API. Other unexpected errors during send will not be
// returned, because messages can be sent later if connection is congestion
// controlled.
- bool SendOrQueueMessage(QuicString message);
+ bool SendOrQueueMessage(std::string message);
// Returns largest message payload acceptable in SendQuartcMessage.
QuicPacketLength GetLargestMessagePayload() const {
@@ -69,7 +69,7 @@
void OnCanWrite() override;
void OnConnectionClosed(QuicErrorCode error,
- const QuicString& error_details,
+ const std::string& error_details,
ConnectionCloseSource source) override;
// QuartcSession methods.
@@ -84,7 +84,7 @@
//
// Cleans up the underlying QuicConnection's state. Closing the connection
// makes it safe to delete the QuartcSession.
- void CloseConnection(const QuicString& details);
+ void CloseConnection(const std::string& details);
// If the given stream is still open, sends a reset frame to cancel it.
// Note: This method cancels a stream by QuicStreamId rather than by pointer
@@ -122,7 +122,7 @@
// Called when the connection is closed. This means all of the streams will
// be closed and no new streams can be created.
virtual void OnConnectionClosed(QuicErrorCode error_code,
- const QuicString& error_details,
+ const std::string& error_details,
ConnectionCloseSource source) = 0;
// Called when message (sent as SendMessage) is received.
@@ -189,7 +189,7 @@
// Queue of pending messages sent by SendQuartcMessage that were not sent
// yet or blocked by congestion control. Messages are queued in the order
// of sent by SendOrQueueMessage().
- QuicDeque<QuicString> send_message_queue_;
+ QuicDeque<std::string> send_message_queue_;
};
class QuartcClientSession : public QuartcSession,
@@ -242,7 +242,7 @@
// Client perspective crypto stream.
std::unique_ptr<QuicCryptoClientStream> crypto_stream_;
- const QuicString server_config_;
+ const std::string server_config_;
};
class QuartcServerSession : public QuartcSession {