diff options
author | tommycli@chromium.org <tommycli@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-08 14:17:00 +0000 |
---|---|---|
committer | tommycli@chromium.org <tommycli@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-08 14:17:00 +0000 |
commit | 6c0c9736ddcd8a677414f64a270b5a48a9bc5705 (patch) | |
tree | 2dd896a715fa55f90ed85f69f4b1b9f3274c5206 /components/component_updater/component_updater_paths.h | |
parent | 44c8cc8bc2a354669c80714ad1426d2a2156843c (diff) | |
download | chromium_src-6c0c9736ddcd8a677414f64a270b5a48a9bc5705.zip chromium_src-6c0c9736ddcd8a677414f64a270b5a48a9bc5705.tar.gz chromium_src-6c0c9736ddcd8a677414f64a270b5a48a9bc5705.tar.bz2 |
Break some of the chrome/common dependencies in implementation by moving some paths and constants to the component.
Design doc: https://docs.google.com/document/d/1F76yNZCnPnGzgNXhI-sCFKlXulwx_s_OKTGbJS5NhbA/edit?usp=sharing
BUG=371463
Review URL: https://codereview.chromium.org/334783002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@281744 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'components/component_updater/component_updater_paths.h')
-rw-r--r-- | components/component_updater/component_updater_paths.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/components/component_updater/component_updater_paths.h b/components/component_updater/component_updater_paths.h new file mode 100644 index 0000000..b251895 --- /dev/null +++ b/components/component_updater/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_COMPONENT_UPDATER_PATHS_H_ +#define COMPONENTS_COMPONENT_UPDATER_COMPONENT_UPDATER_PATHS_H_ + +#include "base/files/file_path.h" + +namespace component_updater { + +enum { + PATH_START = 10000, + 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_COMPONENT_UPDATER_PATHS_H_ |