OLD | NEW |
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2016 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/spdy/spdy_framer_decoder_adapter.h" | 5 #include "net/spdy/spdy_framer_decoder_adapter.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <string> | |
9 #include <utility> | 8 #include <utility> |
10 | 9 |
11 #include "base/format_macros.h" | 10 #include "base/format_macros.h" |
12 #include "base/logging.h" | 11 #include "base/logging.h" |
13 #include "net/spdy/platform/api/spdy_estimate_memory_usage.h" | 12 #include "net/spdy/platform/api/spdy_estimate_memory_usage.h" |
14 #include "net/spdy/platform/api/spdy_string_utils.h" | 13 #include "net/spdy/platform/api/spdy_string_utils.h" |
15 | 14 |
16 #if defined(COMPILER_GCC) | 15 #if defined(COMPILER_GCC) |
17 #define PRETTY_THIS SpdyStringPrintf("%s@%p ", __PRETTY_FUNCTION__, this) | 16 #define PRETTY_THIS SpdyStringPrintf("%s@%p ", __PRETTY_FUNCTION__, this) |
18 #elif defined(COMPILER_MSVC) | 17 #elif defined(COMPILER_MSVC) |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 std::unique_ptr<SpdyFramerVisitorAdapter> visitor_adapter_; | 242 std::unique_ptr<SpdyFramerVisitorAdapter> visitor_adapter_; |
244 }; | 243 }; |
245 | 244 |
246 std::unique_ptr<SpdyFramerDecoderAdapter> CreateNestedSpdyFramerDecoder( | 245 std::unique_ptr<SpdyFramerDecoderAdapter> CreateNestedSpdyFramerDecoder( |
247 SpdyFramer* outer) { | 246 SpdyFramer* outer) { |
248 return std::unique_ptr<SpdyFramerDecoderAdapter>( | 247 return std::unique_ptr<SpdyFramerDecoderAdapter>( |
249 new NestedSpdyFramerDecoder(outer)); | 248 new NestedSpdyFramerDecoder(outer)); |
250 } | 249 } |
251 | 250 |
252 } // namespace net | 251 } // namespace net |
OLD | NEW |