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 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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <set> | 10 #include <set> |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 | 51 |
52 private: | 52 private: |
53 // IPC message handlers. | 53 // IPC message handlers. |
54 void OnUnpackWebResource(const std::string& resource_data); | 54 void OnUnpackWebResource(const std::string& resource_data); |
55 void OnDecodeImage(const std::vector<unsigned char>& encoded_data, | 55 void OnDecodeImage(const std::vector<unsigned char>& encoded_data, |
56 bool shrink_to_fit, | 56 bool shrink_to_fit, |
57 int request_id); | 57 int request_id); |
58 #if defined(OS_CHROMEOS) | 58 #if defined(OS_CHROMEOS) |
59 void OnRobustJPEGDecodeImage(const std::vector<unsigned char>& encoded_data, | 59 void OnRobustJPEGDecodeImage(const std::vector<unsigned char>& encoded_data, |
60 int request_id); | 60 int request_id); |
| 61 void OnRobustPNGDecodeImage(const std::vector<unsigned char>& encoded_data, |
| 62 int request_id); |
61 | 63 |
62 void OnCreateZipFile(const base::FilePath& src_dir, | 64 void OnCreateZipFile(const base::FilePath& src_dir, |
63 const std::vector<base::FilePath>& src_relative_paths, | 65 const std::vector<base::FilePath>& src_relative_paths, |
64 const base::FileDescriptor& dest_fd); | 66 const base::FileDescriptor& dest_fd); |
65 #endif // defined(OS_CHROMEOS) | 67 #endif // defined(OS_CHROMEOS) |
66 | 68 |
67 void OnPatchFileBsdiff(const base::FilePath& input_file, | 69 void OnPatchFileBsdiff(const base::FilePath& input_file, |
68 const base::FilePath& patch_file, | 70 const base::FilePath& patch_file, |
69 const base::FilePath& output_file); | 71 const base::FilePath& output_file); |
70 void OnPatchFileCourgette(const base::FilePath& input_file, | 72 void OnPatchFileCourgette(const base::FilePath& input_file, |
(...skipping 17 matching lines...) Expand all Loading... |
88 bool filter_messages_; | 90 bool filter_messages_; |
89 // A list of message_ids to filter. | 91 // A list of message_ids to filter. |
90 std::set<int> message_id_whitelist_; | 92 std::set<int> message_id_whitelist_; |
91 // Maximum IPC msg size (default to kMaximumMessageSize; override for testing) | 93 // Maximum IPC msg size (default to kMaximumMessageSize; override for testing) |
92 static int64_t max_ipc_message_size_; | 94 static int64_t max_ipc_message_size_; |
93 | 95 |
94 DISALLOW_COPY_AND_ASSIGN(ChromeContentUtilityClient); | 96 DISALLOW_COPY_AND_ASSIGN(ChromeContentUtilityClient); |
95 }; | 97 }; |
96 | 98 |
97 #endif // CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_ | 99 #endif // CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_ |
OLD | NEW |