| 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 25 matching lines...) Expand all Loading... |
| 36 void ExposeInterfacesToBrowser( | 36 void ExposeInterfacesToBrowser( |
| 37 service_manager::InterfaceRegistry* registry) override; | 37 service_manager::InterfaceRegistry* registry) override; |
| 38 void RegisterServices(StaticServiceMap* services) override; | 38 void RegisterServices(StaticServiceMap* services) override; |
| 39 | 39 |
| 40 void AddHandler(std::unique_ptr<UtilityMessageHandler> handler); | 40 void AddHandler(std::unique_ptr<UtilityMessageHandler> handler); |
| 41 | 41 |
| 42 static void PreSandboxStartup(); | 42 static void PreSandboxStartup(); |
| 43 | 43 |
| 44 private: | 44 private: |
| 45 // IPC message handlers. | 45 // IPC message handlers. |
| 46 void OnUnpackWebResource(const std::string& resource_data); | |
| 47 #if defined(OS_CHROMEOS) | 46 #if defined(OS_CHROMEOS) |
| 48 void OnCreateZipFile(const base::FilePath& src_dir, | 47 void OnCreateZipFile(const base::FilePath& src_dir, |
| 49 const std::vector<base::FilePath>& src_relative_paths, | 48 const std::vector<base::FilePath>& src_relative_paths, |
| 50 const base::FileDescriptor& dest_fd); | 49 const base::FileDescriptor& dest_fd); |
| 51 #endif // defined(OS_CHROMEOS) | 50 #endif // defined(OS_CHROMEOS) |
| 52 | 51 |
| 53 void OnPatchFileBsdiff(const IPC::PlatformFileForTransit& input_file, | 52 void OnPatchFileBsdiff(const IPC::PlatformFileForTransit& input_file, |
| 54 const IPC::PlatformFileForTransit& patch_file, | 53 const IPC::PlatformFileForTransit& patch_file, |
| 55 const IPC::PlatformFileForTransit& output_file); | 54 const IPC::PlatformFileForTransit& output_file); |
| 56 void OnPatchFileCourgette(const IPC::PlatformFileForTransit& input_file, | 55 void OnPatchFileCourgette(const IPC::PlatformFileForTransit& input_file, |
| (...skipping 15 matching lines...) Expand all Loading... |
| 72 | 71 |
| 73 // Flag to enable whitelisting. | 72 // Flag to enable whitelisting. |
| 74 bool filter_messages_; | 73 bool filter_messages_; |
| 75 // A list of message_ids to filter. | 74 // A list of message_ids to filter. |
| 76 std::set<int> message_id_whitelist_; | 75 std::set<int> message_id_whitelist_; |
| 77 | 76 |
| 78 DISALLOW_COPY_AND_ASSIGN(ChromeContentUtilityClient); | 77 DISALLOW_COPY_AND_ASSIGN(ChromeContentUtilityClient); |
| 79 }; | 78 }; |
| 80 | 79 |
| 81 #endif // CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_ | 80 #endif // CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_ |
| OLD | NEW |