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

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

Issue 1616113003: List message decryption failures on chrome://gcm-internals (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase after CL 1619053003 Created 4 years, 11 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
« no previous file with comments | « components/gcm_driver/gcm_client_impl.cc ('k') | components/gcm_driver/gcm_driver.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_H_ 5 #ifndef COMPONENTS_GCM_DRIVER_GCM_DRIVER_H_
6 #define COMPONENTS_GCM_DRIVER_GCM_DRIVER_H_ 6 #define COMPONENTS_GCM_DRIVER_GCM_DRIVER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 249
250 // Platform-specific implementation of UnregisterWithSenderId. 250 // Platform-specific implementation of UnregisterWithSenderId.
251 virtual void UnregisterWithSenderIdImpl(const std::string& app_id, 251 virtual void UnregisterWithSenderIdImpl(const std::string& app_id,
252 const std::string& sender_id); 252 const std::string& sender_id);
253 253
254 // Platform-specific implementation of Send. 254 // Platform-specific implementation of Send.
255 virtual void SendImpl(const std::string& app_id, 255 virtual void SendImpl(const std::string& app_id,
256 const std::string& receiver_id, 256 const std::string& receiver_id,
257 const OutgoingMessage& message) = 0; 257 const OutgoingMessage& message) = 0;
258 258
259 // Platform-specific implementation of recording message decryption failures.
260 virtual void RecordDecryptionFailure(
261 const std::string& app_id,
262 GCMEncryptionProvider::DecryptionFailure reason) = 0;
263
259 // Runs the Register callback. 264 // Runs the Register callback.
260 void RegisterFinished(const std::string& app_id, 265 void RegisterFinished(const std::string& app_id,
261 const std::string& registration_id, 266 const std::string& registration_id,
262 GCMClient::Result result); 267 GCMClient::Result result);
263 268
264 // Runs the Unregister callback. 269 // Runs the Unregister callback.
265 void UnregisterFinished(const std::string& app_id, 270 void UnregisterFinished(const std::string& app_id,
266 GCMClient::Result result); 271 GCMClient::Result result);
267 272
268 // Runs the Send callback. 273 // Runs the Send callback.
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 DefaultGCMAppHandler default_app_handler_; 321 DefaultGCMAppHandler default_app_handler_;
317 322
318 base::WeakPtrFactory<GCMDriver> weak_ptr_factory_; 323 base::WeakPtrFactory<GCMDriver> weak_ptr_factory_;
319 324
320 DISALLOW_COPY_AND_ASSIGN(GCMDriver); 325 DISALLOW_COPY_AND_ASSIGN(GCMDriver);
321 }; 326 };
322 327
323 } // namespace gcm 328 } // namespace gcm
324 329
325 #endif // COMPONENTS_GCM_DRIVER_GCM_DRIVER_H_ 330 #endif // COMPONENTS_GCM_DRIVER_GCM_DRIVER_H_
OLDNEW
« no previous file with comments | « components/gcm_driver/gcm_client_impl.cc ('k') | components/gcm_driver/gcm_driver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698