Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(794)

Side by Side Diff: components/invalidation/impl/sync_invalidation_listener.h

Issue 2511973004: components: Cleanup class/struct fwd declarations (Closed)
Patch Set: Rebase on top of current master branch Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 // 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 COMPONENTS_INVALIDATION_IMPL_SYNC_INVALIDATION_LISTENER_H_ 8 #ifndef COMPONENTS_INVALIDATION_IMPL_SYNC_INVALIDATION_LISTENER_H_
9 #define COMPONENTS_INVALIDATION_IMPL_SYNC_INVALIDATION_LISTENER_H_ 9 #define COMPONENTS_INVALIDATION_IMPL_SYNC_INVALIDATION_LISTENER_H_
10 10
11 #include <memory> 11 #include <memory>
12 #include <string> 12 #include <string>
13 13
14 #include "base/callback_forward.h" 14 #include "base/callback_forward.h"
15 #include "base/compiler_specific.h" 15 #include "base/compiler_specific.h"
16 #include "base/macros.h" 16 #include "base/macros.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 "components/invalidation/impl/invalidation_state_tracker.h" 19 #include "components/invalidation/impl/invalidation_state_tracker.h"
20 #include "components/invalidation/impl/state_writer.h" 20 #include "components/invalidation/impl/state_writer.h"
21 #include "components/invalidation/impl/sync_system_resources.h" 21 #include "components/invalidation/impl/sync_system_resources.h"
22 #include "components/invalidation/impl/unacked_invalidation_set.h" 22 #include "components/invalidation/impl/unacked_invalidation_set.h"
23 #include "components/invalidation/public/ack_handler.h" 23 #include "components/invalidation/public/ack_handler.h"
24 #include "components/invalidation/public/invalidation_export.h" 24 #include "components/invalidation/public/invalidation_export.h"
25 #include "components/invalidation/public/invalidator_state.h" 25 #include "components/invalidation/public/invalidator_state.h"
26 #include "google/cacheinvalidation/include/invalidation-listener.h" 26 #include "google/cacheinvalidation/include/invalidation-listener.h"
27 27
28 namespace buzz {
29 class XmppTaskParentInterface;
30 } // namespace buzz
31
32 namespace notifier {
33 class PushClient;
34 } // namespace notifier
35
36 namespace syncer { 28 namespace syncer {
37 29
38 class ObjectIdInvalidationMap; 30 class ObjectIdInvalidationMap;
39 class RegistrationManager; 31 class RegistrationManager;
40 32
41 // SyncInvalidationListener is not thread-safe and lives on the sync 33 // SyncInvalidationListener is not thread-safe and lives on the sync
42 // thread. 34 // thread.
43 class INVALIDATION_EXPORT SyncInvalidationListener 35 class INVALIDATION_EXPORT SyncInvalidationListener
44 : public NON_EXPORTED_BASE(invalidation::InvalidationListener), 36 : public NON_EXPORTED_BASE(invalidation::InvalidationListener),
45 public StateWriter, 37 public StateWriter,
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 InvalidatorState push_client_state_; 175 InvalidatorState push_client_state_;
184 176
185 base::WeakPtrFactory<SyncInvalidationListener> weak_ptr_factory_; 177 base::WeakPtrFactory<SyncInvalidationListener> weak_ptr_factory_;
186 178
187 DISALLOW_COPY_AND_ASSIGN(SyncInvalidationListener); 179 DISALLOW_COPY_AND_ASSIGN(SyncInvalidationListener);
188 }; 180 };
189 181
190 } // namespace syncer 182 } // namespace syncer
191 183
192 #endif // COMPONENTS_INVALIDATION_IMPL_SYNC_INVALIDATION_LISTENER_H_ 184 #endif // COMPONENTS_INVALIDATION_IMPL_SYNC_INVALIDATION_LISTENER_H_
OLDNEW
« no previous file with comments | « components/invalidation/impl/invalidator_registrar.h ('k') | components/invalidation/public/invalidation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698