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