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" |
(...skipping 20 matching lines...) Expand all Loading... |
31 NOTREACHED() << "This state tracker does not support reflection-blocking"; | 31 NOTREACHED() << "This state tracker does not support reflection-blocking"; |
32 return std::string(); | 32 return std::string(); |
33 } | 33 } |
34 | 34 |
35 std::string NullInvalidationStateTracker::GetBootstrapData() const { | 35 std::string NullInvalidationStateTracker::GetBootstrapData() const { |
36 return std::string(); | 36 return std::string(); |
37 } | 37 } |
38 | 38 |
39 void NullInvalidationStateTracker::SetBootstrapData(const std::string& data) { | 39 void NullInvalidationStateTracker::SetBootstrapData(const std::string& data) { |
40 std::string base64_data; | 40 std::string base64_data; |
41 CHECK(base::Base64Encode(data, &base64_data)); | 41 base::Base64Encode(data, &base64_data); |
42 LOG(INFO) << "Setting bootstrap data to: " << base64_data; | 42 LOG(INFO) << "Setting bootstrap data to: " << base64_data; |
43 } | 43 } |
44 | 44 |
45 void NullInvalidationStateTracker::Clear() { | 45 void NullInvalidationStateTracker::Clear() { |
46 // We have no members to clear. | 46 // We have no members to clear. |
47 } | 47 } |
48 | 48 |
49 void NullInvalidationStateTracker::SetSavedInvalidations( | 49 void NullInvalidationStateTracker::SetSavedInvalidations( |
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 |