ozone: evdev: Sync caps lock LED state to evdev
[chromium-blink-merge.git] / extensions / browser / api / printer_provider / printer_provider_print_job.h
blob36967c4f3daa3293db495280925daae0a5fd7b39
1 // Copyright 2015 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.
5 #ifndef EXTENSIONS_BROWSER_API_PRINTER_PROVIDER_PRINTER_PROVIDER_PRINT_JOB_H_
6 #define EXTENSIONS_BROWSER_API_PRINTER_PROVIDER_PRINTER_PROVIDER_PRINT_JOB_H_
8 #include <string>
10 #include "base/macros.h"
11 #include "base/memory/ref_counted.h"
12 #include "base/memory/ref_counted_memory.h"
14 namespace extensions {
16 // Struct describing print job that should be forwarded to an extension via
17 // chrome.printerProvider.onPrintRequested event.
18 struct PrinterProviderPrintJob {
19 PrinterProviderPrintJob();
20 ~PrinterProviderPrintJob();
22 // The id of the printer that should handle the print job. The id is
23 // formatted as <extension_id>:<printer_id>, where <extension_id> is the
24 // id of the extension that manages the printer, and <printer_id> is
25 // the the printer's id within the extension (as reported via
26 // chrome.printerProvider.onGetPrintersRequested event callback).
27 std::string printer_id;
29 // The print job ticket.
30 std::string ticket_json;
32 // Content type of the document that should be printed.
33 std::string content_type;
35 // The document data that should be printed.
36 scoped_refptr<base::RefCountedMemory> document_bytes;
38 private:
39 DISALLOW_COPY_AND_ASSIGN(PrinterProviderPrintJob);
42 } // namespace extensions
44 #endif // EXTENSIONS_BROWSER_API_PRINTER_PROVIDER_PRINTER_PROVIDER_PRINT_JOB_H_