diff options
author | akalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-02 01:56:05 +0000 |
---|---|---|
committer | akalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-02 01:56:05 +0000 |
commit | b5248e5fddcef1b6bbc175b8c9c13e6023bc96b0 (patch) | |
tree | 212c713ef57a75b27653eabcdd24ea00b2d91b95 /third_party | |
parent | be7c6833deba4f33800c98405d19e1d8a3d5a106 (diff) | |
download | chromium_src-b5248e5fddcef1b6bbc175b8c9c13e6023bc96b0.zip chromium_src-b5248e5fddcef1b6bbc175b8c9c13e6023bc96b0.tar.gz chromium_src-b5248e5fddcef1b6bbc175b8c9c13e6023bc96b0.tar.bz2 |
Updated cache-invalidation library to @30.
BUG=34647
TEST=sync_listen_notifications
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=51330
Review URL: http://codereview.chromium.org/2880008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51477 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party')
-rw-r--r-- | third_party/cacheinvalidation/cacheinvalidation.gyp | 1 | ||||
-rw-r--r-- | third_party/cacheinvalidation/overrides/google/cacheinvalidation/random.h | 25 |
2 files changed, 26 insertions, 0 deletions
diff --git a/third_party/cacheinvalidation/cacheinvalidation.gyp b/third_party/cacheinvalidation/cacheinvalidation.gyp index 5e9347a..ef54f66 100644 --- a/third_party/cacheinvalidation/cacheinvalidation.gyp +++ b/third_party/cacheinvalidation/cacheinvalidation.gyp @@ -70,6 +70,7 @@ 'overrides/google/cacheinvalidation/googletest.h', 'overrides/google/cacheinvalidation/logging.h', 'overrides/google/cacheinvalidation/mutex.h', + 'overrides/google/cacheinvalidation/random.h', 'overrides/google/cacheinvalidation/stl-namespace.h' 'overrides/google/cacheinvalidation/string_util.h' 'overrides/google/cacheinvalidation/time.h', diff --git a/third_party/cacheinvalidation/overrides/google/cacheinvalidation/random.h b/third_party/cacheinvalidation/overrides/google/cacheinvalidation/random.h new file mode 100644 index 0000000..89455f6 --- /dev/null +++ b/third_party/cacheinvalidation/overrides/google/cacheinvalidation/random.h @@ -0,0 +1,25 @@ +// Copyright (c) 2010 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 GOOGLE_CACHEINVALIDATION_RANDOM_H_ +#define GOOGLE_CACHEINVALIDATION_RANDOM_H_ + +#include "base/rand_util.h" + +namespace invalidation { + +class Random { + public: + // We don't actually use the seed. + explicit Random(int64 seed) {} + + // Returns a pseudorandom value between(inclusive) and(exclusive). + double RandDouble() { + return base::RandDouble(); + } +}; + +} // namespace invalidation + +#endif // GOOGLE_CACHEINVALIDATION_RANDOM_H_ |