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

Unified Diff: components/gcm_driver/gcm_driver.cc

Issue 2892033002: Enable support for draft-ietf-webpush-encryption-08 (Closed)
Patch Set: Enable support for draft-ietf-webpush-encryption-08 Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: components/gcm_driver/gcm_driver.cc
diff --git a/components/gcm_driver/gcm_driver.cc b/components/gcm_driver/gcm_driver.cc
index a6b0440aba715ed86f5ae5786cb1386f53db88aa..0f797f719f3b14a7aa99e2814fa88f02f4639f17 100644
--- a/components/gcm_driver/gcm_driver.cc
+++ b/components/gcm_driver/gcm_driver.cc
@@ -288,7 +288,8 @@ void GCMDriver::DispatchMessageInternal(
switch (result) {
case GCMEncryptionProvider::DECRYPTION_RESULT_UNENCRYPTED:
- case GCMEncryptionProvider::DECRYPTION_RESULT_DECRYPTED: {
+ case GCMEncryptionProvider::DECRYPTION_RESULT_DECRYPTED_DRAFT_03:
+ case GCMEncryptionProvider::DECRYPTION_RESULT_DECRYPTED_DRAFT_08: {
GCMAppHandler* handler = GetAppHandler(app_id);
if (handler)
handler->OnMessage(app_id, message);
@@ -302,6 +303,7 @@ void GCMDriver::DispatchMessageInternal(
case GCMEncryptionProvider::DECRYPTION_RESULT_NO_KEYS:
case GCMEncryptionProvider::DECRYPTION_RESULT_INVALID_SHARED_SECRET:
case GCMEncryptionProvider::DECRYPTION_RESULT_INVALID_PAYLOAD:
+ case GCMEncryptionProvider::DECRYPTION_RESULT_INVALID_BINARY_HEADER:
RecordDecryptionFailure(app_id, result);
return;
}
« no previous file with comments | « components/gcm_driver/crypto/gcm_encryption_provider_unittest.cc ('k') | components/gcm_driver/gcm_stats_recorder_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698