summaryrefslogtreecommitdiffstats
path: root/rlz/lib/rlz_value_store.h
diff options
context:
space:
mode:
authorivankr@chromium.org <ivankr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-09 11:04:55 +0000
committerivankr@chromium.org <ivankr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-09 11:04:55 +0000
commit7d21a6b37c15011033601f49150e280c2417ce1d (patch)
tree8a893f4b29f773643df8bdef5102b77cf55627a8 /rlz/lib/rlz_value_store.h
parentc80ca12f3e74e8d54653c312bbd3c92afd0fee55 (diff)
downloadchromium_src-7d21a6b37c15011033601f49150e280c2417ce1d.zip
chromium_src-7d21a6b37c15011033601f49150e280c2417ce1d.tar.gz
chromium_src-7d21a6b37c15011033601f49150e280c2417ce1d.tar.bz2
[cros] RlzValueStore implementation for ChromeOS.
BUG=157348 TEST=rlz_unittests Review URL: https://chromiumcodereview.appspot.com/11365107 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166891 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'rlz/lib/rlz_value_store.h')
-rw-r--r--rlz/lib/rlz_value_store.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/rlz/lib/rlz_value_store.h b/rlz/lib/rlz_value_store.h
index ab7279a..807f100 100644
--- a/rlz/lib/rlz_value_store.h
+++ b/rlz/lib/rlz_value_store.h
@@ -95,7 +95,12 @@ class ScopedRlzValueStoreLock {
RlzValueStore* GetStore();
private:
+#if defined(OS_WIN) || defined(OS_MACOSX)
+ // On ChromeOS, there is a singleton instance of RlzValueStore.
scoped_ptr<RlzValueStore> store_;
+#elif defined(OS_CHROMEOS)
+ class RlzValueStoreChromeOS* store_;
+#endif
#if defined(OS_WIN)
LibMutex lock_;
#elif defined(OS_MACOSX)
@@ -103,11 +108,15 @@ class ScopedRlzValueStoreLock {
#endif
};
-#if defined(OS_MACOSX)
+#if defined(OS_MACOSX) || defined(OS_CHROMEOS)
namespace testing {
// Prefix |directory| to the path where the RLZ data file lives, for tests.
void SetRlzStoreDirectory(const FilePath& directory);
+} // namespace testing
+#endif // defined(OS_MACOSX) || defined(OS_CHROMEOS)
+#if defined(OS_MACOSX)
+namespace testing {
// Returns the path of the plist file used as data store.
std::string RlzPlistFilenameStr();
} // namespace testing