diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-02 05:12:33 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-02 05:12:33 +0000 |
commit | a3ef4830d5b5fdc52e5d7d0cb33dae8844f0961e (patch) | |
tree | bdd4dac76e6034ef6cf33450e203269a715ea0e6 /rlz/lib | |
parent | 8bc574c57115e9ffd0169f33131c0865997dcb35 (diff) | |
download | chromium_src-a3ef4830d5b5fdc52e5d7d0cb33dae8844f0961e.zip chromium_src-a3ef4830d5b5fdc52e5d7d0cb33dae8844f0961e.tar.gz chromium_src-a3ef4830d5b5fdc52e5d7d0cb33dae8844f0961e.tar.bz2 |
Add FilePath to base namespace.
This updates headers that forward-declare it and a few random places to use the namespace explicitly. There us a using declaration in file_path.h that makes the rest compile, which we can do in future passes.
Review URL: https://codereview.chromium.org/12163003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@180245 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'rlz/lib')
-rw-r--r-- | rlz/lib/recursive_cross_process_lock_posix.h | 4 | ||||
-rw-r--r-- | rlz/lib/rlz_value_store.h | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/rlz/lib/recursive_cross_process_lock_posix.h b/rlz/lib/recursive_cross_process_lock_posix.h index a39d473..69a2c7a 100644 --- a/rlz/lib/recursive_cross_process_lock_posix.h +++ b/rlz/lib/recursive_cross_process_lock_posix.h @@ -7,7 +7,9 @@ #include <pthread.h> +namespace base { class FilePath; +} namespace rlz_lib { @@ -20,7 +22,7 @@ struct RecursiveCrossProcessLock { // Tries to acquire a recursive cross-process lock. Note that this _always_ // acquires the in-process lock (if it wasn't already acquired). The parent // directory of |lock_file| must exist. - bool TryGetCrossProcessLock(const FilePath& lock_filename); + bool TryGetCrossProcessLock(const base::FilePath& lock_filename); // Releases the lock. Should always be called, even if // TryGetCrossProcessLock() returned |false|. diff --git a/rlz/lib/rlz_value_store.h b/rlz/lib/rlz_value_store.h index 46e87df..4bd1f09 100644 --- a/rlz/lib/rlz_value_store.h +++ b/rlz/lib/rlz_value_store.h @@ -21,7 +21,9 @@ #include <string> #include <vector> +namespace base { class FilePath; +} namespace rlz_lib { @@ -106,7 +108,7 @@ class ScopedRlzValueStoreLock { #if defined(OS_POSIX) namespace testing { // Prefix |directory| to the path where the RLZ data file lives, for tests. -void SetRlzStoreDirectory(const FilePath& directory); +void SetRlzStoreDirectory(const base::FilePath& directory); // Returns the path of the file used as data store. std::string RlzStoreFilenameStr(); |