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

Side by Side Diff: components/gcm_driver/gcm_driver_desktop.h

Issue 897793002: Remove gcm channel state supported by sync service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix android builds Created 5 years, 10 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_GCM_DRIVER_GCM_DRIVER_DESKTOP_H_ 5 #ifndef COMPONENTS_GCM_DRIVER_GCM_DRIVER_DESKTOP_H_
6 #define COMPONENTS_GCM_DRIVER_GCM_DRIVER_DESKTOP_H_ 6 #define COMPONENTS_GCM_DRIVER_GCM_DRIVER_DESKTOP_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 void GCMClientReady(const std::vector<AccountMapping>& account_mappings, 127 void GCMClientReady(const std::vector<AccountMapping>& account_mappings,
128 const base::Time& last_token_fetch_time); 128 const base::Time& last_token_fetch_time);
129 void OnConnected(const net::IPEndPoint& ip_endpoint); 129 void OnConnected(const net::IPEndPoint& ip_endpoint);
130 void OnDisconnected(); 130 void OnDisconnected();
131 131
132 void GetGCMStatisticsFinished(const GCMClient::GCMStatistics& stats); 132 void GetGCMStatisticsFinished(const GCMClient::GCMStatistics& stats);
133 133
134 scoped_ptr<GCMChannelStatusSyncer> gcm_channel_status_syncer_; 134 scoped_ptr<GCMChannelStatusSyncer> gcm_channel_status_syncer_;
135 135
136 // Flag to indicate whether the user is signed in to a GAIA account. 136 // Flag to indicate whether the user is signed in to a GAIA account.
137 // TODO(jianli): To be removed when sign-in enforcement is dropped.
138 bool signed_in_; 137 bool signed_in_;
139 138
140 // Flag to indicate if GCM is started. 139 // Flag to indicate if GCM is started.
141 bool gcm_started_; 140 bool gcm_started_;
142 141
143 // Flag to indicate if GCM is enabled. 142 // Flag to indicate if GCM is enabled.
144 // TODO(jianli): Removed when we switch completely to support all users.
145 bool gcm_enabled_; 143 bool gcm_enabled_;
146 144
147 // Flag to indicate the last known state of the GCM client. Because this 145 // Flag to indicate the last known state of the GCM client. Because this
148 // flag lives on the UI thread, while the GCM client lives on the IO thread, 146 // flag lives on the UI thread, while the GCM client lives on the IO thread,
149 // it may be out of date while connection changes are happening. 147 // it may be out of date while connection changes are happening.
150 bool connected_; 148 bool connected_;
151 149
152 // List of observers to notify when connection state changes. 150 // List of observers to notify when connection state changes.
153 ObserverList<GCMConnectionObserver, false> connection_observer_list_; 151 ObserverList<GCMConnectionObserver, false> connection_observer_list_;
154 152
(...skipping 21 matching lines...) Expand all
176 174
177 // Used to pass a weak pointer to the IO worker. 175 // Used to pass a weak pointer to the IO worker.
178 base::WeakPtrFactory<GCMDriverDesktop> weak_ptr_factory_; 176 base::WeakPtrFactory<GCMDriverDesktop> weak_ptr_factory_;
179 177
180 DISALLOW_COPY_AND_ASSIGN(GCMDriverDesktop); 178 DISALLOW_COPY_AND_ASSIGN(GCMDriverDesktop);
181 }; 179 };
182 180
183 } // namespace gcm 181 } // namespace gcm
184 182
185 #endif // COMPONENTS_GCM_DRIVER_GCM_DRIVER_DESKTOP_H_ 183 #endif // COMPONENTS_GCM_DRIVER_GCM_DRIVER_DESKTOP_H_
OLDNEW
« no previous file with comments | « components/gcm_driver/gcm_channel_status_syncer.cc ('k') | sync/internal_api/public/util/experiments.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698