| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_SERVICE_CLOUD_PRINT_CDD_CONVERSION_WIN_H_ | 5 #ifndef CHROME_SERVICE_CLOUD_PRINT_CDD_CONVERSION_WIN_H_ |
| 6 #define CHROME_SERVICE_CLOUD_PRINT_CDD_CONVERSION_WIN_H_ | 6 #define CHROME_SERVICE_CLOUD_PRINT_CDD_CONVERSION_WIN_H_ |
| 7 | 7 |
| 8 #include <windows.h> | 8 #include <windows.h> |
| 9 | 9 |
| 10 #include <memory> |
| 10 #include <string> | 11 #include <string> |
| 11 | 12 |
| 12 #include "base/memory/free_deleter.h" | 13 #include "base/memory/free_deleter.h" |
| 13 #include "base/memory/scoped_ptr.h" | |
| 14 #include "base/strings/string16.h" | 14 #include "base/strings/string16.h" |
| 15 | 15 |
| 16 namespace cloud_print { | 16 namespace cloud_print { |
| 17 | 17 |
| 18 bool IsValidCjt(const std::string& print_ticket); | 18 bool IsValidCjt(const std::string& print_ticket); |
| 19 | 19 |
| 20 scoped_ptr<DEVMODE, base::FreeDeleter> CjtToDevMode( | 20 std::unique_ptr<DEVMODE, base::FreeDeleter> CjtToDevMode( |
| 21 const base::string16& printer_name, | 21 const base::string16& printer_name, |
| 22 const std::string& print_ticket); | 22 const std::string& print_ticket); |
| 23 | 23 |
| 24 } // namespace cloud_print | 24 } // namespace cloud_print |
| 25 | 25 |
| 26 #endif // CHROME_SERVICE_CLOUD_PRINT_CDD_CONVERSION_WIN_H_ | 26 #endif // CHROME_SERVICE_CLOUD_PRINT_CDD_CONVERSION_WIN_H_ |
| OLD | NEW |