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

Unified Diff: content/browser/service_worker/service_worker_context_wrapper.h

Issue 1945753002: Make Service Worker DB UserData methods accept multiple keys at once (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@iid6encrypt
Patch Set: Created 4 years, 8 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: content/browser/service_worker/service_worker_context_wrapper.h
diff --git a/content/browser/service_worker/service_worker_context_wrapper.h b/content/browser/service_worker/service_worker_context_wrapper.h
index fec09d0240a24760c54236b5c53e68fadaa8f4fb..b5f5fed2418fb8a0d4d63ed74a53adf19706e6f4 100644
--- a/content/browser/service_worker/service_worker_context_wrapper.h
+++ b/content/browser/service_worker/service_worker_context_wrapper.h
@@ -154,15 +154,15 @@ class CONTENT_EXPORT ServiceWorkerContextWrapper
// All these methods must be called from the IO thread.
void GetAllRegistrations(const GetRegistrationsInfosCallback& callback);
void GetRegistrationUserData(int64_t registration_id,
- const std::string& key,
+ const std::vector<std::string>& keys,
Michael van Ouwerkerk 2016/05/04 09:08:52 nit: why not std::set<std::string>?
johnme 2016/05/05 10:54:04 Because the order of the results is based on the o
const GetUserDataCallback& callback);
- void StoreRegistrationUserData(int64_t registration_id,
- const GURL& origin,
- const std::string& key,
- const std::string& data,
- const StatusCallback& callback);
+ void StoreRegistrationUserData(
+ int64_t registration_id,
+ const GURL& origin,
+ const std::vector<std::pair<std::string, std::string>>& key_value_pairs,
Michael van Ouwerkerk 2016/05/04 09:08:52 nit: why not std::map<std::string, std::string>?
johnme 2016/05/05 10:54:04 I considered this, as both std::map and std::unord
+ const StatusCallback& callback);
void ClearRegistrationUserData(int64_t registration_id,
- const std::string& key,
+ const std::vector<std::string>& keys,
const StatusCallback& callback);
void GetUserDataForAllRegistrations(
const std::string& key,

Powered by Google App Engine
This is Rietveld 408576698