| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef COMPONENTS_INVALIDATION_PUBLIC_INVALIDATION_H_ | 5 #ifndef COMPONENTS_INVALIDATION_PUBLIC_INVALIDATION_H_ |
| 6 #define COMPONENTS_INVALIDATION_PUBLIC_INVALIDATION_H_ | 6 #define COMPONENTS_INVALIDATION_PUBLIC_INVALIDATION_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 #include <string> | 11 #include <string> |
| 12 | 12 |
| 13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
| 14 #include "base/sequenced_task_runner.h" | 14 #include "base/sequenced_task_runner.h" |
| 15 #include "base/values.h" | 15 #include "base/values.h" |
| 16 #include "components/invalidation/public/ack_handle.h" | 16 #include "components/invalidation/public/ack_handle.h" |
| 17 #include "components/invalidation/public/invalidation_export.h" | 17 #include "components/invalidation/public/invalidation_export.h" |
| 18 #include "google/cacheinvalidation/include/types.h" | 18 #include "google/cacheinvalidation/include/types.h" |
| 19 | 19 |
| 20 namespace syncer { | 20 namespace syncer { |
| 21 | 21 |
| 22 class DroppedInvalidationTracker; | |
| 23 class AckHandler; | 22 class AckHandler; |
| 24 | 23 |
| 25 // Represents a local invalidation, and is roughly analogous to | 24 // Represents a local invalidation, and is roughly analogous to |
| 26 // invalidation::Invalidation. Unlike invalidation::Invalidation, this class | 25 // invalidation::Invalidation. Unlike invalidation::Invalidation, this class |
| 27 // supports "local" ack-tracking and simple serialization to pref values. | 26 // supports "local" ack-tracking and simple serialization to pref values. |
| 28 class INVALIDATION_EXPORT Invalidation { | 27 class INVALIDATION_EXPORT Invalidation { |
| 29 public: | 28 public: |
| 30 // Factory functions. | 29 // Factory functions. |
| 31 static Invalidation Init(const invalidation::ObjectId& id, | 30 static Invalidation Init(const invalidation::ObjectId& id, |
| 32 int64_t version, | 31 int64_t version, |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 AckHandle ack_handle_; | 119 AckHandle ack_handle_; |
| 121 | 120 |
| 122 // The acknowledgement tracking handler and its thread. | 121 // The acknowledgement tracking handler and its thread. |
| 123 base::WeakPtr<AckHandler> ack_handler_; | 122 base::WeakPtr<AckHandler> ack_handler_; |
| 124 scoped_refptr<base::SequencedTaskRunner> ack_handler_task_runner_; | 123 scoped_refptr<base::SequencedTaskRunner> ack_handler_task_runner_; |
| 125 }; | 124 }; |
| 126 | 125 |
| 127 } // namespace syncer | 126 } // namespace syncer |
| 128 | 127 |
| 129 #endif // COMPONENTS_INVALIDATION_PUBLIC_INVALIDATION_H_ | 128 #endif // COMPONENTS_INVALIDATION_PUBLIC_INVALIDATION_H_ |
| OLD | NEW |