| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef PRINTING_PRINTED_DOCUMENT_H_ | 5 #ifndef PRINTING_PRINTED_DOCUMENT_H_ |
| 6 #define PRINTING_PRINTED_DOCUMENT_H_ | 6 #define PRINTING_PRINTED_DOCUMENT_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 // Warning: Lock must be held when accessing this member. | 120 // Warning: Lock must be held when accessing this member. |
| 121 PrintedPages pages_; | 121 PrintedPages pages_; |
| 122 | 122 |
| 123 // Number of expected pages to be rendered. | 123 // Number of expected pages to be rendered. |
| 124 // Warning: Lock must be held when accessing this member. | 124 // Warning: Lock must be held when accessing this member. |
| 125 int expected_page_count_; | 125 int expected_page_count_; |
| 126 | 126 |
| 127 // The total number of pages in the document. | 127 // The total number of pages in the document. |
| 128 int page_count_; | 128 int page_count_; |
| 129 | 129 |
| 130 // Shrink done in comparison to desired_dpi. | |
| 131 double shrink_factor; | |
| 132 | |
| 133 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 130 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
| 134 // Page number of the first page. | 131 // Page number of the first page. |
| 135 int first_page; | 132 int first_page; |
| 136 #endif | 133 #endif |
| 137 }; | 134 }; |
| 138 | 135 |
| 139 // Contains all the immutable stuff. All this stuff can be accessed without | 136 // Contains all the immutable stuff. All this stuff can be accessed without |
| 140 // any lock held. This is because it can't be changed after the object's | 137 // any lock held. This is because it can't be changed after the object's |
| 141 // construction. | 138 // construction. |
| 142 struct Immutable { | 139 struct Immutable { |
| (...skipping 30 matching lines...) Expand all Loading... |
| 173 | 170 |
| 174 // All the immutable members. | 171 // All the immutable members. |
| 175 const Immutable immutable_; | 172 const Immutable immutable_; |
| 176 | 173 |
| 177 DISALLOW_COPY_AND_ASSIGN(PrintedDocument); | 174 DISALLOW_COPY_AND_ASSIGN(PrintedDocument); |
| 178 }; | 175 }; |
| 179 | 176 |
| 180 } // namespace printing | 177 } // namespace printing |
| 181 | 178 |
| 182 #endif // PRINTING_PRINTED_DOCUMENT_H_ | 179 #endif // PRINTING_PRINTED_DOCUMENT_H_ |
| OLD | NEW |