#include "components/feedback/content/content_tracing_manager.h"
#include "base/functional/bind.h"
#include "base/location.h"
#include "base/memory/ptr_util.h"
#include "base/memory/ref_counted_memory.h"
#include "base/task/single_thread_task_runner.h"
#include "base/task/thread_pool.h"
#include "base/trace_event/trace_config.h"
#include "components/feedback/feedback_util.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/tracing_controller.h"
namespace {
ContentTracingManager* g_tracing_manager = …;
int g_next_trace_id = …;
const base::FilePath::CharType kTracingFilename[] = …);
scoped_refptr<base::RefCountedString> CompressTraceData(
std::unique_ptr<std::string> trace_data) { … }
}
ContentTracingManager::ContentTracingManager() { … }
ContentTracingManager::~ContentTracingManager() { … }
int ContentTracingManager::RequestTrace() { … }
bool ContentTracingManager::GetTraceData(int id, TraceDataCallback callback) { … }
void ContentTracingManager::DiscardTraceData(int id) { … }
base::WeakPtr<TracingManager> ContentTracingManager::AsWeakPtr() { … }
void ContentTracingManager::StartTracing() { … }
void ContentTracingManager::OnTraceDataCollected(
std::unique_ptr<std::string> trace_data) { … }
void ContentTracingManager::OnTraceDataCompressed(
scoped_refptr<base::RefCountedString> compressed_data) { … }
std::unique_ptr<ContentTracingManager> ContentTracingManager::Create() { … }
ContentTracingManager* ContentTracingManager::Get() { … }