chromium/components/feedback/content/content_tracing_manager.cc

// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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 {

// Only once trace manager can exist at a time.
ContentTracingManager* g_tracing_manager =;
// Trace IDs start at 1 and increase.
int g_next_trace_id =;
// Name of the file to store the tracing data as.
const base::FilePath::CharType kTracingFilename[] =);

scoped_refptr<base::RefCountedString> CompressTraceData(
    std::unique_ptr<std::string> trace_data) {}

}  // namespace

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) {}

// static
std::unique_ptr<ContentTracingManager> ContentTracingManager::Create() {}

ContentTracingManager* ContentTracingManager::Get() {}