#include "chrome/browser/printing/print_preview_data_service.h"
#include <utility>
#include "base/containers/contains.h"
#include "base/dcheck_is_on.h"
#include "base/memory/ref_counted_memory.h"
#include "base/memory/singleton.h"
#include "build/build_config.h"
#include "printing/print_job_constants.h"
#include "printing/printing_utils.h"
#if BUILDFLAG(IS_WIN)
#include "chrome/browser/printing/xps_features.h"
#endif
class PrintPreviewDataStore { … };
PrintPreviewDataService* PrintPreviewDataService::GetInstance() { … }
PrintPreviewDataService::PrintPreviewDataService() { … }
PrintPreviewDataService::~PrintPreviewDataService() { … }
void PrintPreviewDataService::GetDataEntry(
int32_t preview_ui_id,
int index,
scoped_refptr<base::RefCountedMemory>* data_bytes) const { … }
void PrintPreviewDataService::SetDataEntry(
int32_t preview_ui_id,
int index,
scoped_refptr<base::RefCountedMemory> data_bytes) { … }
void PrintPreviewDataService::RemoveEntry(int32_t preview_ui_id) { … }