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> | 8 #include <string> |
9 | 9 |
10 #include "base/format_macros.h" | 10 #include "base/format_macros.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/strings/stringprintf.h" | 12 #include "base/strings/stringprintf.h" |
13 | 13 |
14 #if defined(COMPILER_GCC) | 14 #if defined(COMPILER_GCC) |
15 #define PRETTY_THIS base::StringPrintf("%s@%p ", __PRETTY_FUNCTION__, this) | 15 #define PRETTY_THIS base::StringPrintf("%s@%p ", __PRETTY_FUNCTION__, this) |
16 #elif defined(COMPILER_MSVC) | 16 #elif defined(COMPILER_MSVC) |
17 #define PRETTY_THIS base::StringPrintf("%s@%p ", __FUNCSIG__, this) | 17 #define PRETTY_THIS base::StringPrintf("%s@%p ", __FUNCSIG__, this) |
18 #else | 18 #else |
19 #define PRETTY_THIS base::StringPrintf("%s@%p ", __FUNCTION__, this) | 19 #define PRETTY_THIS base::StringPrintf("%s@%p ", __func__, this) |
20 #endif | 20 #endif |
21 | 21 |
22 namespace net { | 22 namespace net { |
23 | 23 |
24 SpdyFramerDecoderAdapter::SpdyFramerDecoderAdapter() { | 24 SpdyFramerDecoderAdapter::SpdyFramerDecoderAdapter() { |
25 DVLOG(1) << PRETTY_THIS; | 25 DVLOG(1) << PRETTY_THIS; |
26 } | 26 } |
27 | 27 |
28 SpdyFramerDecoderAdapter::~SpdyFramerDecoderAdapter() { | 28 SpdyFramerDecoderAdapter::~SpdyFramerDecoderAdapter() { |
29 DVLOG(1) << PRETTY_THIS; | 29 DVLOG(1) << PRETTY_THIS; |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 std::unique_ptr<SpdyFramerVisitorAdapter> visitor_adapter_; | 254 std::unique_ptr<SpdyFramerVisitorAdapter> visitor_adapter_; |
255 }; | 255 }; |
256 | 256 |
257 std::unique_ptr<SpdyFramerDecoderAdapter> CreateNestedSpdyFramerDecoder( | 257 std::unique_ptr<SpdyFramerDecoderAdapter> CreateNestedSpdyFramerDecoder( |
258 SpdyFramer* outer) { | 258 SpdyFramer* outer) { |
259 return std::unique_ptr<SpdyFramerDecoderAdapter>( | 259 return std::unique_ptr<SpdyFramerDecoderAdapter>( |
260 new NestedSpdyFramerDecoder(outer)); | 260 new NestedSpdyFramerDecoder(outer)); |
261 } | 261 } |
262 | 262 |
263 } // namespace net | 263 } // namespace net |
OLD | NEW |