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

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

Issue 1366123002: Cleanup: IWYU for base/gtest_prod_util.h. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gtest_iwyu
Patch Set: more lint Created 5 years, 2 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/http/http_server_properties_manager.h ('k') | net/socket/socks5_client_socket.h » ('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>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/gtest_prod_util.h"
13 #include "base/logging.h" 14 #include "base/logging.h"
14 #include "base/memory/weak_ptr.h" 15 #include "base/memory/weak_ptr.h"
15 #include "base/time/time.h" 16 #include "base/time/time.h"
16 #include "net/base/address_list.h" 17 #include "net/base/address_list.h"
17 #include "net/base/completion_callback.h" 18 #include "net/base/completion_callback.h"
18 #include "net/base/host_port_pair.h" 19 #include "net/base/host_port_pair.h"
19 #include "net/base/network_change_notifier.h" 20 #include "net/base/network_change_notifier.h"
20 #include "net/cert/cert_database.h" 21 #include "net/cert/cert_database.h"
21 #include "net/log/net_log.h" 22 #include "net/log/net_log.h"
22 #include "net/proxy/proxy_server.h" 23 #include "net/proxy/proxy_server.h"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 base::TimeDelta GetTimeDelayForWaitingJob() const; 79 base::TimeDelta GetTimeDelayForWaitingJob() const;
79 80
80 scoped_ptr<QuicHttpStream> ReleaseStream(); 81 scoped_ptr<QuicHttpStream> ReleaseStream();
81 82
82 void set_stream(scoped_ptr<QuicHttpStream> stream); 83 void set_stream(scoped_ptr<QuicHttpStream> stream);
83 84
84 const std::string& origin_host() const { return origin_host_; } 85 const std::string& origin_host() const { return origin_host_; }
85 86
86 PrivacyMode privacy_mode() const { return privacy_mode_; } 87 PrivacyMode privacy_mode() const { return privacy_mode_; }
87 88
88 const BoundNetLog& net_log() const{ 89 const BoundNetLog& net_log() const { return net_log_; }
89 return net_log_;
90 }
91 90
92 private: 91 private:
93 QuicStreamFactory* factory_; 92 QuicStreamFactory* factory_;
94 HostPortPair host_port_pair_; 93 HostPortPair host_port_pair_;
95 std::string origin_host_; 94 std::string origin_host_;
96 bool is_https_; 95 bool is_https_;
97 PrivacyMode privacy_mode_; 96 PrivacyMode privacy_mode_;
98 BoundNetLog net_log_; 97 BoundNetLog net_log_;
99 CompletionCallback callback_; 98 CompletionCallback callback_;
100 scoped_ptr<QuicHttpStream> stream_; 99 scoped_ptr<QuicHttpStream> stream_;
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 286
288 // Creates a job which doesn't wait for server config to be loaded from the 287 // Creates a job which doesn't wait for server config to be loaded from the
289 // disk cache. This job is started via a PostTask. 288 // disk cache. This job is started via a PostTask.
290 void CreateAuxilaryJob(const QuicServerId server_id, 289 void CreateAuxilaryJob(const QuicServerId server_id,
291 int cert_verify_flags, 290 int cert_verify_flags,
292 bool server_and_origin_have_same_host, 291 bool server_and_origin_have_same_host,
293 bool is_post, 292 bool is_post,
294 const BoundNetLog& net_log); 293 const BoundNetLog& net_log);
295 294
296 // Returns a newly created QuicHttpStream owned by the caller. 295 // Returns a newly created QuicHttpStream owned by the caller.
297 scoped_ptr<QuicHttpStream> CreateFromSession(QuicChromiumClientSession*); 296 scoped_ptr<QuicHttpStream> CreateFromSession(
297 QuicChromiumClientSession* session);
298 298
299 bool OnResolution(const QuicServerId& server_id, 299 bool OnResolution(const QuicServerId& server_id,
300 const AddressList& address_list); 300 const AddressList& address_list);
301 void OnJobComplete(Job* job, int rv); 301 void OnJobComplete(Job* job, int rv);
302 bool HasActiveSession(const QuicServerId& server_id) const; 302 bool HasActiveSession(const QuicServerId& server_id) const;
303 bool HasActiveJob(const QuicServerId& server_id) const; 303 bool HasActiveJob(const QuicServerId& server_id) const;
304 int CreateSession(const QuicServerId& server_id, 304 int CreateSession(const QuicServerId& server_id,
305 int cert_verify_flags, 305 int cert_verify_flags,
306 scoped_ptr<QuicServerInfo> quic_server_info, 306 scoped_ptr<QuicServerInfo> quic_server_info,
307 const AddressList& address_list, 307 const AddressList& address_list,
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 base::TaskRunner* task_runner_; 462 base::TaskRunner* task_runner_;
463 463
464 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; 464 base::WeakPtrFactory<QuicStreamFactory> weak_factory_;
465 465
466 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); 466 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory);
467 }; 467 };
468 468
469 } // namespace net 469 } // namespace net
470 470
471 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ 471 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_
OLDNEW
« no previous file with comments | « net/http/http_server_properties_manager.h ('k') | net/socket/socks5_client_socket.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698