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 CHROME_BROWSER_SYNC_NOTIFIER_CHROME_INVALIDATION_CLIENT_H_ | 8 #ifndef CHROME_BROWSER_SYNC_NOTIFIER_CHROME_INVALIDATION_CLIENT_H_ |
9 #define CHROME_BROWSER_SYNC_NOTIFIER_CHROME_INVALIDATION_CLIENT_H_ | 9 #define CHROME_BROWSER_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 "chrome/browser/sync/notifier/chrome_system_resources.h" | 19 #include "chrome/browser/sync/notifier/chrome_system_resources.h" |
20 #include "chrome/browser/sync/notifier/invalidation_version_tracker.h" | 20 #include "chrome/browser/sync/notifier/invalidation_version_tracker.h" |
21 #include "chrome/browser/sync/notifier/state_writer.h" | 21 #include "chrome/browser/sync/notifier/state_writer.h" |
22 #include "chrome/browser/sync/syncable/model_type.h" | |
23 #include "chrome/browser/sync/syncable/model_type_payload_map.h" | |
24 #include "chrome/browser/sync/util/weak_handle.h" | |
25 #include "google/cacheinvalidation/include/invalidation-listener.h" | 22 #include "google/cacheinvalidation/include/invalidation-listener.h" |
| 23 #include "sync/syncable/model_type.h" |
| 24 #include "sync/syncable/model_type_payload_map.h" |
| 25 #include "sync/util/weak_handle.h" |
26 | 26 |
27 // TODO(akalin): Move invalidation::InvalidationListener into its own | 27 // TODO(akalin): Move invalidation::InvalidationListener into its own |
28 // file and include that instead of invalidation-client.h (which | 28 // file and include that instead of invalidation-client.h (which |
29 // includes generated protobuf header files). | 29 // includes generated protobuf header files). |
30 | 30 |
31 namespace buzz { | 31 namespace buzz { |
32 class XmppTaskParentInterface; | 32 class XmppTaskParentInterface; |
33 } // namespace buzz | 33 } // namespace buzz |
34 | 34 |
35 namespace sync_notifier { | 35 namespace sync_notifier { |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 // Stored to pass to |registration_manager_| on start. | 137 // Stored to pass to |registration_manager_| on start. |
138 syncable::ModelTypeSet registered_types_; | 138 syncable::ModelTypeSet registered_types_; |
139 bool ticl_ready_; | 139 bool ticl_ready_; |
140 | 140 |
141 DISALLOW_COPY_AND_ASSIGN(ChromeInvalidationClient); | 141 DISALLOW_COPY_AND_ASSIGN(ChromeInvalidationClient); |
142 }; | 142 }; |
143 | 143 |
144 } // namespace sync_notifier | 144 } // namespace sync_notifier |
145 | 145 |
146 #endif // CHROME_BROWSER_SYNC_NOTIFIER_CHROME_INVALIDATION_CLIENT_H_ | 146 #endif // CHROME_BROWSER_SYNC_NOTIFIER_CHROME_INVALIDATION_CLIENT_H_ |
OLD | NEW |