OLD | NEW |
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 <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 scoped_ptr<syncer::InvalidationStateTracker> invalidation_state_tracker_; | 137 scoped_ptr<syncer::InvalidationStateTracker> invalidation_state_tracker_; |
138 scoped_ptr<syncer::Invalidator> invalidator_; | 138 scoped_ptr<syncer::Invalidator> invalidator_; |
139 | 139 |
140 // TiclInvalidationService needs to remember access token in order to | 140 // TiclInvalidationService needs to remember access token in order to |
141 // invalidate it with OAuth2TokenService. | 141 // invalidate it with OAuth2TokenService. |
142 std::string access_token_; | 142 std::string access_token_; |
143 | 143 |
144 // TiclInvalidationService needs to hold reference to access_token_request_ | 144 // TiclInvalidationService needs to hold reference to access_token_request_ |
145 // for the duration of request in order to receive callbacks. | 145 // for the duration of request in order to receive callbacks. |
146 scoped_ptr<OAuth2TokenService::Request> access_token_request_; | 146 scoped_ptr<OAuth2TokenService::Request> access_token_request_; |
147 base::OneShotTimer<TiclInvalidationService> request_access_token_retry_timer_; | 147 base::OneShotTimer request_access_token_retry_timer_; |
148 net::BackoffEntry request_access_token_backoff_; | 148 net::BackoffEntry request_access_token_backoff_; |
149 | 149 |
150 InvalidationNetworkChannel network_channel_type_; | 150 InvalidationNetworkChannel network_channel_type_; |
151 gcm::GCMDriver* gcm_driver_; | 151 gcm::GCMDriver* gcm_driver_; |
152 scoped_ptr<GCMInvalidationBridge> gcm_invalidation_bridge_; | 152 scoped_ptr<GCMInvalidationBridge> gcm_invalidation_bridge_; |
153 scoped_refptr<net::URLRequestContextGetter> request_context_; | 153 scoped_refptr<net::URLRequestContextGetter> request_context_; |
154 | 154 |
155 // The invalidation logger object we use to record state changes | 155 // The invalidation logger object we use to record state changes |
156 // and invalidations. | 156 // and invalidations. |
157 InvalidationLogger logger_; | 157 InvalidationLogger logger_; |
158 | 158 |
159 // Keep a copy of the important parameters used in network channel creation | 159 // Keep a copy of the important parameters used in network channel creation |
160 // for debugging. | 160 // for debugging. |
161 base::DictionaryValue network_channel_options_; | 161 base::DictionaryValue network_channel_options_; |
162 | 162 |
163 DISALLOW_COPY_AND_ASSIGN(TiclInvalidationService); | 163 DISALLOW_COPY_AND_ASSIGN(TiclInvalidationService); |
164 }; | 164 }; |
165 | 165 |
166 } // namespace invalidation | 166 } // namespace invalidation |
167 | 167 |
168 #endif // COMPONENTS_INVALIDATION_IMPL_TICL_INVALIDATION_SERVICE_H_ | 168 #endif // COMPONENTS_INVALIDATION_IMPL_TICL_INVALIDATION_SERVICE_H_ |
OLD | NEW |