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

Side by Side Diff: net/quic/chromium/quic_stream_factory.h

Issue 2329853002: Introduces ability for session to wait on a migration trigger for a new (Closed)
Patch Set: sync Created 4 years, 3 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_QUIC_QUIC_STREAM_FACTORY_H_ 5 #ifndef NET_QUIC_QUIC_STREAM_FACTORY_H_
6 #define NET_QUIC_QUIC_STREAM_FACTORY_H_ 6 #define NET_QUIC_QUIC_STREAM_FACTORY_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 WRITE_ERROR // Migration due to socket write error. 73 WRITE_ERROR // Migration due to socket write error.
74 }; 74 };
75 75
76 // Result of a session migration attempt. 76 // Result of a session migration attempt.
77 enum class MigrationResult { 77 enum class MigrationResult {
78 SUCCESS, // Migration succeeded. 78 SUCCESS, // Migration succeeded.
79 NO_NEW_NETWORK, // Migration failed since no new network was found. 79 NO_NEW_NETWORK, // Migration failed since no new network was found.
80 FAILURE // Migration failed for other reasons. 80 FAILURE // Migration failed for other reasons.
81 }; 81 };
82 82
83 enum QuicConnectionMigrationStatus {
84 MIGRATION_STATUS_NO_MIGRATABLE_STREAMS,
85 MIGRATION_STATUS_ALREADY_MIGRATED,
86 MIGRATION_STATUS_INTERNAL_ERROR,
87 MIGRATION_STATUS_TOO_MANY_CHANGES,
88 MIGRATION_STATUS_SUCCESS,
89 MIGRATION_STATUS_NON_MIGRATABLE_STREAM,
90 MIGRATION_STATUS_DISABLED,
91 MIGRATION_STATUS_NO_ALTERNATE_NETWORK,
92 MIGRATION_STATUS_MAX
93 };
94
83 // Encapsulates a pending request for a QuicHttpStream. 95 // Encapsulates a pending request for a QuicHttpStream.
84 // If the request is still pending when it is destroyed, it will 96 // If the request is still pending when it is destroyed, it will
85 // cancel the request with the factory. 97 // cancel the request with the factory.
86 class NET_EXPORT_PRIVATE QuicStreamRequest { 98 class NET_EXPORT_PRIVATE QuicStreamRequest {
87 public: 99 public:
88 explicit QuicStreamRequest(QuicStreamFactory* factory); 100 explicit QuicStreamRequest(QuicStreamFactory* factory);
89 ~QuicStreamRequest(); 101 ~QuicStreamRequest();
90 102
91 // |cert_verify_flags| is bitwise OR'd of CertVerifier::VerifyFlags and it is 103 // |cert_verify_flags| is bitwise OR'd of CertVerifier::VerifyFlags and it is
92 // passed to CertVerifier::Verify. 104 // passed to CertVerifier::Verify.
(...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after
672 const scoped_refptr<SSLConfigService> ssl_config_service_; 684 const scoped_refptr<SSLConfigService> ssl_config_service_;
673 685
674 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; 686 base::WeakPtrFactory<QuicStreamFactory> weak_factory_;
675 687
676 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); 688 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory);
677 }; 689 };
678 690
679 } // namespace net 691 } // namespace net
680 692
681 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ 693 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698