1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 CHROME_SERVICE_CLOUD_PRINT_CDD_CONVERSION_WIN_H_ 6 #define CHROME_SERVICE_CLOUD_PRINT_CDD_CONVERSION_WIN_H_ 7 8 #include <windows.h> 9 10 #include <memory> 11 #include <string> 12 13 #include "base/memory/free_deleter.h" 14 #include "base/strings/string16.h" 15 16 namespace cloud_print { 17 18 bool IsValidCjt(const std::string& print_ticket); 19 20 std::unique_ptr<DEVMODE, base::FreeDeleter> CjtToDevMode( 21 const base::string16& printer_name, 22 const std::string& print_ticket); 23 24 } // namespace cloud_print 25 26 #endif // CHROME_SERVICE_CLOUD_PRINT_CDD_CONVERSION_WIN_H_ 27