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_BROWSER_COMPONENT_UPDATER_FLASH_COMPONENT_INSTALLER_H_ | 5 #ifndef CHROME_BROWSER_COMPONENT_UPDATER_FLASH_COMPONENT_INSTALLER_H_ |
6 #define CHROME_BROWSER_COMPONENT_UPDATER_FLASH_COMPONENT_INSTALLER_H_ | 6 #define CHROME_BROWSER_COMPONENT_UPDATER_FLASH_COMPONENT_INSTALLER_H_ |
7 | 7 |
8 namespace base { | 8 namespace base { |
9 class DictionaryValue; | 9 class DictionaryValue; |
10 class Version; | 10 class Version; |
11 } | 11 } |
12 | 12 |
13 namespace component_updater { | 13 namespace component_updater { |
14 | 14 |
15 class ComponentUpdateService; | 15 class ComponentUpdateService; |
16 | 16 |
17 // Our job is to 1) find what Pepper flash is installed (if any) and 2) register | 17 // Our job is to 1) find what Pepper flash is installed (if any) and 2) register |
18 // with the component updater to download the latest version when available. | 18 // with the component updater to download the latest version when available. |
19 // The first part is IO intensive so we do it asynchronously in the file thread. | 19 // The first part is IO intensive so we do it asynchronously in the file thread. |
20 void RegisterPepperFlashComponent(ComponentUpdateService* cus); | 20 void RegisterPepperFlashComponent(ComponentUpdateService* cus); |
21 | 21 |
22 // Returns true if this browser is compatible with the given Pepper Flash | |
23 // manifest, with the version specified in the manifest in |version_out|. | |
24 bool CheckPepperFlashManifest(const base::DictionaryValue& manifest, | |
25 base::Version* version_out); | |
26 | |
27 } // namespace component_updater | 22 } // namespace component_updater |
28 | 23 |
29 #endif // CHROME_BROWSER_COMPONENT_UPDATER_FLASH_COMPONENT_INSTALLER_H_ | 24 #endif // CHROME_BROWSER_COMPONENT_UPDATER_FLASH_COMPONENT_INSTALLER_H_ |
OLD | NEW |