summaryrefslogtreecommitdiffstats
path: root/printing/pdf_metafile_cg_mac.h
diff options
context:
space:
mode:
authoravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-02 19:50:50 +0000
committeravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-02 19:50:50 +0000
commitdf6df689c5b61d17c5b18607c454152b6cc9ec8a (patch)
tree5e02d0ff5549ea24ebb7653607098b6a0b30e654 /printing/pdf_metafile_cg_mac.h
parent43c48fb9f34da682482635dae6ebf1b3dcdae560 (diff)
downloadchromium_src-df6df689c5b61d17c5b18607c454152b6cc9ec8a.zip
chromium_src-df6df689c5b61d17c5b18607c454152b6cc9ec8a.tar.gz
chromium_src-df6df689c5b61d17c5b18607c454152b6cc9ec8a.tar.bz2
Horrible hack to work around PDFKit bug.
BUG=64641 TEST=attempt to print pdf linked to in comment 4; shouldn't sad-tab. Review URL: http://codereview.chromium.org/6903147 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83765 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing/pdf_metafile_cg_mac.h')
-rw-r--r--printing/pdf_metafile_cg_mac.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/printing/pdf_metafile_cg_mac.h b/printing/pdf_metafile_cg_mac.h
index 92157e1..bffbce5 100644
--- a/printing/pdf_metafile_cg_mac.h
+++ b/printing/pdf_metafile_cg_mac.h
@@ -11,6 +11,7 @@
#include "base/basictypes.h"
#include "base/gtest_prod_util.h"
#include "base/mac/scoped_cftyperef.h"
+#include "base/threading/thread_checker.h"
#include "printing/metafile.h"
class FilePath;
@@ -24,7 +25,7 @@ class Point;
namespace printing {
// This class creates a graphics context that renders into a PDF data stream.
-class PdfMetafileCg : public Metafile {
+class PdfMetafileCg : public Metafile, public base::ThreadChecker {
public:
PdfMetafileCg();
virtual ~PdfMetafileCg();
@@ -80,6 +81,9 @@ class PdfMetafileCg : public Metafile {
// Whether or not a page is currently open.
bool page_is_open_;
+ // Whether this instantiation of the PdfMetafileCg owns the thread_pdf_docs.
+ bool thread_pdf_docs_owned_;
+
DISALLOW_COPY_AND_ASSIGN(PdfMetafileCg);
};