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

Side by Side Diff: net/quic/quic_chromium_connection_helper.cc

Issue 1581283002: Rename chromium-specific QUIC classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add missing Created 4 years, 11 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 #include "net/quic/quic_connection_helper.h" 5 #include "net/quic/quic_chromium_connection_helper.h"
6 6
7 #include "base/location.h" 7 #include "base/location.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/metrics/sparse_histogram.h" 9 #include "base/metrics/sparse_histogram.h"
10 #include "base/task_runner.h" 10 #include "base/task_runner.h"
11 #include "base/time/time.h" 11 #include "base/time/time.h"
12 #include "net/base/io_buffer.h" 12 #include "net/base/io_buffer.h"
13 #include "net/base/net_errors.h" 13 #include "net/base/net_errors.h"
14 #include "net/quic/quic_utils.h" 14 #include "net/quic/quic_utils.h"
15 15
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 // was scheduled to fire. Tracking this allows us to avoid posting a 84 // was scheduled to fire. Tracking this allows us to avoid posting a
85 // new tast if the new deadline is in the future, but permits us to 85 // new tast if the new deadline is in the future, but permits us to
86 // post a new task when the new deadline now earlier than when 86 // post a new task when the new deadline now earlier than when
87 // previously posted. 87 // previously posted.
88 QuicTime task_deadline_; 88 QuicTime task_deadline_;
89 base::WeakPtrFactory<QuicChromeAlarm> weak_factory_; 89 base::WeakPtrFactory<QuicChromeAlarm> weak_factory_;
90 }; 90 };
91 91
92 } // namespace 92 } // namespace
93 93
94 QuicConnectionHelper::QuicConnectionHelper(base::TaskRunner* task_runner, 94 QuicChromiumConnectionHelper::QuicChromiumConnectionHelper(
95 const QuicClock* clock, 95 base::TaskRunner* task_runner,
96 QuicRandom* random_generator) 96 const QuicClock* clock,
97 QuicRandom* random_generator)
97 : task_runner_(task_runner), 98 : task_runner_(task_runner),
98 clock_(clock), 99 clock_(clock),
99 random_generator_(random_generator), 100 random_generator_(random_generator),
100 weak_factory_(this) {} 101 weak_factory_(this) {}
101 102
102 QuicConnectionHelper::~QuicConnectionHelper() {} 103 QuicChromiumConnectionHelper::~QuicChromiumConnectionHelper() {}
103 104
104 const QuicClock* QuicConnectionHelper::GetClock() const { 105 const QuicClock* QuicChromiumConnectionHelper::GetClock() const {
105 return clock_; 106 return clock_;
106 } 107 }
107 108
108 QuicRandom* QuicConnectionHelper::GetRandomGenerator() { 109 QuicRandom* QuicChromiumConnectionHelper::GetRandomGenerator() {
109 return random_generator_; 110 return random_generator_;
110 } 111 }
111 112
112 QuicAlarm* QuicConnectionHelper::CreateAlarm(QuicAlarm::Delegate* delegate) { 113 QuicAlarm* QuicChromiumConnectionHelper::CreateAlarm(
114 QuicAlarm::Delegate* delegate) {
113 return new QuicChromeAlarm(clock_, task_runner_, delegate); 115 return new QuicChromeAlarm(clock_, task_runner_, delegate);
114 } 116 }
115 117
116 QuicBufferAllocator* QuicConnectionHelper::GetBufferAllocator() { 118 QuicBufferAllocator* QuicChromiumConnectionHelper::GetBufferAllocator() {
117 return &buffer_allocator_; 119 return &buffer_allocator_;
118 } 120 }
119 121
120 } // namespace net 122 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_chromium_connection_helper.h ('k') | net/quic/quic_chromium_connection_helper_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698