OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 CHROME_BROWSER_INVALIDATION_TICL_INVALIDATION_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_INVALIDATION_TICL_INVALIDATION_SERVICE_H_ |
6 #define CHROME_BROWSER_INVALIDATION_TICL_INVALIDATION_SERVICE_H_ | 6 #define CHROME_BROWSER_INVALIDATION_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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 GCM_NETWORK_CHANNEL = 1, | 55 GCM_NETWORK_CHANNEL = 1, |
56 | 56 |
57 // This enum is used in UMA_HISTOGRAM_ENUMERATION. Insert new values above | 57 // This enum is used in UMA_HISTOGRAM_ENUMERATION. Insert new values above |
58 // this line. | 58 // this line. |
59 NETWORK_CHANNELS_COUNT = 2 | 59 NETWORK_CHANNELS_COUNT = 2 |
60 }; | 60 }; |
61 | 61 |
62 TiclInvalidationService( | 62 TiclInvalidationService( |
63 scoped_ptr<IdentityProvider> identity_provider, | 63 scoped_ptr<IdentityProvider> identity_provider, |
64 scoped_ptr<TiclSettingsProvider> settings_provider, | 64 scoped_ptr<TiclSettingsProvider> settings_provider, |
65 gcm::GCMDriver* gcm_service, | 65 gcm::GCMDriver* gcm_driver, |
66 const scoped_refptr<net::URLRequestContextGetter>& request_context); | 66 const scoped_refptr<net::URLRequestContextGetter>& request_context); |
67 virtual ~TiclInvalidationService(); | 67 virtual ~TiclInvalidationService(); |
68 | 68 |
69 void Init( | 69 void Init( |
70 scoped_ptr<syncer::InvalidationStateTracker> invalidation_state_tracker); | 70 scoped_ptr<syncer::InvalidationStateTracker> invalidation_state_tracker); |
71 | 71 |
72 // InvalidationService implementation. | 72 // InvalidationService implementation. |
73 // It is an error to have registered handlers when Shutdown() is called. | 73 // It is an error to have registered handlers when Shutdown() is called. |
74 virtual void RegisterInvalidationHandler( | 74 virtual void RegisterInvalidationHandler( |
75 syncer::InvalidationHandler* handler) OVERRIDE; | 75 syncer::InvalidationHandler* handler) OVERRIDE; |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 // Keep a copy of the important parameters used in network channel creation | 163 // Keep a copy of the important parameters used in network channel creation |
164 // for debugging. | 164 // for debugging. |
165 base::DictionaryValue network_channel_options_; | 165 base::DictionaryValue network_channel_options_; |
166 | 166 |
167 DISALLOW_COPY_AND_ASSIGN(TiclInvalidationService); | 167 DISALLOW_COPY_AND_ASSIGN(TiclInvalidationService); |
168 }; | 168 }; |
169 | 169 |
170 } // namespace invalidation | 170 } // namespace invalidation |
171 | 171 |
172 #endif // CHROME_BROWSER_INVALIDATION_TICL_INVALIDATION_SERVICE_H_ | 172 #endif // CHROME_BROWSER_INVALIDATION_TICL_INVALIDATION_SERVICE_H_ |
OLD | NEW |