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

Side by Side Diff: components/invalidation/non_blocking_invalidator.h

Issue 387733004: Move sync/notifier to components/invalidation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: (GN) Comment out dependency on internal target Created 6 years, 5 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
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 // An implementation of SyncNotifier that wraps InvalidationNotifier 5 // An implementation of SyncNotifier that wraps InvalidationNotifier
6 // on its own thread. 6 // on its own thread.
7 7
8 #ifndef COMPONENTS_INVALIDATION_NON_BLOCKING_INVALIDATOR_H_ 8 #ifndef COMPONENTS_INVALIDATION_NON_BLOCKING_INVALIDATOR_H_
9 #define COMPONENTS_INVALIDATION_NON_BLOCKING_INVALIDATOR_H_ 9 #define COMPONENTS_INVALIDATION_NON_BLOCKING_INVALIDATOR_H_
10 10
11 #include <string> 11 #include <string>
12 12
13 #include "base/basictypes.h" 13 #include "base/basictypes.h"
14 #include "base/callback.h" 14 #include "base/callback.h"
15 #include "base/compiler_specific.h" 15 #include "base/compiler_specific.h"
16 #include "base/memory/ref_counted.h" 16 #include "base/memory/ref_counted.h"
17 #include "base/memory/weak_ptr.h" 17 #include "base/memory/weak_ptr.h"
18 #include "components/invalidation/invalidation_export.h" 18 #include "components/invalidation/invalidation_export.h"
19 #include "components/invalidation/invalidation_state_tracker.h"
20 #include "components/invalidation/invalidator.h"
19 #include "components/invalidation/invalidator_registrar.h" 21 #include "components/invalidation/invalidator_registrar.h"
22 #include "components/invalidation/unacked_invalidation_set.h"
20 #include "jingle/notifier/base/notifier_options.h" 23 #include "jingle/notifier/base/notifier_options.h"
21 #include "sync/internal_api/public/base/invalidator_state.h" 24 #include "sync/internal_api/public/base/invalidator_state.h"
22 #include "sync/notifier/invalidation_state_tracker.h"
23 #include "sync/notifier/invalidator.h"
24 #include "sync/notifier/unacked_invalidation_set.h"
25 25
26 namespace base { 26 namespace base {
27 class SingleThreadTaskRunner; 27 class SingleThreadTaskRunner;
28 } // namespace base 28 } // namespace base
29 29
30 namespace syncer { 30 namespace syncer {
31 class SyncNetworkChannel; 31 class SyncNetworkChannel;
32 class GCMNetworkChannelDelegate; 32 class GCMNetworkChannelDelegate;
33 33
34 // Callback type for function that creates SyncNetworkChannel. This function 34 // Callback type for function that creates SyncNetworkChannel. This function
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 scoped_refptr<base::SingleThreadTaskRunner> network_task_runner_; 105 scoped_refptr<base::SingleThreadTaskRunner> network_task_runner_;
106 106
107 base::WeakPtrFactory<NonBlockingInvalidator> weak_ptr_factory_; 107 base::WeakPtrFactory<NonBlockingInvalidator> weak_ptr_factory_;
108 108
109 DISALLOW_COPY_AND_ASSIGN(NonBlockingInvalidator); 109 DISALLOW_COPY_AND_ASSIGN(NonBlockingInvalidator);
110 }; 110 };
111 111
112 } // namespace syncer 112 } // namespace syncer
113 113
114 #endif // COMPONENTS_INVALIDATION_NON_BLOCKING_INVALIDATOR_H_ 114 #endif // COMPONENTS_INVALIDATION_NON_BLOCKING_INVALIDATOR_H_
OLDNEW
« no previous file with comments | « components/invalidation/mock_ack_handler.cc ('k') | components/invalidation/non_blocking_invalidator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698