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

Unified Diff: components/gcm_driver/crypto/gcm_key_store.h

Issue 1231613005: Hook up the Push API with GCM's new ability to own encryption keys. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gcm-encryption
Patch Set: Created 5 years, 5 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/crypto/gcm_key_store.h
diff --git a/components/gcm_driver/crypto/gcm_key_store.h b/components/gcm_driver/crypto/gcm_key_store.h
index c35bb310f4bb8e8e93a909fab12460658f40b24b..20a44e92108f584c2505195c8d0b4b7319aa3c95 100644
--- a/components/gcm_driver/crypto/gcm_key_store.h
+++ b/components/gcm_driver/crypto/gcm_key_store.h
@@ -37,7 +37,7 @@ class GCMKeyStore : public base::RefCounted<GCMKeyStore> {
using DeleteCallback = base::Callback<void(bool success)>;
GCMKeyStore(const base::FilePath& key_store_path,
- scoped_refptr<base::SequencedTaskRunner> background_task_runner);
+ scoped_refptr<base::SequencedTaskRunner> blocking_task_runner);
// Retrieves the public/private key-pair associated with |app_id|, and
// invokes |callback| when they are available, or when an error occurred.
@@ -85,6 +85,9 @@ class GCMKeyStore : public base::RefCounted<GCMKeyStore> {
// Path in which the key store database will be saved.
base::FilePath key_store_path_;
+ // Blocking task runner which the database will do I/O operations on.
+ scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_;
+
// Instance of the ProtoDatabase backing the key store.
scoped_ptr<leveldb_proto::ProtoDatabase<EncryptionData>> database_;

Powered by Google App Engine
This is Rietveld 408576698