Fix the coverage build which used to complain about the missing pyautolib target.
[chromium-blink-merge.git] / printing / print_destination_interface.h
blob715f529d026f753214a938e74682fb57147dbc61
1 // Copyright (c) 2012 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 PRINTING_PRINT_DESTINATION_INTERFACE_H_
6 #define PRINTING_PRINT_DESTINATION_INTERFACE_H_
8 #include "base/memory/ref_counted.h"
9 #include "printing/printing_export.h"
11 namespace printing {
13 class PrintDestinationInterface
14 : public base::RefCountedThreadSafe<PrintDestinationInterface> {
15 public:
16 // Sets the number of pages to print as soon as it is known.
17 virtual void SetPageCount(int page_count) = 0;
19 // Sets the metafile bits for a given page as soon as it is ready.
20 virtual void SetPageContent(int page_number,
21 void* content,
22 size_t content_size) = 0;
23 protected:
24 friend class base::RefCountedThreadSafe<PrintDestinationInterface>;
25 virtual ~PrintDestinationInterface() {}
28 PRINTING_EXPORT PrintDestinationInterface* CreatePrintDestination();
30 } // namespace printing
32 #endif // PRINTING_PRINT_DESTINATION_INTERFACE_H_