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

Side by Side Diff: sync/notifier/invalidation_notifier.h

Issue 11624037: [sync] Componentize sync: Part 6: Add more SYNC_EXPORTs to files in src/sync/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase (no code changes) Created 7 years, 11 months 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 | Annotate | Revision Log
« no previous file with comments | « sync/notifier/invalidation_handler.h ('k') | sync/notifier/invalidation_state_tracker.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 // An implementation of Invalidator that wraps an invalidation 5 // An implementation of Invalidator that wraps an invalidation
6 // client. Handles the details of connecting to XMPP and hooking it 6 // client. Handles the details of connecting to XMPP and hooking it
7 // up to the invalidation client. 7 // up to the invalidation client.
8 // 8 //
9 // You probably don't want to use this directly; use 9 // You probably don't want to use this directly; use
10 // NonBlockingInvalidationNotifier. 10 // NonBlockingInvalidationNotifier.
11 11
12 #ifndef SYNC_NOTIFIER_INVALIDATION_NOTIFIER_H_ 12 #ifndef SYNC_NOTIFIER_INVALIDATION_NOTIFIER_H_
13 #define SYNC_NOTIFIER_INVALIDATION_NOTIFIER_H_ 13 #define SYNC_NOTIFIER_INVALIDATION_NOTIFIER_H_
14 14
15 #include <string> 15 #include <string>
16 16
17 #include "base/basictypes.h" 17 #include "base/basictypes.h"
18 #include "base/compiler_specific.h" 18 #include "base/compiler_specific.h"
19 #include "base/memory/scoped_ptr.h" 19 #include "base/memory/scoped_ptr.h"
20 #include "base/threading/non_thread_safe.h" 20 #include "base/threading/non_thread_safe.h"
21 #include "sync/base/sync_export.h"
21 #include "sync/internal_api/public/base/model_type.h" 22 #include "sync/internal_api/public/base/model_type.h"
22 #include "sync/internal_api/public/util/weak_handle.h" 23 #include "sync/internal_api/public/util/weak_handle.h"
23 #include "sync/notifier/invalidation_state_tracker.h" 24 #include "sync/notifier/invalidation_state_tracker.h"
24 #include "sync/notifier/invalidator.h" 25 #include "sync/notifier/invalidator.h"
25 #include "sync/notifier/invalidator_registrar.h" 26 #include "sync/notifier/invalidator_registrar.h"
26 #include "sync/notifier/sync_invalidation_listener.h" 27 #include "sync/notifier/sync_invalidation_listener.h"
27 28
28 namespace notifier { 29 namespace notifier {
29 class PushClient; 30 class PushClient;
30 } // namespace notifier 31 } // namespace notifier
31 32
32 namespace syncer { 33 namespace syncer {
33 34
34 // This class must live on the IO thread. 35 // This class must live on the IO thread.
35 // TODO(dcheng): Think of a name better than InvalidationInvalidator. 36 // TODO(dcheng): Think of a name better than InvalidationInvalidator.
36 class InvalidationNotifier 37 class SYNC_EXPORT_PRIVATE InvalidationNotifier
37 : public Invalidator, 38 : public Invalidator,
38 public SyncInvalidationListener::Delegate, 39 public SyncInvalidationListener::Delegate,
39 public base::NonThreadSafe { 40 public base::NonThreadSafe {
40 public: 41 public:
41 // |invalidation_state_tracker| must be initialized. 42 // |invalidation_state_tracker| must be initialized.
42 InvalidationNotifier( 43 InvalidationNotifier(
43 scoped_ptr<notifier::PushClient> push_client, 44 scoped_ptr<notifier::PushClient> push_client,
44 const InvalidationStateMap& initial_invalidation_state_map, 45 const InvalidationStateMap& initial_invalidation_state_map,
45 const std::string& invalidation_bootstrap_data, 46 const std::string& invalidation_bootstrap_data,
46 const WeakHandle<InvalidationStateTracker>& 47 const WeakHandle<InvalidationStateTracker>&
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 102
102 // The invalidation listener. 103 // The invalidation listener.
103 SyncInvalidationListener invalidation_listener_; 104 SyncInvalidationListener invalidation_listener_;
104 105
105 DISALLOW_COPY_AND_ASSIGN(InvalidationNotifier); 106 DISALLOW_COPY_AND_ASSIGN(InvalidationNotifier);
106 }; 107 };
107 108
108 } // namespace syncer 109 } // namespace syncer
109 110
110 #endif // SYNC_NOTIFIER_INVALIDATION_NOTIFIER_H_ 111 #endif // SYNC_NOTIFIER_INVALIDATION_NOTIFIER_H_
OLDNEW
« no previous file with comments | « sync/notifier/invalidation_handler.h ('k') | sync/notifier/invalidation_state_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698