Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(314)

Unified Diff: net/tools/quic/quic_client.h

Issue 25043005: Add better help information to quic_client and quic_server. Also, (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix comment Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | net/tools/quic/quic_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/quic_client.h
diff --git a/net/tools/quic/quic_client.h b/net/tools/quic/quic_client.h
index 8146764bab93f60624a2b9518487ef7336016901..88268159e4ef713b26538903347980be27b7c6aa 100644
--- a/net/tools/quic/quic_client.h
+++ b/net/tools/quic/quic_client.h
@@ -34,10 +34,13 @@ namespace test {
class QuicClientPeer;
} // namespace test
-class QuicClient : public EpollCallbackInterface {
+class QuicClient : public EpollCallbackInterface,
+ public ReliableQuicStream::Visitor {
public:
- QuicClient(IPEndPoint server_address, const std::string& server_hostname,
- const QuicVersion version);
+ QuicClient(IPEndPoint server_address,
+ const string& server_hostname,
+ const QuicVersion version,
+ bool print_response);
QuicClient(IPEndPoint server_address,
const std::string& server_hostname,
const QuicConfig& config,
@@ -96,6 +99,9 @@ class QuicClient : public EpollCallbackInterface {
virtual void OnUnregistration(int fd, bool replaced) OVERRIDE {}
virtual void OnShutdown(EpollServer* eps, int fd) OVERRIDE {}
+ // ReliableQuicStream::Visitor
+ virtual void OnClose(ReliableQuicStream* stream) OVERRIDE;
+
QuicPacketCreator::Options* options();
QuicClientSession* session() { return session_.get(); }
@@ -190,6 +196,10 @@ class QuicClient : public EpollCallbackInterface {
// Which QUIC version does this client talk?
QuicVersion version_;
+ // If true, then the contents of each response will be printed to stdout
+ // when the stream is closed (in OnClose).
+ bool print_response_;
+
DISALLOW_COPY_AND_ASSIGN(QuicClient);
};
« no previous file with comments | « no previous file | net/tools/quic/quic_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698