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

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

Issue 1149243003: Returning scoped_ptr instead of raw pointer in QuicInfoToValue in net/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Incorporated review comments. Created 5 years, 6 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
« no previous file with comments | « net/quic/quic_client_session.cc ('k') | net/quic/quic_stream_factory.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 155
156 // Called by a session whose connection has timed out. 156 // Called by a session whose connection has timed out.
157 void OnSessionConnectTimeout(QuicClientSession* session); 157 void OnSessionConnectTimeout(QuicClientSession* session);
158 158
159 // Cancels a pending request. 159 // Cancels a pending request.
160 void CancelRequest(QuicStreamRequest* request); 160 void CancelRequest(QuicStreamRequest* request);
161 161
162 // Closes all current sessions. 162 // Closes all current sessions.
163 void CloseAllSessions(int error); 163 void CloseAllSessions(int error);
164 164
165 base::Value* QuicStreamFactoryInfoToValue() const; 165 scoped_ptr<base::Value> QuicStreamFactoryInfoToValue() const;
166 166
167 // Delete all cached state objects in |crypto_config_|. 167 // Delete all cached state objects in |crypto_config_|.
168 void ClearCachedStatesInCryptoConfig(); 168 void ClearCachedStatesInCryptoConfig();
169 169
170 // NetworkChangeNotifier::IPAddressObserver methods: 170 // NetworkChangeNotifier::IPAddressObserver methods:
171 171
172 // Until the servers support roaming, close all connections when the local 172 // Until the servers support roaming, close all connections when the local
173 // IP address changes. 173 // IP address changes.
174 void OnIPAddressChanged() override; 174 void OnIPAddressChanged() override;
175 175
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 base::TaskRunner* task_runner_; 376 base::TaskRunner* task_runner_;
377 377
378 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; 378 base::WeakPtrFactory<QuicStreamFactory> weak_factory_;
379 379
380 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); 380 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory);
381 }; 381 };
382 382
383 } // namespace net 383 } // namespace net
384 384
385 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ 385 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_
OLDNEW
« no previous file with comments | « net/quic/quic_client_session.cc ('k') | net/quic/quic_stream_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698