summaryrefslogtreecommitdiffstats
path: root/third_party
diff options
context:
space:
mode:
authormarja@chromium.org <marja@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-13 08:23:01 +0000
committermarja@chromium.org <marja@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-13 08:23:01 +0000
commit1173ebb83eb0abddc690616833e5cb9ba1f016f1 (patch)
tree18583f68e9abd2f7260ca1ed791850cb97766ece /third_party
parentf6a884dd7b9bed358388b69a65def5d3eb63e4d6 (diff)
downloadchromium_src-1173ebb83eb0abddc690616833e5cb9ba1f016f1.zip
chromium_src-1173ebb83eb0abddc690616833e5cb9ba1f016f1.tar.gz
chromium_src-1173ebb83eb0abddc690616833e5cb9ba1f016f1.tar.bz2
Revert 126353 - Roll cacheinvalidation forward to @200. Summary of changes:
- Restructure source directory into deps/, impl/, include/, test/. - Fix a bug where redundant registrations would be resent. - Fix a bug that would prevent retry delays from being computed correctly. - Some cosmetic code cleanup. Review URL: http://codereview.chromium.org/9675001 TBR=ghc@google.com Review URL: https://chromiumcodereview.appspot.com/9689055 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@126356 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party')
-rw-r--r--third_party/cacheinvalidation/cacheinvalidation.gyp137
-rw-r--r--third_party/cacheinvalidation/overrides/google/cacheinvalidation/deps/scoped_ptr.h16
-rw-r--r--third_party/cacheinvalidation/overrides/google/cacheinvalidation/v2/callback.h (renamed from third_party/cacheinvalidation/overrides/google/cacheinvalidation/deps/callback.h)6
-rw-r--r--third_party/cacheinvalidation/overrides/google/cacheinvalidation/v2/gmock.h (renamed from third_party/cacheinvalidation/overrides/google/cacheinvalidation/deps/gmock.h)6
-rw-r--r--third_party/cacheinvalidation/overrides/google/cacheinvalidation/v2/googletest.h (renamed from third_party/cacheinvalidation/overrides/google/cacheinvalidation/deps/googletest.h)6
-rw-r--r--third_party/cacheinvalidation/overrides/google/cacheinvalidation/v2/logging.h (renamed from third_party/cacheinvalidation/overrides/google/cacheinvalidation/deps/logging.h)8
-rw-r--r--third_party/cacheinvalidation/overrides/google/cacheinvalidation/v2/mutex.h (renamed from third_party/cacheinvalidation/overrides/google/cacheinvalidation/deps/mutex.h)8
-rw-r--r--third_party/cacheinvalidation/overrides/google/cacheinvalidation/v2/random.h (renamed from third_party/cacheinvalidation/overrides/google/cacheinvalidation/deps/random.h)10
-rw-r--r--third_party/cacheinvalidation/overrides/google/cacheinvalidation/v2/scoped_ptr.h16
-rw-r--r--third_party/cacheinvalidation/overrides/google/cacheinvalidation/v2/sha1-digest-function.h (renamed from third_party/cacheinvalidation/overrides/google/cacheinvalidation/deps/sha1-digest-function.h)10
-rw-r--r--third_party/cacheinvalidation/overrides/google/cacheinvalidation/v2/stl-namespace.h (renamed from third_party/cacheinvalidation/overrides/google/cacheinvalidation/deps/stl-namespace.h)6
-rw-r--r--third_party/cacheinvalidation/overrides/google/cacheinvalidation/v2/string_util.h (renamed from third_party/cacheinvalidation/overrides/google/cacheinvalidation/deps/string_util.h)8
-rw-r--r--third_party/cacheinvalidation/overrides/google/cacheinvalidation/v2/time.h (renamed from third_party/cacheinvalidation/overrides/google/cacheinvalidation/deps/time.h)8
13 files changed, 122 insertions, 123 deletions
diff --git a/third_party/cacheinvalidation/cacheinvalidation.gyp b/third_party/cacheinvalidation/cacheinvalidation.gyp
index 8e47824..eff4515 100644
--- a/third_party/cacheinvalidation/cacheinvalidation.gyp
+++ b/third_party/cacheinvalidation/cacheinvalidation.gyp
@@ -102,64 +102,66 @@
'target_name': 'cacheinvalidation',
'type': 'static_library',
'sources': [
- 'overrides/google/cacheinvalidation/deps/callback.h',
- 'overrides/google/cacheinvalidation/deps/gmock.h',
- 'overrides/google/cacheinvalidation/deps/googletest.h',
- 'overrides/google/cacheinvalidation/deps/logging.h',
- 'overrides/google/cacheinvalidation/deps/mutex.h',
- 'overrides/google/cacheinvalidation/deps/random.h',
- 'overrides/google/cacheinvalidation/deps/sha1-digest-function.h',
- 'overrides/google/cacheinvalidation/deps/scoped_ptr.h',
- 'overrides/google/cacheinvalidation/deps/stl-namespace.h',
- 'overrides/google/cacheinvalidation/deps/string_util.h',
- 'overrides/google/cacheinvalidation/deps/time.h',
- 'files/src/google/cacheinvalidation/deps/digest-function.h',
- 'files/src/google/cacheinvalidation/impl/basic-system-resources.cc',
- 'files/src/google/cacheinvalidation/impl/basic-system-resources.h',
- 'files/src/google/cacheinvalidation/impl/checking-invalidation-listener.cc',
- 'files/src/google/cacheinvalidation/impl/checking-invalidation-listener.h',
- 'files/src/google/cacheinvalidation/impl/client-protocol-namespace-fix.h',
- 'files/src/google/cacheinvalidation/impl/constants.cc',
- 'files/src/google/cacheinvalidation/impl/constants.h',
- 'files/src/google/cacheinvalidation/impl/digest-store.h',
- 'files/src/google/cacheinvalidation/impl/exponential-backoff-delay-generator.cc',
- 'files/src/google/cacheinvalidation/impl/exponential-backoff-delay-generator.h',
- 'files/src/google/cacheinvalidation/impl/invalidation-client-factory.cc',
- 'files/src/google/cacheinvalidation/impl/invalidation-client-impl.cc',
- 'files/src/google/cacheinvalidation/impl/invalidation-client-impl.h',
- 'files/src/google/cacheinvalidation/impl/invalidation-client-util.h',
- 'files/src/google/cacheinvalidation/impl/log-macro.h',
- 'files/src/google/cacheinvalidation/impl/object-id-digest-utils.cc',
- 'files/src/google/cacheinvalidation/impl/object-id-digest-utils.h',
- 'files/src/google/cacheinvalidation/impl/persistence-utils.cc',
- 'files/src/google/cacheinvalidation/impl/persistence-utils.h',
- 'files/src/google/cacheinvalidation/impl/proto-converter.cc',
- 'files/src/google/cacheinvalidation/impl/proto-converter.h',
- 'files/src/google/cacheinvalidation/impl/proto-helpers.h',
- 'files/src/google/cacheinvalidation/impl/proto-helpers.cc',
- 'files/src/google/cacheinvalidation/impl/protocol-handler.cc',
- 'files/src/google/cacheinvalidation/impl/protocol-handler.h',
- 'files/src/google/cacheinvalidation/impl/recurring-task.cc',
- 'files/src/google/cacheinvalidation/impl/recurring-task.h',
- 'files/src/google/cacheinvalidation/impl/registration-manager.cc',
- 'files/src/google/cacheinvalidation/impl/registration-manager.h',
- 'files/src/google/cacheinvalidation/impl/run-state.h',
- 'files/src/google/cacheinvalidation/impl/safe-storage.cc',
- 'files/src/google/cacheinvalidation/impl/safe-storage.h',
- 'files/src/google/cacheinvalidation/impl/simple-registration-store.cc',
- 'files/src/google/cacheinvalidation/impl/simple-registration-store.h',
- 'files/src/google/cacheinvalidation/impl/smearer.h',
- 'files/src/google/cacheinvalidation/impl/statistics.cc',
- 'files/src/google/cacheinvalidation/impl/statistics.h',
- 'files/src/google/cacheinvalidation/impl/throttle.cc',
- 'files/src/google/cacheinvalidation/impl/throttle.h',
- 'files/src/google/cacheinvalidation/impl/ticl-message-validator.cc',
- 'files/src/google/cacheinvalidation/impl/ticl-message-validator.h',
- 'files/src/google/cacheinvalidation/include/invalidation-client.h',
- 'files/src/google/cacheinvalidation/include/invalidation-client-factory.h',
- 'files/src/google/cacheinvalidation/include/invalidation-listener.h',
- 'files/src/google/cacheinvalidation/include/system-resources.h',
- 'files/src/google/cacheinvalidation/include/types.h',
+ 'overrides/google/cacheinvalidation/v2/callback.h',
+ 'overrides/google/cacheinvalidation/v2/gmock.h',
+ 'overrides/google/cacheinvalidation/v2/googletest.h',
+ 'overrides/google/cacheinvalidation/v2/logging.h',
+ 'overrides/google/cacheinvalidation/v2/mutex.h',
+ 'overrides/google/cacheinvalidation/v2/random.h',
+ 'overrides/google/cacheinvalidation/v2/scoped_ptr.h',
+ 'overrides/google/cacheinvalidation/v2/stl-namespace.h',
+ 'overrides/google/cacheinvalidation/v2/string_util.h',
+ 'overrides/google/cacheinvalidation/v2/time.h',
+ 'files/src/google/cacheinvalidation/v2/basic-system-resources.cc',
+ 'files/src/google/cacheinvalidation/v2/basic-system-resources.h',
+ 'files/src/google/cacheinvalidation/v2/checking-invalidation-listener.cc',
+ 'files/src/google/cacheinvalidation/v2/checking-invalidation-listener.h',
+ 'files/src/google/cacheinvalidation/v2/client-protocol-namespace-fix.h',
+ 'files/src/google/cacheinvalidation/v2/constants.cc',
+ 'files/src/google/cacheinvalidation/v2/constants.h',
+ 'files/src/google/cacheinvalidation/v2/digest-function.h',
+ 'files/src/google/cacheinvalidation/v2/digest-store.h',
+ 'files/src/google/cacheinvalidation/v2/exponential-backoff-delay-generator.cc',
+ 'files/src/google/cacheinvalidation/v2/exponential-backoff-delay-generator.h',
+ 'files/src/google/cacheinvalidation/v2/invalidation-client-factory.cc',
+ 'files/src/google/cacheinvalidation/v2/invalidation-client-factory.h',
+ 'files/src/google/cacheinvalidation/v2/invalidation-client-impl.cc',
+ 'files/src/google/cacheinvalidation/v2/invalidation-client-impl.h',
+ 'files/src/google/cacheinvalidation/v2/invalidation-client.h',
+ 'files/src/google/cacheinvalidation/v2/invalidation-client-util.h',
+ 'files/src/google/cacheinvalidation/v2/invalidation-listener.h',
+ 'files/src/google/cacheinvalidation/v2/log-macro.h',
+ 'files/src/google/cacheinvalidation/v2/logging.h',
+ 'files/src/google/cacheinvalidation/v2/mutex.h',
+ 'files/src/google/cacheinvalidation/v2/object-id-digest-utils.cc',
+ 'files/src/google/cacheinvalidation/v2/object-id-digest-utils.h',
+ 'files/src/google/cacheinvalidation/v2/operation-scheduler.cc',
+ 'files/src/google/cacheinvalidation/v2/operation-scheduler.h',
+ 'files/src/google/cacheinvalidation/v2/persistence-utils.cc',
+ 'files/src/google/cacheinvalidation/v2/persistence-utils.h',
+ 'files/src/google/cacheinvalidation/v2/proto-converter.cc',
+ 'files/src/google/cacheinvalidation/v2/proto-converter.h',
+ 'files/src/google/cacheinvalidation/v2/proto-helpers.h',
+ 'files/src/google/cacheinvalidation/v2/proto-helpers.cc',
+ 'files/src/google/cacheinvalidation/v2/protocol-handler.cc',
+ 'files/src/google/cacheinvalidation/v2/protocol-handler.h',
+ 'files/src/google/cacheinvalidation/v2/registration-manager.cc',
+ 'files/src/google/cacheinvalidation/v2/registration-manager.h',
+ 'files/src/google/cacheinvalidation/v2/run-state.h',
+ 'files/src/google/cacheinvalidation/v2/sha1-digest-function.h',
+ 'files/src/google/cacheinvalidation/v2/simple-registration-store.cc',
+ 'files/src/google/cacheinvalidation/v2/simple-registration-store.h',
+ 'files/src/google/cacheinvalidation/v2/smearer.h',
+ 'files/src/google/cacheinvalidation/v2/statistics.cc',
+ 'files/src/google/cacheinvalidation/v2/statistics.h',
+ 'files/src/google/cacheinvalidation/v2/string_util.h',
+ 'files/src/google/cacheinvalidation/v2/system-resources.h',
+ 'files/src/google/cacheinvalidation/v2/throttle.cc',
+ 'files/src/google/cacheinvalidation/v2/throttle.h',
+ 'files/src/google/cacheinvalidation/v2/ticl-message-validator.cc',
+ 'files/src/google/cacheinvalidation/v2/ticl-message-validator.h',
+ 'files/src/google/cacheinvalidation/v2/time.h',
+ 'files/src/google/cacheinvalidation/v2/types.h',
],
'include_dirs': [
'./overrides',
@@ -191,16 +193,15 @@
'type': 'executable',
'sources': [
'../../base/test/run_all_unittests.cc',
- 'files/src/google/cacheinvalidation/test/deterministic-scheduler.cc',
- 'files/src/google/cacheinvalidation/test/deterministic-scheduler.h',
- 'files/src/google/cacheinvalidation/test/test-logger.cc',
- 'files/src/google/cacheinvalidation/test/test-logger.h',
- 'files/src/google/cacheinvalidation/test/test-utils.cc',
- 'files/src/google/cacheinvalidation/test/test-utils.h',
- 'files/src/google/cacheinvalidation/impl/invalidation-client-impl_test.cc',
- 'files/src/google/cacheinvalidation/impl/protocol-handler_test.cc',
- 'files/src/google/cacheinvalidation/impl/recurring-task_test.cc',
- 'files/src/google/cacheinvalidation/impl/throttle_test.cc',
+ 'files/src/google/cacheinvalidation/v2/test/deterministic-scheduler.cc',
+ 'files/src/google/cacheinvalidation/v2/test/deterministic-scheduler.h',
+ 'files/src/google/cacheinvalidation/v2/test/test-logger.cc',
+ 'files/src/google/cacheinvalidation/v2/test/test-logger.h',
+ 'files/src/google/cacheinvalidation/v2/test/test-utils.cc',
+ 'files/src/google/cacheinvalidation/v2/test/test-utils.h',
+ 'files/src/google/cacheinvalidation/v2/invalidation-client-impl_test.cc',
+ 'files/src/google/cacheinvalidation/v2/protocol-handler_test.cc',
+ 'files/src/google/cacheinvalidation/v2/throttle_test.cc',
],
'dependencies': [
'../../base/base.gyp:base',
diff --git a/third_party/cacheinvalidation/overrides/google/cacheinvalidation/deps/scoped_ptr.h b/third_party/cacheinvalidation/overrides/google/cacheinvalidation/deps/scoped_ptr.h
deleted file mode 100644
index b849a40..0000000
--- a/third_party/cacheinvalidation/overrides/google/cacheinvalidation/deps/scoped_ptr.h
+++ /dev/null
@@ -1,16 +0,0 @@
-// Copyright (c) 2012 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_DEPS_SCOPED_PTR_H_
-#define GOOGLE_CACHEINVALIDATION_DEPS_SCOPED_PTR_H_
-
-#include "base/memory/scoped_ptr.h"
-
-namespace invalidation {
-
-using ::scoped_ptr;
-
-} // namespace invalidation
-
-#endif // GOOGLE_CACHEINVALIDATION_DEPS_SCOPED_PTR_H_
diff --git a/third_party/cacheinvalidation/overrides/google/cacheinvalidation/deps/callback.h b/third_party/cacheinvalidation/overrides/google/cacheinvalidation/v2/callback.h
index e1da19b3..d1e9274 100644
--- a/third_party/cacheinvalidation/overrides/google/cacheinvalidation/deps/callback.h
+++ b/third_party/cacheinvalidation/overrides/google/cacheinvalidation/v2/callback.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef GOOGLE_CACHEINVALIDATION_DEPS_CALLBACK_H_
-#define GOOGLE_CACHEINVALIDATION_DEPS_CALLBACK_H_
+#ifndef GOOGLE_CACHEINVALIDATION_V2_CALLBACK_H_
+#define GOOGLE_CACHEINVALIDATION_V2_CALLBACK_H_
#include "base/bind.h"
#include "base/callback.h"
@@ -123,4 +123,4 @@ Closure* NewPermanentCallback(
} // namespace invalidation
-#endif // GOOGLE_CACHEINVALIDATION_DEPS_CALLBACK_H_
+#endif // GOOGLE_CACHEINVALIDATION_V2_CALLBACK_H_
diff --git a/third_party/cacheinvalidation/overrides/google/cacheinvalidation/deps/gmock.h b/third_party/cacheinvalidation/overrides/google/cacheinvalidation/v2/gmock.h
index f85846f..e6a121e 100644
--- a/third_party/cacheinvalidation/overrides/google/cacheinvalidation/deps/gmock.h
+++ b/third_party/cacheinvalidation/overrides/google/cacheinvalidation/v2/gmock.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef GOOGLE_CACHEINVALIDATION_DEPS_GMOCK_H_
-#define GOOGLE_CACHEINVALIDATION_DEPS_GMOCK_H_
+#ifndef GOOGLE_CACHEINVALIDATION_V2_GMOCK_H_
+#define GOOGLE_CACHEINVALIDATION_V2_GMOCK_H_
#include "testing/gmock/include/gmock/gmock.h"
@@ -88,4 +88,4 @@ MATCHER_P(EqualsProto, message, "") {
} // namespace testing
-#endif // GOOGLE_CACHEINVALIDATION_DEPS_GMOCK_H_
+#endif // GOOGLE_CACHEINVALIDATION_V2_GMOCK_H_
diff --git a/third_party/cacheinvalidation/overrides/google/cacheinvalidation/deps/googletest.h b/third_party/cacheinvalidation/overrides/google/cacheinvalidation/v2/googletest.h
index 8623e8c..46bd071 100644
--- a/third_party/cacheinvalidation/overrides/google/cacheinvalidation/deps/googletest.h
+++ b/third_party/cacheinvalidation/overrides/google/cacheinvalidation/v2/googletest.h
@@ -2,9 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef GOOGLE_CACHEINVALIDATION_DEPS_GOOGLETEST_H_
-#define GOOGLE_CACHEINVALIDATION_DEPS_GOOGLETEST_H_
+#ifndef GOOGLE_CACHEINVALIDATION_V2_GOOGLETEST_H_
+#define GOOGLE_CACHEINVALIDATION_V2_GOOGLETEST_H_
#include "testing/gtest/include/gtest/gtest.h"
-#endif // GOOGLE_CACHEINVALIDATION_DEPS_GOOGLETEST_H_
+#endif // GOOGLE_CACHEINVALIDATION_V2_GOOGLETEST_H_
diff --git a/third_party/cacheinvalidation/overrides/google/cacheinvalidation/deps/logging.h b/third_party/cacheinvalidation/overrides/google/cacheinvalidation/v2/logging.h
index 0c7c52f..a2f27f0 100644
--- a/third_party/cacheinvalidation/overrides/google/cacheinvalidation/deps/logging.h
+++ b/third_party/cacheinvalidation/overrides/google/cacheinvalidation/v2/logging.h
@@ -1,9 +1,9 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 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_DEPS_LOGGING_H_
-#define GOOGLE_CACHEINVALIDATION_DEPS_LOGGING_H_
+#ifndef GOOGLE_CACHEINVALIDATION_V2_LOGGING_H_
+#define GOOGLE_CACHEINVALIDATION_V2_LOGGING_H_
#include "base/logging.h"
@@ -13,4 +13,4 @@ using logging::LogMessage;
} // namespace invalidation
-#endif // GOOGLE_CACHEINVALIDATION_DEPS_LOGGING_H_
+#endif // GOOGLE_CACHEINVALIDATION_V2_LOGGING_H_
diff --git a/third_party/cacheinvalidation/overrides/google/cacheinvalidation/deps/mutex.h b/third_party/cacheinvalidation/overrides/google/cacheinvalidation/v2/mutex.h
index 1f0e23c..7eda283 100644
--- a/third_party/cacheinvalidation/overrides/google/cacheinvalidation/deps/mutex.h
+++ b/third_party/cacheinvalidation/overrides/google/cacheinvalidation/v2/mutex.h
@@ -1,9 +1,9 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 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_DEPS_MUTEX_H_
-#define GOOGLE_CACHEINVALIDATION_DEPS_MUTEX_H_
+#ifndef GOOGLE_CACHEINVALIDATION_V2_MUTEX_H_
+#define GOOGLE_CACHEINVALIDATION_V2_MUTEX_H_
#include "base/logging.h"
#include "base/synchronization/lock.h"
@@ -23,4 +23,4 @@ class MutexLock {
} // namespace invalidation
-#endif // GOOGLE_CACHEINVALIDATION_DEPS_MUTEX_H_
+#endif // GOOGLE_CACHEINVALIDATION_V2_MUTEX_H_
diff --git a/third_party/cacheinvalidation/overrides/google/cacheinvalidation/deps/random.h b/third_party/cacheinvalidation/overrides/google/cacheinvalidation/v2/random.h
index e43084e..d8c586a 100644
--- a/third_party/cacheinvalidation/overrides/google/cacheinvalidation/deps/random.h
+++ b/third_party/cacheinvalidation/overrides/google/cacheinvalidation/v2/random.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef GOOGLE_CACHEINVALIDATION_DEPS_RANDOM_H_
-#define GOOGLE_CACHEINVALIDATION_DEPS_RANDOM_H_
+#ifndef GOOGLE_CACHEINVALIDATION_V2_RANDOM_H_
+#define GOOGLE_CACHEINVALIDATION_V2_RANDOM_H_
#include "base/rand_util.h"
@@ -14,14 +14,12 @@ class Random {
// We don't actually use the seed.
explicit Random(int64 seed) {}
- virtual ~Random() {}
-
// Returns a pseudorandom value between(inclusive) and(exclusive).
- virtual double RandDouble() {
+ double RandDouble() {
return base::RandDouble();
}
};
} // namespace invalidation
-#endif // GOOGLE_CACHEINVALIDATION_DEPS_RANDOM_H_
+#endif // GOOGLE_CACHEINVALIDATION_V2_RANDOM_H_
diff --git a/third_party/cacheinvalidation/overrides/google/cacheinvalidation/v2/scoped_ptr.h b/third_party/cacheinvalidation/overrides/google/cacheinvalidation/v2/scoped_ptr.h
new file mode 100644
index 0000000..80ed3cc
--- /dev/null
+++ b/third_party/cacheinvalidation/overrides/google/cacheinvalidation/v2/scoped_ptr.h
@@ -0,0 +1,16 @@
+// Copyright (c) 2011 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_V2_SCOPED_PTR_H_
+#define GOOGLE_CACHEINVALIDATION_V2_SCOPED_PTR_H_
+
+#include "base/memory/scoped_ptr.h"
+
+namespace invalidation {
+
+using ::scoped_ptr;
+
+} // namespace invalidation
+
+#endif // GOOGLE_CACHEINVALIDATION_V2_SCOPED_PTR_H_
diff --git a/third_party/cacheinvalidation/overrides/google/cacheinvalidation/deps/sha1-digest-function.h b/third_party/cacheinvalidation/overrides/google/cacheinvalidation/v2/sha1-digest-function.h
index d12c971..a22e3f2 100644
--- a/third_party/cacheinvalidation/overrides/google/cacheinvalidation/deps/sha1-digest-function.h
+++ b/third_party/cacheinvalidation/overrides/google/cacheinvalidation/v2/sha1-digest-function.h
@@ -4,14 +4,14 @@
// Interface to SHA1 digest computation.
-#ifndef GOOGLE_CACHEINVALIDATION_DEPS_SHA1_DIGEST_FUNCTION_H_
-#define GOOGLE_CACHEINVALIDATION_DEPS_SHA1_DIGEST_FUNCTION_H_
+#ifndef GOOGLE_CACHEINVALIDATION_V2_SHA1_DIGEST_FUNCTION_H_
+#define GOOGLE_CACHEINVALIDATION_V2_SHA1_DIGEST_FUNCTION_H_
#include <string>
#include "base/sha1.h"
-#include "google/cacheinvalidation/deps/digest-function.h"
-#include "google/cacheinvalidation/deps/stl-namespace.h"
+#include "google/cacheinvalidation/v2/digest-function.h"
+#include "google/cacheinvalidation/v2/stl-namespace.h"
namespace invalidation {
@@ -44,4 +44,4 @@ class Sha1DigestFunction : public DigestFunction {
} // namespace invalidation
-#endif // GOOGLE_CACHEINVALIDATION_DEPS_SHA1_DIGEST_FUNCTION_H_
+#endif // GOOGLE_CACHEINVALIDATION_V2_SHA1_DIGEST_FUNCTION_H_
diff --git a/third_party/cacheinvalidation/overrides/google/cacheinvalidation/deps/stl-namespace.h b/third_party/cacheinvalidation/overrides/google/cacheinvalidation/v2/stl-namespace.h
index 352af0e..c660cbd 100644
--- a/third_party/cacheinvalidation/overrides/google/cacheinvalidation/deps/stl-namespace.h
+++ b/third_party/cacheinvalidation/overrides/google/cacheinvalidation/v2/stl-namespace.h
@@ -2,9 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef GOOGLE_CACHEINVALIDATION_DEPS_STL_NAMESPACE_H_
-#define GOOGLE_CACHEINVALIDATION_DEPS_STL_NAMESPACE_H_
+#ifndef GOOGLE_CACHEINVALIDATION_V2_STL_NAMESPACE_H_
+#define GOOGLE_CACHEINVALIDATION_V2_STL_NAMESPACE_H_
#define INVALIDATION_STL_NAMESPACE std
-#endif // GOOGLE_CACHEINVALIDATION_DEPS_STL_NAMESPACE_H_
+#endif // GOOGLE_CACHEINVALIDATION_V2_STL_NAMESPACE_H_
diff --git a/third_party/cacheinvalidation/overrides/google/cacheinvalidation/deps/string_util.h b/third_party/cacheinvalidation/overrides/google/cacheinvalidation/v2/string_util.h
index c5dd13f..1b7246d 100644
--- a/third_party/cacheinvalidation/overrides/google/cacheinvalidation/deps/string_util.h
+++ b/third_party/cacheinvalidation/overrides/google/cacheinvalidation/v2/string_util.h
@@ -1,9 +1,9 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 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_DEPS_STRING_UTIL_H_
-#define GOOGLE_CACHEINVALIDATION_DEPS_STRING_UTIL_H_
+#ifndef GOOGLE_CACHEINVALIDATION_V2_STRING_UTIL_H_
+#define GOOGLE_CACHEINVALIDATION_V2_STRING_UTIL_H_
#include "base/string_number_conversions.h"
#include "base/stringprintf.h"
@@ -15,4 +15,4 @@ using base::StringAppendV;
} // namespace invalidation
-#endif // GOOGLE_CACHEINVALIDATION_DEPS_STRING_UTIL_H_
+#endif // GOOGLE_CACHEINVALIDATION_V2_STRING_UTIL_H_
diff --git a/third_party/cacheinvalidation/overrides/google/cacheinvalidation/deps/time.h b/third_party/cacheinvalidation/overrides/google/cacheinvalidation/v2/time.h
index 53c77b4..b8644f5 100644
--- a/third_party/cacheinvalidation/overrides/google/cacheinvalidation/deps/time.h
+++ b/third_party/cacheinvalidation/overrides/google/cacheinvalidation/v2/time.h
@@ -1,9 +1,9 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 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_DEPS_TIME_H_
-#define GOOGLE_CACHEINVALIDATION_DEPS_TIME_H_
+#ifndef GOOGLE_CACHEINVALIDATION_V2_TIME_H_
+#define GOOGLE_CACHEINVALIDATION_V2_TIME_H_
#include "base/time.h"
@@ -13,4 +13,4 @@ typedef base::TimeTicks TimeTicks;
typedef base::TimeDelta TimeDelta;
} // namespace invalidation
-#endif // GOOGLE_CACHEINVALIDATION_DEPS_TIME_H_
+#endif // GOOGLE_CACHEINVALIDATION_V2_TIME_H_