// Copyright 2019 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_LOGGING_LOG_BUFFER_SUBMITTER_H_ #define COMPONENTS_AUTOFILL_CORE_BROWSER_LOGGING_LOG_BUFFER_SUBMITTER_H_ #include "base/memory/raw_ptr.h" #include "components/autofill/core/common/logging/log_buffer.h" namespace autofill { class LogManager; // A container for a LogBuffer that submits the buffer to the passed destination // on destruction. // // Use it in the following way: // LogBufferSubmitter(destination) << "Foobar"; // The submitter is destroyed after this statement and "Foobar" is logged. class LogBufferSubmitter { … }; } // namespace autofill #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_LOGGING_LOG_BUFFER_SUBMITTER_H_