OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 PPAPI_SHARED_IMPL_PPAPI_CONSTANTS_H_ | 5 #ifndef PPAPI_SHARED_IMPL_PPAPI_CONSTANTS_H_ |
6 #define PPAPI_SHARED_IMPL_PPAPI_CONSTANTS_H_ | 6 #define PPAPI_SHARED_IMPL_PPAPI_CONSTANTS_H_ |
7 | 7 |
8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
9 #include "ppapi/shared_impl/ppapi_shared_export.h" | 9 #include "ppapi/shared_impl/ppapi_shared_export.h" |
10 | 10 |
11 namespace ppapi { | 11 namespace ppapi { |
12 | 12 |
13 // Default interval to space out IPC messages sent indicating that a plugin is | |
14 // active and should be kept alive. The value must be smaller than any threshold | |
15 // used to kill inactive plugins by the embedder host. | |
16 const unsigned kKeepaliveThrottleIntervalDefaultMilliseconds = 5000; | |
17 | |
18 #if defined(OS_WIN) | 13 #if defined(OS_WIN) |
19 const char kPowerSaverTestPluginName[] = "power_saver_test_plugin.dll"; | 14 const char kPowerSaverTestPluginName[] = "power_saver_test_plugin.dll"; |
20 #elif defined(OS_MACOSX) | 15 #elif defined(OS_MACOSX) |
21 const char kPowerSaverTestPluginName[] = "power_saver_test_plugin.plugin"; | 16 const char kPowerSaverTestPluginName[] = "power_saver_test_plugin.plugin"; |
22 #elif defined(OS_POSIX) | 17 #elif defined(OS_POSIX) |
23 const char kPowerSaverTestPluginName[] = "libpower_saver_test_plugin.so"; | 18 const char kPowerSaverTestPluginName[] = "libpower_saver_test_plugin.so"; |
24 #endif | 19 #endif |
25 | 20 |
26 // Name of the root directory in the plugin private file system. | 21 // Name of the root directory in the plugin private file system. |
27 const char kPluginPrivateRootName[] = "pluginprivate"; | 22 const char kPluginPrivateRootName[] = "pluginprivate"; |
28 | 23 |
29 } // namespace ppapi | 24 } // namespace ppapi |
30 | 25 |
31 #endif // PPAPI_SHARED_IMPL_PPAPI_CONSTANTS_H_ | 26 #endif // PPAPI_SHARED_IMPL_PPAPI_CONSTANTS_H_ |
OLD | NEW |