Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(49)

Side by Side Diff: extensions/browser/api/printer_provider/printer_provider_print_job.h

Issue 922833004: Make PrinterProviderAPI a pure interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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.
4
5 #ifndef EXTENSIONS_BROWSER_API_PRINTER_PROVIDER_PRINTER_PROVIDER_PRINT_JOB_H_
6 #define EXTENSIONS_BROWSER_API_PRINTER_PROVIDER_PRINTER_PROVIDER_PRINT_JOB_H_
7
8 #include <string>
9
10 #include "base/macros.h"
11 #include "base/memory/ref_counted.h"
12 #include "base/memory/ref_counted_memory.h"
13
14 namespace extensions {
15
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();
21
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;
28
29 // The print job ticket.
30 std::string ticket_json;
31
32 // Content type of the document that should be printed.
33 std::string content_type;
34
35 // The document data that should be printed.
36 scoped_refptr<base::RefCountedMemory> document_bytes;
37
38 private:
39 DISALLOW_COPY_AND_ASSIGN(PrinterProviderPrintJob);
40 };
41
42 } // namespace extensions
43
44 #endif // EXTENSIONS_BROWSER_API_PRINTER_PROVIDER_PRINTER_PROVIDER_PRINT_JOB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698