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

Side by Side Diff: net/quic/chromium/quic_utils_chromium.h

Issue 2566473002: Fix include guards for QUIC files. (Closed)
Patch Set: Created 4 years 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/chromium/quic_stream_factory.h ('k') | net/quic/core/congestion_control/cubic.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 // Some helpers for quic that are for chromium codebase. 5 // Some helpers for quic that are for chromium codebase.
6 6
7 #ifndef NET_QUIC_QUIC_UTILS_CHROMIUM_H_ 7 #ifndef NET_QUIC_CHROMIUM_QUIC_UTILS_CHROMIUM_H_
8 #define NET_QUIC_QUIC_UTILS_CHROMIUM_H_ 8 #define NET_QUIC_CHROMIUM_QUIC_UTILS_CHROMIUM_H_
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
11 11
12 namespace net { 12 namespace net {
13 13
14 // 14 //
15 // Find*() 15 // Find*()
16 // 16 //
17 17
18 // Returns a const reference to the value associated with the given key if it 18 // Returns a const reference to the value associated with the given key if it
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 const typename Collection::value_type::first_type& key) { 69 const typename Collection::value_type::first_type& key) {
70 typename Collection::iterator it = collection.find(key); 70 typename Collection::iterator it = collection.find(key);
71 if (it == collection.end()) { 71 if (it == collection.end()) {
72 return 0; 72 return 0;
73 } 73 }
74 return &it->second; 74 return &it->second;
75 } 75 }
76 76
77 } // namespace net 77 } // namespace net
78 78
79 #endif // NET_QUIC_QUIC_UTILS_CHROMIUM_H_ 79 #endif // NET_QUIC_CHROMIUM_QUIC_UTILS_CHROMIUM_H_
OLDNEW
« no previous file with comments | « net/quic/chromium/quic_stream_factory.h ('k') | net/quic/core/congestion_control/cubic.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698