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 <stdint.h> | 8 #include <stdint.h> |
9 #include <string.h> | 9 #include <string.h> |
10 | 10 |
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 pp::UMAPrivate uma_; | 304 pp::UMAPrivate uma_; |
305 | 305 |
306 // Used so that we only tell the browser once about an unsupported feature, to | 306 // Used so that we only tell the browser once about an unsupported feature, to |
307 // avoid the infobar going up more than once. | 307 // avoid the infobar going up more than once. |
308 bool told_browser_about_unsupported_feature_; | 308 bool told_browser_about_unsupported_feature_; |
309 | 309 |
310 // Keeps track of which unsupported features we reported, so we avoid spamming | 310 // Keeps track of which unsupported features we reported, so we avoid spamming |
311 // the stats if a feature shows up many times per document. | 311 // the stats if a feature shows up many times per document. |
312 std::set<std::string> unsupported_features_reported_; | 312 std::set<std::string> unsupported_features_reported_; |
313 | 313 |
314 #if defined(OS_LINUX) | |
315 // Keeps track of whether font substitution has been reported, so we avoid | 314 // Keeps track of whether font substitution has been reported, so we avoid |
316 // spamming the stats if a document requested multiple substitutes. | 315 // spamming the stats if a document requested multiple substitutes. |
317 bool font_substitution_reported_; | 316 bool font_substitution_reported_; |
318 #endif | |
319 | 317 |
320 // Number of pages in print preview mode, 0 if not in print preview mode. | 318 // Number of pages in print preview mode, 0 if not in print preview mode. |
321 int print_preview_page_count_; | 319 int print_preview_page_count_; |
322 std::vector<int> print_preview_page_numbers_; | 320 std::vector<int> print_preview_page_numbers_; |
323 | 321 |
324 // Used to manage loaded print preview page information. A |PreviewPageInfo| | 322 // Used to manage loaded print preview page information. A |PreviewPageInfo| |
325 // consists of data source url string and the page index in the destination | 323 // consists of data source url string and the page index in the destination |
326 // document. | 324 // document. |
327 typedef std::pair<std::string, int> PreviewPageInfo; | 325 typedef std::pair<std::string, int> PreviewPageInfo; |
328 std::queue<PreviewPageInfo> preview_pages_info_; | 326 std::queue<PreviewPageInfo> preview_pages_info_; |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
370 ACCESSIBILITY_STATE_PENDING, // Enabled but waiting for doc to load. | 368 ACCESSIBILITY_STATE_PENDING, // Enabled but waiting for doc to load. |
371 ACCESSIBILITY_STATE_LOADED | 369 ACCESSIBILITY_STATE_LOADED |
372 } accessibility_state_; | 370 } accessibility_state_; |
373 | 371 |
374 DISALLOW_COPY_AND_ASSIGN(OutOfProcessInstance); | 372 DISALLOW_COPY_AND_ASSIGN(OutOfProcessInstance); |
375 }; | 373 }; |
376 | 374 |
377 } // namespace chrome_pdf | 375 } // namespace chrome_pdf |
378 | 376 |
379 #endif // PDF_OUT_OF_PROCESS_INSTANCE_H_ | 377 #endif // PDF_OUT_OF_PROCESS_INSTANCE_H_ |
OLD | NEW |