Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(275)

Unified Diff: third_party/cacheinvalidation/overrides/google/cacheinvalidation/random.h

Issue 2880008: Updated cache-invalidation library to @30. (Closed)
Patch Set: Fixed compile error Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/cacheinvalidation/cacheinvalidation.gyp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/cacheinvalidation/overrides/google/cacheinvalidation/random.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 0000000000000000000000000000000000000000..89455f66cf741be89c8ed4eb0599678a5a9bc554
--- /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_
« no previous file with comments | « third_party/cacheinvalidation/cacheinvalidation.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698