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

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

Issue 2534873005: Sandbox the component updater's patcher utility process. (Closed)
Patch Set: Through #29 Created 4 years 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
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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 private: 44 private:
45 // IPC message handlers. 45 // IPC message handlers.
46 void OnUnpackWebResource(const std::string& resource_data); 46 void OnUnpackWebResource(const std::string& resource_data);
47 #if defined(OS_CHROMEOS) 47 #if defined(OS_CHROMEOS)
48 void OnCreateZipFile(const base::FilePath& src_dir, 48 void OnCreateZipFile(const base::FilePath& src_dir,
49 const std::vector<base::FilePath>& src_relative_paths, 49 const std::vector<base::FilePath>& src_relative_paths,
50 const base::FileDescriptor& dest_fd); 50 const base::FileDescriptor& dest_fd);
51 #endif // defined(OS_CHROMEOS) 51 #endif // defined(OS_CHROMEOS)
52 52
53 void OnPatchFileBsdiff(const base::FilePath& input_file, 53 void OnPatchFileBsdiff(const IPC::PlatformFileForTransit& input_file,
54 const base::FilePath& patch_file, 54 const IPC::PlatformFileForTransit& patch_file,
55 const base::FilePath& output_file); 55 const IPC::PlatformFileForTransit& output_file);
56 void OnPatchFileCourgette(const base::FilePath& input_file, 56 void OnPatchFileCourgette(const IPC::PlatformFileForTransit& input_file,
57 const base::FilePath& patch_file, 57 const IPC::PlatformFileForTransit& patch_file,
58 const base::FilePath& output_file); 58 const IPC::PlatformFileForTransit& output_file);
59 void OnStartupPing(); 59 void OnStartupPing();
60 #if defined(FULL_SAFE_BROWSING) 60 #if defined(FULL_SAFE_BROWSING)
61 void OnAnalyzeZipFileForDownloadProtection( 61 void OnAnalyzeZipFileForDownloadProtection(
62 const IPC::PlatformFileForTransit& zip_file, 62 const IPC::PlatformFileForTransit& zip_file,
63 const IPC::PlatformFileForTransit& temp_file); 63 const IPC::PlatformFileForTransit& temp_file);
64 #if defined(OS_MACOSX) 64 #if defined(OS_MACOSX)
65 void OnAnalyzeDmgFileForDownloadProtection( 65 void OnAnalyzeDmgFileForDownloadProtection(
66 const IPC::PlatformFileForTransit& dmg_file); 66 const IPC::PlatformFileForTransit& dmg_file);
67 #endif // defined(OS_MACOSX) 67 #endif // defined(OS_MACOSX)
68 #endif // defined(FULL_SAFE_BROWSING) 68 #endif // defined(FULL_SAFE_BROWSING)
69 69
70 typedef ScopedVector<UtilityMessageHandler> Handlers; 70 typedef ScopedVector<UtilityMessageHandler> Handlers;
71 Handlers handlers_; 71 Handlers handlers_;
72 72
73 // Flag to enable whitelisting. 73 // Flag to enable whitelisting.
74 bool filter_messages_; 74 bool filter_messages_;
75 // A list of message_ids to filter. 75 // A list of message_ids to filter.
76 std::set<int> message_id_whitelist_; 76 std::set<int> message_id_whitelist_;
77 77
78 DISALLOW_COPY_AND_ASSIGN(ChromeContentUtilityClient); 78 DISALLOW_COPY_AND_ASSIGN(ChromeContentUtilityClient);
79 }; 79 };
80 80
81 #endif // CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_ 81 #endif // CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698