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

Side by Side Diff: components/gcm_driver/gcm_client.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 unified diff | Download patch
« no previous file with comments | « components/gcm_driver/fake_gcm_driver.cc ('k') | components/gcm_driver/gcm_client_impl.h » ('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_CLIENT_H_ 5 #ifndef COMPONENTS_GCM_DRIVER_GCM_CLIENT_H_
6 #define COMPONENTS_GCM_DRIVER_GCM_CLIENT_H_ 6 #define COMPONENTS_GCM_DRIVER_GCM_CLIENT_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 262
263 // Sends a message to a given receiver. Delegate::OnSendFinished will be 263 // Sends a message to a given receiver. Delegate::OnSendFinished will be
264 // called asynchronously upon completion. 264 // called asynchronously upon completion.
265 // |app_id|: application ID. 265 // |app_id|: application ID.
266 // |receiver_id|: registration ID of the receiver party. 266 // |receiver_id|: registration ID of the receiver party.
267 // |message|: message to be sent. 267 // |message|: message to be sent.
268 virtual void Send(const std::string& app_id, 268 virtual void Send(const std::string& app_id,
269 const std::string& receiver_id, 269 const std::string& receiver_id,
270 const OutgoingMessage& message) = 0; 270 const OutgoingMessage& message) = 0;
271 271
272 // Records a decryption failure due to |reason| for the |app_id|. 272 // Records a decryption failure due to |result| for the |app_id|.
273 virtual void RecordDecryptionFailure( 273 virtual void RecordDecryptionFailure(
274 const std::string& app_id, 274 const std::string& app_id,
275 GCMEncryptionProvider::DecryptionFailure reason) = 0; 275 GCMEncryptionProvider::DecryptionResult result) = 0;
276 276
277 // Enables or disables internal activity recording. 277 // Enables or disables internal activity recording.
278 virtual void SetRecording(bool recording) = 0; 278 virtual void SetRecording(bool recording) = 0;
279 279
280 // Clear all recorded GCM activity logs. 280 // Clear all recorded GCM activity logs.
281 virtual void ClearActivityLogs() = 0; 281 virtual void ClearActivityLogs() = 0;
282 282
283 // Gets internal states and statistics. 283 // Gets internal states and statistics.
284 virtual GCMStatistics GetStatistics() const = 0; 284 virtual GCMStatistics GetStatistics() const = 0;
285 285
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 // to be set, and allows that component to later revoke the setting. It should 321 // to be set, and allows that component to later revoke the setting. It should
322 // be unique. 322 // be unique.
323 virtual void AddHeartbeatInterval(const std::string& scope, 323 virtual void AddHeartbeatInterval(const std::string& scope,
324 int interval_ms) = 0; 324 int interval_ms) = 0;
325 virtual void RemoveHeartbeatInterval(const std::string& scope) = 0; 325 virtual void RemoveHeartbeatInterval(const std::string& scope) = 0;
326 }; 326 };
327 327
328 } // namespace gcm 328 } // namespace gcm
329 329
330 #endif // COMPONENTS_GCM_DRIVER_GCM_CLIENT_H_ 330 #endif // COMPONENTS_GCM_DRIVER_GCM_CLIENT_H_
OLDNEW
« no previous file with comments | « components/gcm_driver/fake_gcm_driver.cc ('k') | components/gcm_driver/gcm_client_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698