#include "components/feedback/feedback_data.h"
#include <utility>
#include "base/files/file_util.h"
#include "base/functional/bind.h"
#include "base/json/json_string_value_serializer.h"
#include "base/memory/ref_counted_memory.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
#include "base/task/thread_pool.h"
#include "base/values.h"
#include "components/feedback/feedback_util.h"
#include "components/feedback/proto/extension.pb.h"
#include "components/feedback/tracing_manager.h"
namespace feedback {
namespace {
const char kTraceFilename[] = …;
const char kPerformanceCategoryTag[] = …;
const base::FilePath::CharType kAutofillMetadataFilename[] = …);
const char kAutofillMetadataAttachmentName[] = …;
const base::FilePath::CharType kHistogramsFilename[] = …);
const char kHistogramsAttachmentName[] = …;
}
FeedbackData::FeedbackData(base::WeakPtr<feedback::FeedbackUploader> uploader,
TracingManager* tracing_manager)
: … { … }
FeedbackData::~FeedbackData() = default;
void FeedbackData::OnFeedbackPageDataComplete() { … }
void FeedbackData::CompressSystemInfo() { … }
void FeedbackData::SetAndCompressHistograms(std::string histograms) { … }
void FeedbackData::CompressAutofillMetadata() { … }
void FeedbackData::AttachAndCompressFileData(std::string attached_filedata) { … }
void FeedbackData::OnGetTraceData(
int trace_id,
scoped_refptr<base::RefCountedString> trace_data) { … }
void FeedbackData::OnCompressComplete() { … }
bool FeedbackData::IsDataComplete() { … }
void FeedbackData::SendReport() { … }
}