Only use safe browsing IPC messages when safe browsing is enabled.
[chromium-blink-merge.git] / pdf / number_image_generator.h
blob51ffd3ec3d381b4bdb0b0c501f2f5f995987ea35
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
3 // found in the LICENSE file.
5 #ifndef PDF_NUMBER_IMAGE_GENERATOR_H
6 #define PDF_NUMBER_IMAGE_GENERATOR_H
8 #include <vector>
10 #include "ppapi/cpp/image_data.h"
12 namespace chrome_pdf {
14 class Instance;
16 class NumberImageGenerator {
17 public:
18 explicit NumberImageGenerator(Instance* instance);
19 virtual ~NumberImageGenerator();
21 void Configure(const pp::ImageData& number_background,
22 const std::vector<pp::ImageData>& number_images,
23 float device_scale);
25 void GenerateImage(int page_number, pp::ImageData* image);
27 private:
28 Instance* instance_;
29 pp::ImageData number_background_;
30 std::vector<pp::ImageData> number_images_;
31 float device_scale_;
34 } // namespace chrome_pdf
36 #endif // PDF_NUMBER_IMAGE_GENERATOR_H