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

Side by Side Diff: pdf/pdfium/pdfium_engine.h

Issue 1881013004: Convert pdf/ to use std::unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 unified diff | Download patch
« no previous file with comments | « pdf/out_of_process_instance.h ('k') | pdf/pdfium/pdfium_engine.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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 PDF_PDFIUM_PDFIUM_ENGINE_H_ 5 #ifndef PDF_PDFIUM_PDFIUM_ENGINE_H_
6 #define PDF_PDFIUM_PDFIUM_ENGINE_H_ 6 #define PDF_PDFIUM_PDFIUM_ENGINE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include <map> 11 #include <map>
12 #include <memory>
12 #include <string> 13 #include <string>
13 #include <utility> 14 #include <utility>
14 #include <vector> 15 #include <vector>
15 16
16 #include "base/macros.h" 17 #include "base/macros.h"
17 #include "base/memory/scoped_ptr.h"
18 #include "base/time/time.h" 18 #include "base/time/time.h"
19 #include "pdf/document_loader.h" 19 #include "pdf/document_loader.h"
20 #include "pdf/pdf_engine.h" 20 #include "pdf/pdf_engine.h"
21 #include "pdf/pdfium/pdfium_page.h" 21 #include "pdf/pdfium/pdfium_page.h"
22 #include "pdf/pdfium/pdfium_range.h" 22 #include "pdf/pdfium/pdfium_range.h"
23 #include "ppapi/cpp/completion_callback.h" 23 #include "ppapi/cpp/completion_callback.h"
24 #include "ppapi/cpp/dev/buffer_dev.h" 24 #include "ppapi/cpp/dev/buffer_dev.h"
25 #include "ppapi/cpp/image_data.h" 25 #include "ppapi/cpp/image_data.h"
26 #include "ppapi/cpp/point.h" 26 #include "ppapi/cpp/point.h"
27 #include "ppapi/cpp/var_array.h" 27 #include "ppapi/cpp/var_array.h"
(...skipping 669 matching lines...) Expand 10 before | Expand all | Expand 10 after
697 std::vector<ProgressivePaint> progressive_paints_; 697 std::vector<ProgressivePaint> progressive_paints_;
698 698
699 // Keeps track of when we started the last progressive paint, so that in our 699 // Keeps track of when we started the last progressive paint, so that in our
700 // callback we can determine if we need to pause. 700 // callback we can determine if we need to pause.
701 base::Time last_progressive_start_time_; 701 base::Time last_progressive_start_time_;
702 702
703 // The timeout to use for the current progressive paint. 703 // The timeout to use for the current progressive paint.
704 int progressive_paint_timeout_; 704 int progressive_paint_timeout_;
705 705
706 // Shadow matrix for generating the page shadow bitmap. 706 // Shadow matrix for generating the page shadow bitmap.
707 scoped_ptr<ShadowMatrix> page_shadow_; 707 std::unique_ptr<ShadowMatrix> page_shadow_;
708 708
709 // Set to true if the user is being prompted for their password. Will be set 709 // Set to true if the user is being prompted for their password. Will be set
710 // to false after the user finishes getting their password. 710 // to false after the user finishes getting their password.
711 bool getting_password_; 711 bool getting_password_;
712 712
713 DISALLOW_COPY_AND_ASSIGN(PDFiumEngine); 713 DISALLOW_COPY_AND_ASSIGN(PDFiumEngine);
714 }; 714 };
715 715
716 // Create a local variable of this when calling PDFium functions which can call 716 // Create a local variable of this when calling PDFium functions which can call
717 // our global callback when an unsupported feature is reached. 717 // our global callback when an unsupported feature is reached.
(...skipping 30 matching lines...) Expand all
748 bool GetPDFPageSizeByIndex(const void* pdf_buffer, 748 bool GetPDFPageSizeByIndex(const void* pdf_buffer,
749 int pdf_buffer_size, 749 int pdf_buffer_size,
750 int page_number, 750 int page_number,
751 double* width, 751 double* width,
752 double* height) override; 752 double* height) override;
753 }; 753 };
754 754
755 } // namespace chrome_pdf 755 } // namespace chrome_pdf
756 756
757 #endif // PDF_PDFIUM_PDFIUM_ENGINE_H_ 757 #endif // PDF_PDFIUM_PDFIUM_ENGINE_H_
OLDNEW
« no previous file with comments | « pdf/out_of_process_instance.h ('k') | pdf/pdfium/pdfium_engine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698