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 // A simple wrapper around invalidation::InvalidationClient that | 5 // A simple wrapper around invalidation::InvalidationClient that |
6 // handles all the startup/shutdown details and hookups. | 6 // handles all the startup/shutdown details and hookups. |
7 | 7 |
8 #ifndef SYNC_NOTIFIER_CHROME_INVALIDATION_CLIENT_H_ | 8 #ifndef SYNC_NOTIFIER_CHROME_INVALIDATION_CLIENT_H_ |
9 #define SYNC_NOTIFIER_CHROME_INVALIDATION_CLIENT_H_ | 9 #define SYNC_NOTIFIER_CHROME_INVALIDATION_CLIENT_H_ |
10 #pragma once | 10 #pragma once |
11 | 11 |
12 #include <string> | 12 #include <string> |
13 | 13 |
14 #include "base/basictypes.h" | 14 #include "base/basictypes.h" |
15 #include "base/compiler_specific.h" | 15 #include "base/compiler_specific.h" |
16 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
17 #include "base/memory/weak_ptr.h" | 17 #include "base/memory/weak_ptr.h" |
18 #include "base/threading/non_thread_safe.h" | 18 #include "base/threading/non_thread_safe.h" |
19 #include "google/cacheinvalidation/include/invalidation-listener.h" | 19 #include "google/cacheinvalidation/include/invalidation-listener.h" |
20 #include "sync/internal_api/public/syncable/model_type.h" | 20 #include "sync/internal_api/public/syncable/model_type.h" |
21 #include "sync/internal_api/public/syncable/model_type_payload_map.h" | 21 #include "sync/internal_api/public/syncable/model_type_payload_map.h" |
| 22 #include "sync/internal_api/public/util/weak_handle.h" |
22 #include "sync/notifier/chrome_system_resources.h" | 23 #include "sync/notifier/chrome_system_resources.h" |
23 #include "sync/notifier/invalidation_state_tracker.h" | 24 #include "sync/notifier/invalidation_state_tracker.h" |
24 #include "sync/notifier/state_writer.h" | 25 #include "sync/notifier/state_writer.h" |
25 #include "sync/util/weak_handle.h" | |
26 | 26 |
27 namespace buzz { | 27 namespace buzz { |
28 class XmppTaskParentInterface; | 28 class XmppTaskParentInterface; |
29 } // namespace buzz | 29 } // namespace buzz |
30 | 30 |
31 namespace notifier { | 31 namespace notifier { |
32 class PushClient; | 32 class PushClient; |
33 } // namespace notifier | 33 } // namespace notifier |
34 | 34 |
35 namespace sync_notifier { | 35 namespace sync_notifier { |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 // Stored to pass to |registration_manager_| on start. | 128 // Stored to pass to |registration_manager_| on start. |
129 syncable::ModelTypeSet registered_types_; | 129 syncable::ModelTypeSet registered_types_; |
130 bool ticl_ready_; | 130 bool ticl_ready_; |
131 | 131 |
132 DISALLOW_COPY_AND_ASSIGN(ChromeInvalidationClient); | 132 DISALLOW_COPY_AND_ASSIGN(ChromeInvalidationClient); |
133 }; | 133 }; |
134 | 134 |
135 } // namespace sync_notifier | 135 } // namespace sync_notifier |
136 | 136 |
137 #endif // SYNC_NOTIFIER_CHROME_INVALIDATION_CLIENT_H_ | 137 #endif // SYNC_NOTIFIER_CHROME_INVALIDATION_CLIENT_H_ |
OLD | NEW |