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