| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "sync/tools/null_invalidation_state_tracker.h" | 5 #include "sync/tools/null_invalidation_state_tracker.h" |
| 6 | 6 |
| 7 #include "base/base64.h" | 7 #include "base/base64.h" |
| 8 #include "base/bind.h" | 8 #include "base/bind.h" |
| 9 #include "base/callback.h" | 9 #include "base/callback.h" |
| 10 #include "base/location.h" | 10 #include "base/location.h" |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/task_runner.h" | 12 #include "base/task_runner.h" |
| 13 #include "sync/notifier/invalidation_util.h" | 13 #include "sync/notifier/invalidation_util.h" |
| 14 | 14 |
| 15 namespace syncer { | 15 namespace syncer { |
| 16 | 16 |
| 17 NullInvalidationStateTracker::NullInvalidationStateTracker() {} | 17 NullInvalidationStateTracker::NullInvalidationStateTracker() {} |
| 18 NullInvalidationStateTracker::~NullInvalidationStateTracker() {} | 18 NullInvalidationStateTracker::~NullInvalidationStateTracker() {} |
| 19 | 19 |
| 20 void NullInvalidationStateTracker::SetInvalidatorClientId( | 20 void NullInvalidationStateTracker::ClearAndSetNewClientId( |
| 21 const std::string& data) { | 21 const std::string& data) { |
| 22 LOG(INFO) << "Setting invalidator client ID to: " << data; | 22 LOG(INFO) << "Setting invalidator client ID to: " << data; |
| 23 } | 23 } |
| 24 | 24 |
| 25 std::string NullInvalidationStateTracker::GetInvalidatorClientId() const { | 25 std::string NullInvalidationStateTracker::GetInvalidatorClientId() const { |
| 26 // The caller of this function is probably looking for an ID it can use to | 26 // The caller of this function is probably looking for an ID it can use to |
| 27 // identify this client as the originator of some notifiable change. It does | 27 // identify this client as the originator of some notifiable change. It does |
| 28 // this so the invalidation server can prevent it from being notified of its | 28 // this so the invalidation server can prevent it from being notified of its |
| 29 // own changes. This invalidation state tracker doesn't remember its ID, so | 29 // own changes. This invalidation state tracker doesn't remember its ID, so |
| 30 // it can't support this feature. | 30 // it can't support this feature. |
| (...skipping 19 matching lines...) Expand all Loading... |
| 50 const UnackedInvalidationsMap& states) { | 50 const UnackedInvalidationsMap& states) { |
| 51 // Do nothing. | 51 // Do nothing. |
| 52 } | 52 } |
| 53 | 53 |
| 54 UnackedInvalidationsMap | 54 UnackedInvalidationsMap |
| 55 NullInvalidationStateTracker::GetSavedInvalidations() const { | 55 NullInvalidationStateTracker::GetSavedInvalidations() const { |
| 56 return UnackedInvalidationsMap(); | 56 return UnackedInvalidationsMap(); |
| 57 } | 57 } |
| 58 | 58 |
| 59 } // namespace syncer | 59 } // namespace syncer |
| OLD | NEW |