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

Unified Diff: webrtc/p2p/quic/quicconnectionhelper.h

Issue 1834233002: Update QuicTransportChannel to latest version of libquic (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 9 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 | webrtc/p2p/quic/quicconnectionhelper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/p2p/quic/quicconnectionhelper.h
diff --git a/webrtc/p2p/quic/quicconnectionhelper.h b/webrtc/p2p/quic/quicconnectionhelper.h
index 02691727e533de5c0cb1ed31e4657ecdcfaa9fa4..3588ad422645d281fc0ddee3a0e0872ba18d8091 100644
--- a/webrtc/p2p/quic/quicconnectionhelper.h
+++ b/webrtc/p2p/quic/quicconnectionhelper.h
@@ -15,6 +15,7 @@
#include "net/quic/quic_alarm.h"
#include "net/quic/quic_clock.h"
#include "net/quic/quic_connection.h"
+#include "net/quic/quic_simple_buffer_allocator.h"
#include "webrtc/base/thread.h"
namespace cricket {
@@ -25,7 +26,7 @@ class QuicAlarm : public net::QuicAlarm, public rtc::MessageHandler {
public:
QuicAlarm(const net::QuicClock* clock,
rtc::Thread* thread,
- QuicAlarm::Delegate* delegate);
+ net::QuicArenaScopedPtr<net::QuicAlarm::Delegate> delegate);
~QuicAlarm() override;
@@ -33,7 +34,7 @@ class QuicAlarm : public net::QuicAlarm, public rtc::MessageHandler {
void OnMessage(rtc::Message* msg) override;
// Helper method to get the delay in ms for posting task.
- int64 GetDelay() const;
+ int64_t GetDelay() const;
protected:
// net::QuicAlarm overrides.
@@ -55,9 +56,14 @@ class QuicConnectionHelper : public net::QuicConnectionHelperInterface {
const net::QuicClock* GetClock() const override;
net::QuicRandom* GetRandomGenerator() override;
QuicAlarm* CreateAlarm(net::QuicAlarm::Delegate* delegate) override;
+ net::QuicArenaScopedPtr<net::QuicAlarm> CreateAlarm(
+ net::QuicArenaScopedPtr<QuicAlarm::Delegate> delegate,
+ net::QuicConnectionArena* arena) override;
+ net::QuicBufferAllocator* GetBufferAllocator() override;
private:
net::QuicClock clock_;
+ net::SimpleBufferAllocator buffer_allocator_;
rtc::Thread* thread_;
};
« no previous file with comments | « no previous file | webrtc/p2p/quic/quicconnectionhelper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698