OLD | NEW |
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_OUT_OF_PROCESS_INSTANCE_H_ | 5 #ifndef PDF_OUT_OF_PROCESS_INSTANCE_H_ |
6 #define PDF_OUT_OF_PROCESS_INSTANCE_H_ | 6 #define PDF_OUT_OF_PROCESS_INSTANCE_H_ |
7 | 7 |
8 #include <queue> | 8 #include <queue> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 // To know whether this was an actual print operation, so we don't double | 250 // To know whether this was an actual print operation, so we don't double |
251 // count UMA logging. | 251 // count UMA logging. |
252 bool print_pages_called_; | 252 bool print_pages_called_; |
253 PP_PrintSettings_Dev pepper_print_settings; | 253 PP_PrintSettings_Dev pepper_print_settings; |
254 }; | 254 }; |
255 | 255 |
256 PrintSettings print_settings_; | 256 PrintSettings print_settings_; |
257 | 257 |
258 scoped_ptr<PDFEngine> engine_; | 258 scoped_ptr<PDFEngine> engine_; |
259 | 259 |
| 260 // The PreviewModeClient used for print preview. Will be passed to |
| 261 // |preview_engine_|. |
| 262 scoped_ptr<PreviewModeClient> preview_client_; |
| 263 |
260 // This engine is used to render the individual preview page data. This is | 264 // This engine is used to render the individual preview page data. This is |
261 // used only in print preview mode. This will use |PreviewModeClient| | 265 // used only in print preview mode. This will use |PreviewModeClient| |
262 // interface which has very limited access to the pp::Instance. | 266 // interface which has very limited access to the pp::Instance. |
263 scoped_ptr<PDFEngine> preview_engine_; | 267 scoped_ptr<PDFEngine> preview_engine_; |
264 | 268 |
265 std::string url_; | 269 std::string url_; |
266 | 270 |
267 // Used for submitting forms. | 271 // Used for submitting forms. |
268 pp::CompletionCallbackFactory<OutOfProcessInstance> form_factory_; | 272 pp::CompletionCallbackFactory<OutOfProcessInstance> form_factory_; |
269 pp::URLLoader form_loader_; | 273 pp::URLLoader form_loader_; |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
336 // The blank space above the first page of the document reserved for the | 340 // The blank space above the first page of the document reserved for the |
337 // toolbar. | 341 // toolbar. |
338 int top_toolbar_height_; | 342 int top_toolbar_height_; |
339 | 343 |
340 DISALLOW_COPY_AND_ASSIGN(OutOfProcessInstance); | 344 DISALLOW_COPY_AND_ASSIGN(OutOfProcessInstance); |
341 }; | 345 }; |
342 | 346 |
343 } // namespace chrome_pdf | 347 } // namespace chrome_pdf |
344 | 348 |
345 #endif // PDF_OUT_OF_PROCESS_INSTANCE_H_ | 349 #endif // PDF_OUT_OF_PROCESS_INSTANCE_H_ |
OLD | NEW |