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 <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 int request_id); | 51 int request_id); |
52 #if defined(OS_CHROMEOS) | 52 #if defined(OS_CHROMEOS) |
53 void OnRobustJPEGDecodeImage(const std::vector<unsigned char>& encoded_data, | 53 void OnRobustJPEGDecodeImage(const std::vector<unsigned char>& encoded_data, |
54 int request_id); | 54 int request_id); |
55 | 55 |
56 void OnCreateZipFile(const base::FilePath& src_dir, | 56 void OnCreateZipFile(const base::FilePath& src_dir, |
57 const std::vector<base::FilePath>& src_relative_paths, | 57 const std::vector<base::FilePath>& src_relative_paths, |
58 const base::FileDescriptor& dest_fd); | 58 const base::FileDescriptor& dest_fd); |
59 #endif // defined(OS_CHROMEOS) | 59 #endif // defined(OS_CHROMEOS) |
60 | 60 |
61 #if defined(OS_ANDROID) && defined(USE_SECCOMP_BPF) | |
62 void OnDetectSeccompSupport(); | |
63 #endif | |
64 | |
65 void OnPatchFileBsdiff(const base::FilePath& input_file, | 61 void OnPatchFileBsdiff(const base::FilePath& input_file, |
66 const base::FilePath& patch_file, | 62 const base::FilePath& patch_file, |
67 const base::FilePath& output_file); | 63 const base::FilePath& output_file); |
68 void OnPatchFileCourgette(const base::FilePath& input_file, | 64 void OnPatchFileCourgette(const base::FilePath& input_file, |
69 const base::FilePath& patch_file, | 65 const base::FilePath& patch_file, |
70 const base::FilePath& output_file); | 66 const base::FilePath& output_file); |
71 void OnStartupPing(); | 67 void OnStartupPing(); |
72 #if defined(FULL_SAFE_BROWSING) | 68 #if defined(FULL_SAFE_BROWSING) |
73 void OnAnalyzeZipFileForDownloadProtection( | 69 void OnAnalyzeZipFileForDownloadProtection( |
74 const IPC::PlatformFileForTransit& zip_file, | 70 const IPC::PlatformFileForTransit& zip_file, |
(...skipping 12 matching lines...) Expand all Loading... |
87 bool filter_messages_; | 83 bool filter_messages_; |
88 // A list of message_ids to filter. | 84 // A list of message_ids to filter. |
89 std::set<int> message_id_whitelist_; | 85 std::set<int> message_id_whitelist_; |
90 // Maximum IPC msg size (default to kMaximumMessageSize; override for testing) | 86 // Maximum IPC msg size (default to kMaximumMessageSize; override for testing) |
91 static int64_t max_ipc_message_size_; | 87 static int64_t max_ipc_message_size_; |
92 | 88 |
93 DISALLOW_COPY_AND_ASSIGN(ChromeContentUtilityClient); | 89 DISALLOW_COPY_AND_ASSIGN(ChromeContentUtilityClient); |
94 }; | 90 }; |
95 | 91 |
96 #endif // CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_ | 92 #endif // CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_ |
OLD | NEW |