summaryrefslogtreecommitdiffstats
path: root/chrome/service/cloud_print/cdd_conversion_win.h
blob: 0e9c3dbd033cec9ccee1884124108687b31b38af (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
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CHROME_SERVICE_CLOUD_PRINT_CDD_CONVERSION_WIN_H_
#define CHROME_SERVICE_CLOUD_PRINT_CDD_CONVERSION_WIN_H_

#include <string>
#include <windows.h>

#include "base/memory/scoped_ptr.h"
#include "base/strings/string16.h"

namespace cloud_print {

bool IsValidCjt(const std::string& print_ticket);

scoped_ptr<DEVMODE, base::FreeDeleter> CjtToDevMode(
    const base::string16& printer_name,
    const std::string& print_ticket);

}  // namespace cloud_print

#endif  // CHROME_SERVICE_CLOUD_PRINT_CDD_CONVERSION_WIN_H_