summaryrefslogtreecommitdiffstats
path: root/third_party/content_analysis_sdk/agent/src/scoped_print_handle_mac.cc
blob: 316576bf90cebdc050f694617fbadbf5d23e80eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Copyright 2023 The Chromium Authors.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "scoped_print_handle_mac.h"

namespace content_analysis {
namespace sdk {

std::unique_ptr<ScopedPrintHandle>
CreateScopedPrintHandle(const ContentAnalysisRequest& request,
                        int64_t browser_pid) {
  if (!request.has_print_data() || !request.print_data().has_handle()) {
    return nullptr;
  }

  return std::make_unique<ScopedPrintHandleMac>(request.print_data());
}

ScopedPrintHandleMac::ScopedPrintHandleMac(
    const ContentAnalysisRequest::PrintData& print_data)
    : ScopedPrintHandleBase(print_data) {
  // TODO
}

ScopedPrintHandleMac::~ScopedPrintHandleMac() {
  // TODO
}

const char* ScopedPrintHandleMac::data() {
  // TODO
  return nullptr;
}

}  // namespace sdk
}  // namespace content_analysis