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

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

Issue 600053002: [GCM] Loading the account mappings from store to the driver (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removing account mapper from BUILD.gn android section Created 6 years, 2 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 const GCMClient::OutgoingMessage& message); 122 const GCMClient::OutgoingMessage& message);
123 123
124 // Callbacks posted from IO thread to UI thread. 124 // Callbacks posted from IO thread to UI thread.
125 void MessageReceived(const std::string& app_id, 125 void MessageReceived(const std::string& app_id,
126 const GCMClient::IncomingMessage& message); 126 const GCMClient::IncomingMessage& message);
127 void MessagesDeleted(const std::string& app_id); 127 void MessagesDeleted(const std::string& app_id);
128 void MessageSendError(const std::string& app_id, 128 void MessageSendError(const std::string& app_id,
129 const GCMClient::SendErrorDetails& send_error_details); 129 const GCMClient::SendErrorDetails& send_error_details);
130 void SendAcknowledged(const std::string& app_id, 130 void SendAcknowledged(const std::string& app_id,
131 const std::string& message_id); 131 const std::string& message_id);
132 void GCMClientReady(); 132 void GCMClientReady(
133 const std::vector<AccountMapping>& account_mappings);
133 void OnConnected(const net::IPEndPoint& ip_endpoint); 134 void OnConnected(const net::IPEndPoint& ip_endpoint);
134 void OnDisconnected(); 135 void OnDisconnected();
135 136
136 void GetGCMStatisticsFinished(const GCMClient::GCMStatistics& stats); 137 void GetGCMStatisticsFinished(const GCMClient::GCMStatistics& stats);
137 138
138 scoped_ptr<GCMChannelStatusSyncer> gcm_channel_status_syncer_; 139 scoped_ptr<GCMChannelStatusSyncer> gcm_channel_status_syncer_;
139 140
140 // Flag to indicate whether the user is signed in to a GAIA account. 141 // Flag to indicate whether the user is signed in to a GAIA account.
141 // TODO(jianli): To be removed when sign-in enforcement is dropped. 142 // TODO(jianli): To be removed when sign-in enforcement is dropped.
142 bool signed_in_; 143 bool signed_in_;
(...skipping 28 matching lines...) Expand all
171 172
172 // Used to pass a weak pointer to the IO worker. 173 // Used to pass a weak pointer to the IO worker.
173 base::WeakPtrFactory<GCMDriverDesktop> weak_ptr_factory_; 174 base::WeakPtrFactory<GCMDriverDesktop> weak_ptr_factory_;
174 175
175 DISALLOW_COPY_AND_ASSIGN(GCMDriverDesktop); 176 DISALLOW_COPY_AND_ASSIGN(GCMDriverDesktop);
176 }; 177 };
177 178
178 } // namespace gcm 179 } // namespace gcm
179 180
180 #endif // COMPONENTS_GCM_DRIVER_GCM_DRIVER_DESKTOP_H_ 181 #endif // COMPONENTS_GCM_DRIVER_GCM_DRIVER_DESKTOP_H_
OLDNEW
« no previous file with comments | « components/gcm_driver/gcm_client_impl_unittest.cc ('k') | components/gcm_driver/gcm_driver_desktop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698