| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -10,8 +10,7 @@ | |||
| 10 | 10 | #include "sessionticket.h" | |
| 11 | 11 | #include "streams.h" | |
| 12 | 12 | ||
| 13 | - namespace node { | ||
| 14 | - namespace quic { | ||
| 13 | + namespace node::quic { | ||
| 15 | 14 | ||
| 16 | 15 | // An Application implements the ALPN-protocol specific semantics on behalf | |
| 17 | 16 | // of a QUIC Session. | |
@@ -154,8 +153,7 @@ struct Session::Application::StreamData final { | |||
| 154 | 153 | std::string ToString() const; | |
| 155 | 154 | }; | |
| 156 | 155 | ||
| 157 | - } // namespace quic | ||
| 158 | - } // namespace node | ||
| 156 | + } // namespace node::quic | ||
| 159 | 157 | ||
| 160 | 158 | #endif // HAVE_OPENSSL && NODE_OPENSSL_HAS_QUIC | |
| 161 | 159 | #endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -16,8 +16,7 @@ | |||
| 16 | 16 | #include <vector> | |
| 17 | 17 | #include "defs.h" | |
| 18 | 18 | ||
| 19 | - namespace node { | ||
| 20 | - namespace quic { | ||
| 19 | + namespace node::quic { | ||
| 21 | 20 | ||
| 22 | 21 | class Endpoint; | |
| 23 | 22 | class Packet; | |
@@ -267,8 +266,7 @@ struct CallbackScope final : public CallbackScopeBase { | |||
| 267 | 266 | explicit CallbackScope(T* ptr) : CallbackScopeBase(ptr->env()), ref(ptr) {} | |
| 268 | 267 | }; | |
| 269 | 268 | ||
| 270 | - } // namespace quic | ||
| 271 | - } // namespace node | ||
| 269 | + } // namespace node::quic | ||
| 272 | 270 | ||
| 273 | 271 | #endif // HAVE_OPENSSL && NODE_OPENSSL_HAS_QUIC | |
| 274 | 272 | #endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -8,8 +8,7 @@ | |||
| 8 | 8 | #include "ncrypto.h" | |
| 9 | 9 | #include "quic/defs.h" | |
| 10 | 10 | ||
| 11 | - namespace node { | ||
| 12 | - namespace quic { | ||
| 11 | + namespace node::quic { | ||
| 13 | 12 | ||
| 14 | 13 | // ============================================================================ | |
| 15 | 14 | // CID | |
@@ -150,6 +149,5 @@ const CID::Factory& CID::Factory::random() { | |||
| 150 | 149 | return instance; | |
| 151 | 150 | } | |
| 152 | 151 | ||
| 153 | - } // namespace quic | ||
| 154 | - } // namespace node | ||
| 152 | + } // namespace node::quic | ||
| 155 | 153 | #endif // HAVE_OPENSSL && NODE_OPENSSL_HAS_QUIC | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -7,8 +7,7 @@ | |||
| 7 | 7 | #include <string> | |
| 8 | 8 | #include "defs.h" | |
| 9 | 9 | ||
| 10 | - namespace node { | ||
| 11 | - namespace quic { | ||
| 10 | + namespace node::quic { | ||
| 12 | 11 | ||
| 13 | 12 | // CIDS are used to identify endpoints participating in a QUIC session. | |
| 14 | 13 | // Once created, CID instances are immutable. | |
@@ -122,8 +121,7 @@ class CID::Factory { | |||
| 122 | 121 | // of CID::Factory that implement the QUIC Load Balancers spec. | |
| 123 | 122 | }; | |
| 124 | 123 | ||
| 125 | - } // namespace quic | ||
| 126 | - } // namespace node | ||
| 124 | + } // namespace node::quic | ||
| 127 | 125 | ||
| 128 | 126 | #endif // HAVE_OPENSSL && NODE_OPENSSL_HAS_QUIC | |
| 129 | 127 | #endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -13,8 +13,7 @@ | |||
| 13 | 13 | #include <string> | |
| 14 | 14 | #include "defs.h" | |
| 15 | 15 | ||
| 16 | - namespace node { | ||
| 17 | - namespace quic { | ||
| 16 | + namespace node::quic { | ||
| 18 | 17 | ||
| 19 | 18 | struct Path final : public ngtcp2_path { | |
| 20 | 19 | Path(const SocketAddress& local, const SocketAddress& remote); | |
@@ -143,8 +142,7 @@ class QuicError final : public MemoryRetainer { | |||
| 143 | 142 | const ngtcp2_ccerr* ptr_ = nullptr; | |
| 144 | 143 | }; | |
| 145 | 144 | ||
| 146 | - } // namespace quic | ||
| 147 | - } // namespace node | ||
| 145 | + } // namespace node::quic | ||
| 148 | 146 | ||
| 149 | 147 | #endif // HAVE_OPENSSL && NODE_OPENSSL_HAS_QUIC | |
| 150 | 148 | #endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -9,8 +9,7 @@ | |||
| 9 | 9 | #include <v8.h> | |
| 10 | 10 | #include <limits> | |
| 11 | 11 | ||
| 12 | - namespace node { | ||
| 13 | - namespace quic { | ||
| 12 | + namespace node::quic { | ||
| 14 | 13 | ||
| 15 | 14 | #define NGTCP2_SUCCESS 0 | |
| 16 | 15 | #define NGTCP2_ERR(V) (V != NGTCP2_SUCCESS) | |
@@ -243,5 +242,4 @@ class DebugIndentScope { | |||
| 243 | 242 | static int indent_; | |
| 244 | 243 | }; | |
| 245 | 244 | ||
| 246 | - } // namespace quic | ||
| 247 | - } // namespace node | ||
| 245 | + } // namespace node::quic | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -17,8 +17,7 @@ | |||
| 17 | 17 | #include "sessionticket.h" | |
| 18 | 18 | #include "tokens.h" | |
| 19 | 19 | ||
| 20 | - namespace node { | ||
| 21 | - namespace quic { | ||
| 20 | + namespace node::quic { | ||
| 22 | 21 | ||
| 23 | 22 | #define ENDPOINT_CC(V) \ | |
| 24 | 23 | V(RENO, reno) \ | |
@@ -453,8 +452,7 @@ class Endpoint final : public AsyncWrap, public Packet::Listener { | |||
| 453 | 452 | friend class Session; | |
| 454 | 453 | }; | |
| 455 | 454 | ||
| 456 | - } // namespace quic | ||
| 457 | - } // namespace node | ||
| 455 | + } // namespace node::quic | ||
| 458 | 456 | ||
| 459 | 457 | #endif // HAVE_OPENSSL && NODE_OPENSSL_HAS_QUIC | |
| 460 | 458 | #endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -17,8 +17,7 @@ | |||
| 17 | 17 | #include "session.h" | |
| 18 | 18 | #include "sessionticket.h" | |
| 19 | 19 | ||
| 20 | - namespace node { | ||
| 21 | - namespace quic { | ||
| 20 | + namespace node::quic { | ||
| 22 | 21 | namespace { | |
| 23 | 22 | ||
| 24 | 23 | struct Http3HeadersTraits { | |
@@ -833,7 +832,6 @@ std::unique_ptr<Session::Application> createHttp3Application( | |||
| 833 | 832 | return std::make_unique<Http3Application>(session, options); | |
| 834 | 833 | } | |
| 835 | 834 | ||
| 836 | - } // namespace quic | ||
| 837 | - } // namespace node | ||
| 835 | + } // namespace node::quic | ||
| 838 | 836 | ||
| 839 | 837 | #endif // HAVE_OPENSSL && NODE_OPENSSL_HAS_QUIC | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5,14 +5,11 @@ | |||
| 5 | 5 | ||
| 6 | 6 | #include "session.h" | |
| 7 | 7 | ||
| 8 | - namespace node { | ||
| 9 | - namespace quic { | ||
| 10 | - | ||
| 8 | + namespace node::quic { | ||
| 11 | 9 | std::unique_ptr<Session::Application> createHttp3Application( | |
| 12 | 10 | Session* session, const Session::Application_Options& options); | |
| 13 | 11 | ||
| 14 | - } // namespace quic | ||
| 15 | - } // namespace node | ||
| 12 | + } // namespace node::quic | ||
| 16 | 13 | ||
| 17 | 14 | #endif // HAVE_OPENSSL && NODE_OPENSSL_HAS_QUIC | |
| 18 | 15 | #endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -9,8 +9,7 @@ | |||
| 9 | 9 | #include <stream_base.h> | |
| 10 | 10 | #include <deque> | |
| 11 | 11 | ||
| 12 | - namespace node { | ||
| 13 | - namespace quic { | ||
| 12 | + namespace node::quic { | ||
| 14 | 13 | ||
| 15 | 14 | // The LogStream is a utility that the QUIC impl uses to publish both QLog | |
| 16 | 15 | // and Keylog diagnostic data (one instance for each). | |
@@ -76,8 +75,7 @@ class LogStream : public AsyncWrap, public StreamBase { | |||
| 76 | 75 | void ensure_space(size_t amt); | |
| 77 | 76 | }; | |
| 78 | 77 | ||
| 79 | - } // namespace quic | ||
| 80 | - } // namespace node | ||
| 78 | + } // namespace node::quic | ||
| 81 | 79 | ||
| 82 | 80 | #endif // HAVE_OPENSSL && NODE_OPENSSL_HAS_QUIC | |
| 83 | 81 | #endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS | |
| Back | FazBrowse Home | New Git URL |
0 commit comments