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

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

Issue 2909113002: Deprecate NonThreadSafe in components/invalidation in favor of SequenceChecker. (Closed)
Patch Set: Created 3 years, 6 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
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 #ifndef COMPONENTS_INVALIDATION_IMPL_TICL_INVALIDATION_SERVICE_H_ 5 #ifndef COMPONENTS_INVALIDATION_IMPL_TICL_INVALIDATION_SERVICE_H_
6 #define COMPONENTS_INVALIDATION_IMPL_TICL_INVALIDATION_SERVICE_H_ 6 #define COMPONENTS_INVALIDATION_IMPL_TICL_INVALIDATION_SERVICE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/threading/non_thread_safe.h" 14 #include "base/sequence_checker.h"
15 #include "base/timer/timer.h" 15 #include "base/timer/timer.h"
16 #include "base/values.h" 16 #include "base/values.h"
17 #include "components/invalidation/impl/invalidation_logger.h" 17 #include "components/invalidation/impl/invalidation_logger.h"
18 #include "components/invalidation/impl/invalidator_registrar.h" 18 #include "components/invalidation/impl/invalidator_registrar.h"
19 #include "components/invalidation/impl/ticl_settings_provider.h" 19 #include "components/invalidation/impl/ticl_settings_provider.h"
20 #include "components/invalidation/public/invalidation_handler.h" 20 #include "components/invalidation/public/invalidation_handler.h"
21 #include "components/invalidation/public/invalidation_service.h" 21 #include "components/invalidation/public/invalidation_service.h"
22 #include "components/keyed_service/core/keyed_service.h" 22 #include "components/keyed_service/core/keyed_service.h"
23 #include "google_apis/gaia/identity_provider.h" 23 #include "google_apis/gaia/identity_provider.h"
24 #include "google_apis/gaia/oauth2_token_service.h" 24 #include "google_apis/gaia/oauth2_token_service.h"
(...skipping 10 matching lines...) Expand all
35 namespace syncer { 35 namespace syncer {
36 class InvalidationStateTracker; 36 class InvalidationStateTracker;
37 class Invalidator; 37 class Invalidator;
38 } 38 }
39 39
40 namespace invalidation { 40 namespace invalidation {
41 class GCMInvalidationBridge; 41 class GCMInvalidationBridge;
42 42
43 // This InvalidationService wraps the C++ Invalidation Client (TICL) library. 43 // This InvalidationService wraps the C++ Invalidation Client (TICL) library.
44 // It provides invalidations for desktop platforms (Win, Mac, Linux). 44 // It provides invalidations for desktop platforms (Win, Mac, Linux).
45 class TiclInvalidationService : public base::NonThreadSafe, 45 class TiclInvalidationService : public InvalidationService,
46 public InvalidationService,
47 public OAuth2TokenService::Consumer, 46 public OAuth2TokenService::Consumer,
48 public OAuth2TokenService::Observer, 47 public OAuth2TokenService::Observer,
49 public IdentityProvider::Observer, 48 public IdentityProvider::Observer,
50 public TiclSettingsProvider::Observer, 49 public TiclSettingsProvider::Observer,
51 public syncer::InvalidationHandler { 50 public syncer::InvalidationHandler {
52 public: 51 public:
53 enum InvalidationNetworkChannel { 52 enum InvalidationNetworkChannel {
54 PUSH_CLIENT_CHANNEL = 0, 53 PUSH_CLIENT_CHANNEL = 0,
55 GCM_NETWORK_CHANNEL = 1, 54 GCM_NETWORK_CHANNEL = 1,
56 55
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 scoped_refptr<net::URLRequestContextGetter> request_context_; 152 scoped_refptr<net::URLRequestContextGetter> request_context_;
154 153
155 // The invalidation logger object we use to record state changes 154 // The invalidation logger object we use to record state changes
156 // and invalidations. 155 // and invalidations.
157 InvalidationLogger logger_; 156 InvalidationLogger logger_;
158 157
159 // Keep a copy of the important parameters used in network channel creation 158 // Keep a copy of the important parameters used in network channel creation
160 // for debugging. 159 // for debugging.
161 base::DictionaryValue network_channel_options_; 160 base::DictionaryValue network_channel_options_;
162 161
162 SEQUENCE_CHECKER(sequence_checker_);
163
163 DISALLOW_COPY_AND_ASSIGN(TiclInvalidationService); 164 DISALLOW_COPY_AND_ASSIGN(TiclInvalidationService);
164 }; 165 };
165 166
166 } // namespace invalidation 167 } // namespace invalidation
167 168
168 #endif // COMPONENTS_INVALIDATION_IMPL_TICL_INVALIDATION_SERVICE_H_ 169 #endif // COMPONENTS_INVALIDATION_IMPL_TICL_INVALIDATION_SERVICE_H_
OLDNEW
« no previous file with comments | « components/invalidation/impl/sync_invalidation_listener.cc ('k') | components/invalidation/impl/ticl_invalidation_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698