tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

scoped_print_handle_posix.cc (904B)


      1 // Copyright 2023 The Chromium Authors.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 #include "scoped_print_handle_posix.h"
      6 
      7 namespace content_analysis {
      8 namespace sdk {
      9 
     10 std::unique_ptr<ScopedPrintHandle>
     11 CreateScopedPrintHandle(const ContentAnalysisRequest& request,
     12                        int64_t browser_pid) {
     13  if (!request.has_print_data() || !request.print_data().has_handle()) {
     14    return nullptr;
     15  }
     16 
     17  return std::make_unique<ScopedPrintHandlePosix>(request.print_data());
     18 }
     19 
     20 ScopedPrintHandlePosix::ScopedPrintHandlePosix(
     21    const ContentAnalysisRequest::PrintData& print_data)
     22    : ScopedPrintHandleBase(print_data) {
     23  // TODO
     24 }
     25 
     26 ScopedPrintHandlePosix::~ScopedPrintHandlePosix() {
     27  // TODO
     28 }
     29 
     30 const char* ScopedPrintHandlePosix::data() {
     31  // TODO
     32  return nullptr;
     33 }
     34 
     35 }  // namespace sdk
     36 }  // namespace content_analysis