| 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/ref_counted.h" | 10 #include "base/ref_counted.h" |
| 11 #include "base/scoped_ptr.h" | 11 #include "base/scoped_ptr.h" |
| 12 #include "base/string16.h" | 12 #include "base/string16.h" |
| 13 #include "base/synchronization/lock.h" | 13 #include "base/synchronization/lock.h" |
| 14 #include "googleurl/src/gurl.h" | 14 #include "googleurl/src/gurl.h" |
| 15 #include "printing/print_settings.h" | 15 #include "printing/print_settings.h" |
| 16 #include "printing/native_metafile.h" |
| 16 #include "ui/gfx/native_widget_types.h" | 17 #include "ui/gfx/native_widget_types.h" |
| 17 | 18 |
| 18 class FilePath; | 19 class FilePath; |
| 19 class MessageLoop; | 20 class MessageLoop; |
| 20 | 21 |
| 21 namespace gfx { | 22 namespace gfx { |
| 22 class Font; | 23 class Font; |
| 23 } | 24 } |
| 24 | 25 |
| 25 namespace printing { | 26 namespace printing { |
| 26 | 27 |
| 27 class NativeMetafile; | |
| 28 class PrintedPage; | 28 class PrintedPage; |
| 29 class PrintedPagesSource; | 29 class PrintedPagesSource; |
| 30 class PrintingContext; | 30 class PrintingContext; |
| 31 | 31 |
| 32 // A collection of rendered pages. The settings are immutable. If the print | 32 // A collection of rendered pages. The settings are immutable. If the print |
| 33 // settings are changed, a new PrintedDocument must be created. | 33 // settings are changed, a new PrintedDocument must be created. |
| 34 // Warning: May be accessed from many threads at the same time. Only one thread | 34 // Warning: May be accessed from many threads at the same time. Only one thread |
| 35 // will have write access. Sensible functions are protected by a lock. | 35 // will have write access. Sensible functions are protected by a lock. |
| 36 // Warning: Once a page is loaded, it cannot be replaced. Pages may be discarded | 36 // Warning: Once a page is loaded, it cannot be replaced. Pages may be discarded |
| 37 // under low memory conditions. | 37 // under low memory conditions. |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 | 207 |
| 208 // All the immutable members. | 208 // All the immutable members. |
| 209 const Immutable immutable_; | 209 const Immutable immutable_; |
| 210 | 210 |
| 211 DISALLOW_COPY_AND_ASSIGN(PrintedDocument); | 211 DISALLOW_COPY_AND_ASSIGN(PrintedDocument); |
| 212 }; | 212 }; |
| 213 | 213 |
| 214 } // namespace printing | 214 } // namespace printing |
| 215 | 215 |
| 216 #endif // PRINTING_PRINTED_DOCUMENT_H_ | 216 #endif // PRINTING_PRINTED_DOCUMENT_H_ |
| OLD | NEW |