| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 "base/threading/non_thread_safe.h" | 5 #include "base/threading/non_thread_safe.h" |
| 6 #include "chrome/browser/invalidation/invalidation_service.h" | 6 #include "chrome/browser/invalidation/invalidation_service.h" |
| 7 #include "components/browser_context_keyed_service/browser_context_keyed_service
.h" | 7 #include "components/browser_context_keyed_service/browser_context_keyed_service
.h" |
| 8 #include "sync/notifier/object_id_invalidation_map.h" | 8 #include "sync/notifier/object_id_invalidation_map.h" |
| 9 | 9 |
| 10 #ifndef CHROME_BROWSER_INVALIDATION_P2P_INVALIDATION_SERVICE_H_ | 10 #ifndef CHROME_BROWSER_INVALIDATION_P2P_INVALIDATION_SERVICE_H_ |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 syncer::InvalidationHandler* handler) OVERRIDE; | 42 syncer::InvalidationHandler* handler) OVERRIDE; |
| 43 virtual void AcknowledgeInvalidation( | 43 virtual void AcknowledgeInvalidation( |
| 44 const invalidation::ObjectId& id, | 44 const invalidation::ObjectId& id, |
| 45 const syncer::AckHandle& ack_handle) OVERRIDE; | 45 const syncer::AckHandle& ack_handle) OVERRIDE; |
| 46 virtual syncer::InvalidatorState GetInvalidatorState() const OVERRIDE; | 46 virtual syncer::InvalidatorState GetInvalidatorState() const OVERRIDE; |
| 47 virtual std::string GetInvalidatorClientId() const OVERRIDE; | 47 virtual std::string GetInvalidatorClientId() const OVERRIDE; |
| 48 | 48 |
| 49 void UpdateCredentials(const std::string& username, | 49 void UpdateCredentials(const std::string& username, |
| 50 const std::string& password); | 50 const std::string& password); |
| 51 | 51 |
| 52 void SendInvalidation( | 52 void SendInvalidation(const syncer::ObjectIdSet& ids); |
| 53 const syncer::ObjectIdInvalidationMap& invalidation_map); | |
| 54 | 53 |
| 55 private: | 54 private: |
| 56 scoped_ptr<syncer::P2PInvalidator> invalidator_; | 55 scoped_ptr<syncer::P2PInvalidator> invalidator_; |
| 57 std::string invalidator_id_; | 56 std::string invalidator_id_; |
| 58 | 57 |
| 59 DISALLOW_COPY_AND_ASSIGN(P2PInvalidationService); | 58 DISALLOW_COPY_AND_ASSIGN(P2PInvalidationService); |
| 60 }; | 59 }; |
| 61 | 60 |
| 62 } // namespace invalidation | 61 } // namespace invalidation |
| 63 | 62 |
| 64 #endif // CHROME_BROWSER_INVALIDATION_P2P_INVALIDATION_SERVICE_H_ | 63 #endif // CHROME_BROWSER_INVALIDATION_P2P_INVALIDATION_SERVICE_H_ |
| OLD | NEW |