gfe-relnote: (n/a) Platformize logging for http2. Refactor only, no behavior change. Note on merge: http2/platform/impl/http2_logging_impl.h also needs to be merged to Chromium. PiperOrigin-RevId: 237381363 Change-Id: I98a69eaeca7ac1353054120681e18e99a73c63c4
diff --git a/http2/decoder/payload_decoders/push_promise_payload_decoder.cc b/http2/decoder/payload_decoders/push_promise_payload_decoder.cc index cec1c07..8b043b6 100644 --- a/http2/decoder/payload_decoders/push_promise_payload_decoder.cc +++ b/http2/decoder/payload_decoders/push_promise_payload_decoder.cc
@@ -6,13 +6,12 @@ #include <stddef.h> -#include "base/logging.h" -#include "base/macros.h" #include "net/third_party/quiche/src/http2/decoder/decode_buffer.h" #include "net/third_party/quiche/src/http2/decoder/http2_frame_decoder_listener.h" #include "net/third_party/quiche/src/http2/http2_constants.h" #include "net/third_party/quiche/src/http2/http2_structures.h" #include "net/third_party/quiche/src/http2/platform/api/http2_bug_tracker.h" +#include "net/third_party/quiche/src/http2/platform/api/http2_logging.h" #include "net/third_party/quiche/src/http2/platform/api/http2_macros.h" namespace http2 { @@ -42,8 +41,8 @@ const Http2FrameHeader& frame_header = state->frame_header(); const uint32_t total_length = frame_header.payload_length; - DVLOG(2) << "PushPromisePayloadDecoder::StartDecodingPayload: " - << frame_header; + HTTP2_DVLOG(2) << "PushPromisePayloadDecoder::StartDecodingPayload: " + << frame_header; DCHECK_EQ(Http2FrameType::PUSH_PROMISE, frame_header.type); DCHECK_LE(db->Remaining(), total_length); @@ -66,9 +65,9 @@ DecodeStatus PushPromisePayloadDecoder::ResumeDecodingPayload( FrameDecoderState* state, DecodeBuffer* db) { - DVLOG(2) << "UnknownPayloadDecoder::ResumeDecodingPayload" - << " remaining_payload=" << state->remaining_payload() - << " db->Remaining=" << db->Remaining(); + HTTP2_DVLOG(2) << "UnknownPayloadDecoder::ResumeDecodingPayload" + << " remaining_payload=" << state->remaining_payload() + << " db->Remaining=" << db->Remaining(); const Http2FrameHeader& frame_header = state->frame_header(); DCHECK_EQ(Http2FrameType::PUSH_PROMISE, frame_header.type); @@ -77,7 +76,7 @@ DecodeStatus status; while (true) { - DVLOG(2) + HTTP2_DVLOG(2) << "PushPromisePayloadDecoder::ResumeDecodingPayload payload_state_=" << payload_state_; switch (payload_state_) {