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

Unified Diff: sync/internal_api/public/base/invalidation_state.cc

Issue 11052007: Rename ModelType/ObjectIdStateMap to InvalidationMap. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 2 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
Index: sync/internal_api/public/base/invalidation_state.cc
diff --git a/sync/internal_api/public/base/invalidation_state.cc b/sync/internal_api/public/base/invalidation_state.cc
deleted file mode 100644
index 6f71351ecda9da6a3c7a6e10e2901acfc7d2a985..0000000000000000000000000000000000000000
--- a/sync/internal_api/public/base/invalidation_state.cc
+++ /dev/null
@@ -1,42 +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.
-
-#include "sync/internal_api/public/base/invalidation_state.h"
-
-#include "base/values.h"
-
-namespace syncer {
-
-bool AckHandle::Equals(const AckHandle& other) const {
- return true;
-}
-
-scoped_ptr<base::Value> AckHandle::ToValue() const {
- return scoped_ptr<base::Value>(new DictionaryValue());
-}
-
-bool AckHandle::ResetFromValue(const base::Value& value) {
- return true;
-}
-
-bool InvalidationState::Equals(const InvalidationState& other) const {
- return (payload == other.payload) && ack_handle.Equals(other.ack_handle);
-}
-
-scoped_ptr<base::DictionaryValue> InvalidationState::ToValue() const {
- scoped_ptr<DictionaryValue> value(new DictionaryValue());
- value->SetString("payload", payload);
- value->Set("ackHandle", ack_handle.ToValue().release());
- return value.Pass();
-}
-
-bool InvalidationState::ResetFromValue(const base::DictionaryValue& value) {
- const base::Value* ack_handle_value = NULL;
- return
- value.GetString("payload", &payload) &&
- value.Get("ackHandle", &ack_handle_value) &&
- ack_handle.ResetFromValue(*ack_handle_value);
-}
-
-} // namespace syncer
« no previous file with comments | « sync/internal_api/public/base/invalidation_state.h ('k') | sync/internal_api/public/base/invalidation_state_test_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698