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

Unified Diff: components/gcm_driver/gcm_driver.h

Issue 1707513002: Add various UMA histograms for measuring GCM crypto performance (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gcm-remove-info
Patch Set: android fix Created 4 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/gcm_driver/gcm_driver.h
diff --git a/components/gcm_driver/gcm_driver.h b/components/gcm_driver/gcm_driver.h
index 12445a8811aaa00f959338f192498cd10924092e..c33890a3636664662d9f28d563aa4b26febb2161 100644
--- a/components/gcm_driver/gcm_driver.h
+++ b/components/gcm_driver/gcm_driver.h
@@ -260,7 +260,7 @@ class GCMDriver {
// Platform-specific implementation of recording message decryption failures.
virtual void RecordDecryptionFailure(
const std::string& app_id,
- GCMEncryptionProvider::DecryptionFailure reason) = 0;
+ GCMEncryptionProvider::DecryptionResult result) = 0;
// Runs the Register callback.
void RegisterFinished(const std::string& app_id,
@@ -298,6 +298,13 @@ class GCMDriver {
const std::string* sender_id,
const UnregisterCallback& callback);
+ // Dispatches the OnMessage event to the app handler associated with |app_id|
+ // if |result| indicates that it is safe to do so, or will report a decryption
+ // failure for the |app_id| otherwise.
+ void DispatchMessageInternal(const std::string& app_id,
+ GCMEncryptionProvider::DecryptionResult result,
+ const IncomingMessage& message);
+
// Called after unregistration completes in order to trigger the pending
// registration.
void RegisterAfterUnregister(
« 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