blob: 715f529d026f753214a938e74682fb57147dbc61 (
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
25
26
27
28
29
30
31
32
|
// Copyright (c) 2012 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 PRINTING_PRINT_DESTINATION_INTERFACE_H_
#define PRINTING_PRINT_DESTINATION_INTERFACE_H_
#include "base/memory/ref_counted.h"
#include "printing/printing_export.h"
namespace printing {
class PrintDestinationInterface
: public base::RefCountedThreadSafe<PrintDestinationInterface> {
public:
// Sets the number of pages to print as soon as it is known.
virtual void SetPageCount(int page_count) = 0;
// Sets the metafile bits for a given page as soon as it is ready.
virtual void SetPageContent(int page_number,
void* content,
size_t content_size) = 0;
protected:
friend class base::RefCountedThreadSafe<PrintDestinationInterface>;
virtual ~PrintDestinationInterface() {}
};
PRINTING_EXPORT PrintDestinationInterface* CreatePrintDestination();
} // namespace printing
#endif // PRINTING_PRINT_DESTINATION_INTERFACE_H_
|