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

Unified Diff: printing/printed_document.h

Issue 568633002: Extracted MetafilePlayer interface from printing::MetafilePlayer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@no_expose
Patch Set: Thu Sep 11 22:54:16 PDT 2014 Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « printing/print_dialog_gtk_interface.h ('k') | printing/printed_document.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/printed_document.h
diff --git a/printing/printed_document.h b/printing/printed_document.h
index 4d0e41ec5d0f17d5bd91ec48f6686ff26df7af90..47c9ec71a664ce0481930dd2309b2e39c0885cb3 100644
--- a/printing/printed_document.h
+++ b/printing/printed_document.h
@@ -9,6 +9,7 @@
#include "base/files/file_path.h"
#include "base/memory/ref_counted.h"
+#include "base/memory/scoped_ptr.h"
#include "base/strings/string16.h"
#include "base/synchronization/lock.h"
#include "printing/print_settings.h"
@@ -21,7 +22,7 @@ class TaskRunner;
namespace printing {
-class Metafile;
+class MetafilePlayer;
class PrintedPage;
class PrintedPagesSource;
class PrintingContext;
@@ -45,7 +46,7 @@ class PRINTING_EXPORT PrintedDocument
// Sets a page's data. 0-based. Takes metafile ownership.
// Note: locks for a short amount of time.
void SetPage(int page_number,
- Metafile* metafile,
+ scoped_ptr<MetafilePlayer> metafile,
#if defined(OS_WIN)
double shrink,
#endif // OS_WIN
@@ -76,10 +77,6 @@ class PRINTING_EXPORT PrintedDocument
// the source is being destroyed.
void DisconnectSource();
- // Retrieves the current memory usage of the renderer pages.
- // Note: locks for a short amount of time.
- uint32 MemoryUsage() const;
-
// Sets the number of pages in the document to be rendered. Can only be set
// once.
// Note: locks for a short amount of time.
« no previous file with comments | « printing/print_dialog_gtk_interface.h ('k') | printing/printed_document.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698