OLD | NEW |
---|---|
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_COMMON_COMPONENT_FLASH_HINT_FILE_LINUX_H_ | 5 #ifndef CHROME_COMMON_COMPONENT_FLASH_HINT_FILE_LINUX_H_ |
6 #define CHROME_COMMON_COMPONENT_FLASH_HINT_FILE_LINUX_H_ | 6 #define CHROME_COMMON_COMPONENT_FLASH_HINT_FILE_LINUX_H_ |
7 | 7 |
8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
9 | 9 |
10 #if defined(OS_LINUX) | 10 #if !defined(OS_LINUX) |
11 #error "This file only applies to the Linux component update of flash." | |
Lei Zhang
2015/08/17 21:18:31
flash -> Flash
Greg K
2015/08/17 22:57:45
Done.
| |
12 #endif // !defined(OS_LINUX) | |
11 | 13 |
12 #include <string> | 14 #include <string> |
13 | 15 |
14 namespace base { | 16 namespace base { |
15 class FilePath; | 17 class FilePath; |
16 } | 18 } |
17 | 19 |
18 namespace chrome { | 20 namespace chrome { |
Lei Zhang
2015/08/17 21:18:31
Can we remove the chrome namespace?
Greg K
2015/08/17 22:57:45
Done.
| |
19 | 21 |
20 // The APIs in this namespace wraps the component updated flash hint file, which | 22 // The APIs in this namespace wraps the component updated flash hint file, which |
21 // lives inside the PepperFlash folder of the user-data-dir, so that the Linux | 23 // lives inside the PepperFlash folder of the user-data-dir, so that the Linux |
22 // zygote process can preload the right version of flash. | 24 // zygote process can preload the right version of flash. |
23 namespace component_flash_hint_file { | 25 namespace component_flash_hint_file { |
24 | 26 |
25 // Records a new flash update into the hint file. | 27 // Records a new flash update into the hint file. |
26 // |unpacked_plugin| is the current location of the plugin. | 28 // |unpacked_plugin| is the current location of the plugin. |
27 // |moved_plugin| is the location where the plugin will be loaded from. | 29 // |moved_plugin| is the location where the plugin will be loaded from. |
28 bool RecordFlashUpdate(const base::FilePath& unpacked_plugin, | 30 bool RecordFlashUpdate(const base::FilePath& unpacked_plugin, |
(...skipping 12 matching lines...) Expand all Loading... | |
41 // Test if the specified plugin file can be mapped executable. | 43 // Test if the specified plugin file can be mapped executable. |
42 // This is useful to test if the flash plugin is in a directory mounted | 44 // This is useful to test if the flash plugin is in a directory mounted |
43 // noexec, in which case Chrome will not be able to load and use the plugin. | 45 // noexec, in which case Chrome will not be able to load and use the plugin. |
44 // |path| is the path of the flash plugin that will mapped executable. | 46 // |path| is the path of the flash plugin that will mapped executable. |
45 bool TestExecutableMapping(const base::FilePath& path); | 47 bool TestExecutableMapping(const base::FilePath& path); |
46 | 48 |
47 } // namespace component_flash_hint_file | 49 } // namespace component_flash_hint_file |
48 | 50 |
49 } // namespace chrome | 51 } // namespace chrome |
50 | 52 |
51 #endif // defined(OS_LINUX) | |
52 #endif // CHROME_COMMON_COMPONENT_FLASH_HINT_FILE_LINUX_H_ | 53 #endif // CHROME_COMMON_COMPONENT_FLASH_HINT_FILE_LINUX_H_ |
OLD | NEW |