scoped_print_handle_win.h (779B)
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 #ifndef CONTENT_ANALYSIS_AGENT_SRC_SCOPED_PRINT_HANDLE_WIN_H_ 6 #define CONTENT_ANALYSIS_AGENT_SRC_SCOPED_PRINT_HANDLE_WIN_H_ 7 8 #include <windows.h> 9 10 #include "scoped_print_handle_base.h" 11 12 namespace content_analysis { 13 namespace sdk { 14 15 class ScopedPrintHandleWin : public ScopedPrintHandleBase { 16 public: 17 ScopedPrintHandleWin(const ContentAnalysisRequest::PrintData& print_data); 18 ~ScopedPrintHandleWin() override; 19 20 const char* data() override; 21 private: 22 void* mapped_ = nullptr; 23 HANDLE handle_ = nullptr; 24 }; 25 26 } // namespace sdk 27 } // namespace content_analysis 28 29 #endif // CONTENT_ANALYSIS_AGENT_SRC_SCOPED_PRINT_HANDLE_WIN_H_