| Index: chrome/utility/chrome_content_utility_client.h
|
| diff --git a/chrome/utility/chrome_content_utility_client.h b/chrome/utility/chrome_content_utility_client.h
|
| index 4f8187ef044ffb62faa76e2c42726f3c1aa69211..895202fec6fd5c7855f141256286755f965e2036 100644
|
| --- a/chrome/utility/chrome_content_utility_client.h
|
| +++ b/chrome/utility/chrome_content_utility_client.h
|
| @@ -40,6 +40,13 @@ class ChromeContentUtilityClient : public content::ContentUtilityClient {
|
|
|
| static void PreSandboxStartup();
|
|
|
| + // Adds a message handler to the utility client. This will take ownership of
|
| + // the handler.
|
| + void AddHandler(UtilityMessageHandler* handler);
|
| +
|
| + // Adds a message type to the whitelist.
|
| + void AddWhitelistMessageType(int message_type);
|
| +
|
| private:
|
| // IPC message handlers.
|
| void OnUnpackExtension(const base::FilePath& extension_path,
|
| @@ -106,6 +113,11 @@ class ChromeContentUtilityClient : public content::ContentUtilityClient {
|
| typedef ScopedVector<UtilityMessageHandler> Handlers;
|
| Handlers handlers_;
|
|
|
| + // Flag to enable whitelisting.
|
| + bool filter_messages_;
|
| + // A list of message_ids to filter.
|
| + std::set<int> message_id_whitelist_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(ChromeContentUtilityClient);
|
| };
|
|
|
|
|