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

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

Issue 1328623002: Returning const ref instead of const value in QuicStreamRequest::origin_host (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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 | « no previous file | no next file » | 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 base::StringPiece method, 67 base::StringPiece method,
68 const BoundNetLog& net_log, 68 const BoundNetLog& net_log,
69 const CompletionCallback& callback); 69 const CompletionCallback& callback);
70 70
71 void OnRequestComplete(int rv); 71 void OnRequestComplete(int rv);
72 72
73 scoped_ptr<QuicHttpStream> ReleaseStream(); 73 scoped_ptr<QuicHttpStream> ReleaseStream();
74 74
75 void set_stream(scoped_ptr<QuicHttpStream> stream); 75 void set_stream(scoped_ptr<QuicHttpStream> stream);
76 76
77 const std::string origin_host() const { return origin_host_; } 77 const std::string& origin_host() const { return origin_host_; }
78 78
79 PrivacyMode privacy_mode() const { return privacy_mode_; } 79 PrivacyMode privacy_mode() const { return privacy_mode_; }
80 80
81 const BoundNetLog& net_log() const{ 81 const BoundNetLog& net_log() const{
82 return net_log_; 82 return net_log_;
83 } 83 }
84 84
85 private: 85 private:
86 QuicStreamFactory* factory_; 86 QuicStreamFactory* factory_;
87 HostPortPair host_port_pair_; 87 HostPortPair host_port_pair_;
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
427 base::TaskRunner* task_runner_; 427 base::TaskRunner* task_runner_;
428 428
429 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; 429 base::WeakPtrFactory<QuicStreamFactory> weak_factory_;
430 430
431 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); 431 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory);
432 }; 432 };
433 433
434 } // namespace net 434 } // namespace net
435 435
436 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ 436 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698