| 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_INVALIDATION_H_ | 5 #ifndef COMPONENTS_INVALIDATION_BASE_INVALIDATION_H_ |
| 6 #define COMPONENTS_INVALIDATION_INVALIDATION_H_ | 6 #define COMPONENTS_INVALIDATION_BASE_INVALIDATION_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
| 13 #include "base/sequenced_task_runner.h" | 13 #include "base/sequenced_task_runner.h" |
| 14 #include "base/values.h" | 14 #include "base/values.h" |
| 15 #include "components/invalidation/ack_handle.h" | 15 #include "components/invalidation/base/ack_handle.h" |
| 16 #include "components/invalidation/invalidation_export.h" | 16 #include "components/invalidation/base/invalidation_export.h" |
| 17 #include "google/cacheinvalidation/include/types.h" | 17 #include "google/cacheinvalidation/include/types.h" |
| 18 | 18 |
| 19 namespace syncer { | 19 namespace syncer { |
| 20 | 20 |
| 21 class DroppedInvalidationTracker; | 21 class DroppedInvalidationTracker; |
| 22 class AckHandler; | 22 class AckHandler; |
| 23 | 23 |
| 24 // Represents a local invalidation, and is roughly analogous to | 24 // Represents a local invalidation, and is roughly analogous to |
| 25 // invalidation::Invalidation. Unlike invalidation::Invalidation, this class | 25 // invalidation::Invalidation. Unlike invalidation::Invalidation, this class |
| 26 // supports "local" ack-tracking and simple serialization to pref values. | 26 // supports "local" ack-tracking and simple serialization to pref values. |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 // A locally generated unique ID used to manage local acknowledgements. | 117 // A locally generated unique ID used to manage local acknowledgements. |
| 118 AckHandle ack_handle_; | 118 AckHandle ack_handle_; |
| 119 | 119 |
| 120 // The acknowledgement tracking handler and its thread. | 120 // The acknowledgement tracking handler and its thread. |
| 121 base::WeakPtr<AckHandler> ack_handler_; | 121 base::WeakPtr<AckHandler> ack_handler_; |
| 122 scoped_refptr<base::SequencedTaskRunner> ack_handler_task_runner_; | 122 scoped_refptr<base::SequencedTaskRunner> ack_handler_task_runner_; |
| 123 }; | 123 }; |
| 124 | 124 |
| 125 } // namespace syncer | 125 } // namespace syncer |
| 126 | 126 |
| 127 #endif // COMPONENTS_INVALIDATION_INVALIDATION_H_ | 127 #endif // COMPONENTS_INVALIDATION_BASE_INVALIDATION_H_ |
| OLD | NEW |