component_updater_paths.h 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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
  3. // found in the LICENSE file.
  4. #ifndef COMPONENTS_COMPONENT_UPDATER_COMPONENT_UPDATER_PATHS_H_
  5. #define COMPONENTS_COMPONENT_UPDATER_COMPONENT_UPDATER_PATHS_H_
  6. namespace component_updater {
  7. enum {
  8. PATH_START = 10000,
  9. DIR_COMPONENT_PREINSTALLED = PATH_START, // Directory that contains component
  10. // implementations installed by the
  11. // Chrome installer or package
  12. // manager.
  13. DIR_COMPONENT_PREINSTALLED_ALT, // A second preinstalled directory,
  14. // necessary because some components
  15. // live in a distinct directory on
  16. // OS X. On other platforms, this
  17. // ultimately is equivalent to
  18. // DIR_COMPONENT_PREINSTALLED.
  19. DIR_COMPONENT_USER, // Directory that contains user-wide
  20. // (component-updater-installer)
  21. // component implementations.
  22. // The following paths live in the user directory only, and point to the base
  23. // installation directory for the component.
  24. DIR_COMPONENT_CLD2, // The Compact Language Detector.
  25. DIR_RECOVERY_BASE, // The Recovery.
  26. DIR_SWIFT_SHADER, // The SwiftShader.
  27. PATH_END
  28. };
  29. // Call once to register the provider for the path keys defined above.
  30. // |components_system_root_key| is the path provider key defining where bundled
  31. // components are already installed system-wide.
  32. // |components_system_root_key_alt| is the path provider key defining an
  33. // alternate location where bundled components are already installed
  34. // system-wide. On most platforms this is the directory in which Chrome plug-ins
  35. // are stored; on platforms where there is no good alternate value, callers
  36. // should provide the same value that they use for |components_system_root_key|.
  37. // |components_user_root_key| is the path provider key defining where the
  38. // component updater should install new versions of components.
  39. void RegisterPathProvider(int components_system_root_key,
  40. int components_system_root_key_alt,
  41. int components_user_root_key);
  42. } // namespace component_updater
  43. #endif // COMPONENTS_COMPONENT_UPDATER_COMPONENT_UPDATER_PATHS_H_