| 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 <memory> | 10 #include <memory> |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 const IPC::PlatformFileForTransit& temp_file); | 56 const IPC::PlatformFileForTransit& temp_file); |
| 57 #if defined(OS_MACOSX) | 57 #if defined(OS_MACOSX) |
| 58 void OnAnalyzeDmgFileForDownloadProtection( | 58 void OnAnalyzeDmgFileForDownloadProtection( |
| 59 const IPC::PlatformFileForTransit& dmg_file); | 59 const IPC::PlatformFileForTransit& dmg_file); |
| 60 #endif // defined(OS_MACOSX) | 60 #endif // defined(OS_MACOSX) |
| 61 #endif // defined(FULL_SAFE_BROWSING) | 61 #endif // defined(FULL_SAFE_BROWSING) |
| 62 | 62 |
| 63 typedef ScopedVector<UtilityMessageHandler> Handlers; | 63 typedef ScopedVector<UtilityMessageHandler> Handlers; |
| 64 Handlers handlers_; | 64 Handlers handlers_; |
| 65 | 65 |
| 66 // Flag to enable whitelisting. | 66 bool utility_process_running_elevated_; |
| 67 bool filter_messages_; | |
| 68 // A list of message_ids to filter. | |
| 69 std::set<int> message_id_whitelist_; | |
| 70 | 67 |
| 71 DISALLOW_COPY_AND_ASSIGN(ChromeContentUtilityClient); | 68 DISALLOW_COPY_AND_ASSIGN(ChromeContentUtilityClient); |
| 72 }; | 69 }; |
| 73 | 70 |
| 74 #endif // CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_ | 71 #endif // CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_ |
| OLD | NEW |