Index: components/component_updater/common/component_updater_paths.h |
diff --git a/components/component_updater/common/component_updater_paths.h b/components/component_updater/common/component_updater_paths.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..c7581224826732a2934cb40042a67605234b7e61 |
--- /dev/null |
+++ b/components/component_updater/common/component_updater_paths.h |
@@ -0,0 +1,29 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef COMPONENTS_COMPONENT_UPDATER_COMMON_COMPONENT_UPDATER_PATHS_H_ |
+#define COMPONENTS_COMPONENT_UPDATER_COMMON_COMPONENT_UPDATER_PATHS_H_ |
+ |
+#include "base/files/file_path.h" |
+ |
+namespace component_updater { |
+ |
+enum { |
+ PATH_START = 10000, |
Sorin Jianu
2014/06/30 22:27:53
How did we come up with this hard-coded value here
tommycli
2014/07/01 00:03:04
PATH_START must be different for each PathProvider
|
+ DIR_COMPONENT_CLD2 = PATH_START, // Directory that contains component-updated |
+ // Compact Language Detector files. |
+ DIR_RECOVERY_BASE, // Full path to the dir for Recovery |
+ // component. |
+ DIR_SWIFT_SHADER, // Path to the SwiftShader component. |
+ PATH_END |
+}; |
+ |
+// Call once to register the provider for the path keys defined above. |
+// |components_root_key| is the path provider key defining where the |
+// components should be installed. |
+void RegisterPathProvider(const base::FilePath& components_root_key); |
+ |
+} // namespace component_updater |
+ |
+#endif // COMPONENTS_COMPONENT_UPDATER_COMMON_COMPONENT_UPDATER_PATHS_H_ |