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

Side by Side Diff: chrome/utility/chrome_content_utility_client.h

Issue 10892023: Force avatar and wallpaper decoding to use robust JPEG. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: reordered. Created 8 years, 3 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 | Annotate | Revision Log
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 CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_ 5 #ifndef CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_
6 #define CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_ 6 #define CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/platform_file.h" 10 #include "base/platform_file.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 int location, int creation_flags); 53 int location, int creation_flags);
54 void OnUnpackWebResource(const std::string& resource_data); 54 void OnUnpackWebResource(const std::string& resource_data);
55 void OnParseUpdateManifest(const std::string& xml); 55 void OnParseUpdateManifest(const std::string& xml);
56 void OnDecodeImage(const std::vector<unsigned char>& encoded_data); 56 void OnDecodeImage(const std::vector<unsigned char>& encoded_data);
57 void OnDecodeImageBase64(const std::string& encoded_data); 57 void OnDecodeImageBase64(const std::string& encoded_data);
58 void OnRenderPDFPagesToMetafile( 58 void OnRenderPDFPagesToMetafile(
59 base::PlatformFile pdf_file, 59 base::PlatformFile pdf_file,
60 const FilePath& metafile_path, 60 const FilePath& metafile_path,
61 const printing::PdfRenderSettings& pdf_render_settings, 61 const printing::PdfRenderSettings& pdf_render_settings,
62 const std::vector<printing::PageRange>& page_ranges); 62 const std::vector<printing::PageRange>& page_ranges);
63 void OnRobustJPEGDecodeImage(
64 const std::vector<unsigned char>& encoded_data);
63 void OnParseJSON(const std::string& json); 65 void OnParseJSON(const std::string& json);
64 66
65 #if defined(OS_WIN) 67 #if defined(OS_WIN)
66 // Helper method for Windows. 68 // Helper method for Windows.
67 // |highest_rendered_page_number| is set to -1 on failure to render any page. 69 // |highest_rendered_page_number| is set to -1 on failure to render any page.
68 bool RenderPDFToWinMetafile( 70 bool RenderPDFToWinMetafile(
69 base::PlatformFile pdf_file, 71 base::PlatformFile pdf_file,
70 const FilePath& metafile_path, 72 const FilePath& metafile_path,
71 const gfx::Rect& render_area, 73 const gfx::Rect& render_area,
72 int render_dpi, 74 int render_dpi,
73 bool autorotate, 75 bool autorotate,
74 const std::vector<printing::PageRange>& page_ranges, 76 const std::vector<printing::PageRange>& page_ranges,
75 int* highest_rendered_page_number, 77 int* highest_rendered_page_number,
76 double* scale_factor); 78 double* scale_factor);
77 #endif // defined(OS_WIN) 79 #endif // defined(OS_WIN)
78 80
79 void OnGetPrinterCapsAndDefaults(const std::string& printer_name); 81 void OnGetPrinterCapsAndDefaults(const std::string& printer_name);
80 82
81 scoped_ptr<ProfileImportHandler> import_handler_; 83 scoped_ptr<ProfileImportHandler> import_handler_;
82 }; 84 };
83 85
84 } // namespace chrome 86 } // namespace chrome
85 87
86 #endif // CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_ 88 #endif // CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/common/chrome_utility_messages.h ('k') | chrome/utility/chrome_content_utility_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698