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

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

Issue 1411953002: Store foreign fetch scopes in database with other SW information. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@foreign-fetch-interface
Patch Set: address nhiroki's comments Created 5 years, 2 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 | « no previous file | content/browser/service_worker/service_worker_database.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/service_worker/service_worker_database.h
diff --git a/content/browser/service_worker/service_worker_database.h b/content/browser/service_worker/service_worker_database.h
index 6b7dea0d3b83aa9b5ab2e1433850c72296471539..4c605cf7c640b9256b9535ca0155550d7f7b8db4 100644
--- a/content/browser/service_worker/service_worker_database.h
+++ b/content/browser/service_worker/service_worker_database.h
@@ -64,6 +64,7 @@ class CONTENT_EXPORT ServiceWorkerDatabase {
bool is_active;
bool has_fetch_handler;
base::Time last_update_check;
+ std::vector<GURL> foreign_fetch_scopes;
// Not populated until ServiceWorkerStorage::StoreRegistration is called.
int64_t resources_total_size_bytes;
@@ -107,6 +108,11 @@ class CONTENT_EXPORT ServiceWorkerDatabase {
// Otherwise, returns an error.
Status GetOriginsWithRegistrations(std::set<GURL>* origins);
+ // Reads origins that have one or more than one registration with at least one
+ // foreign fetch scope registered. Returns OK if they are successfully read or
+ // not found. Otherwise returns an error.
+ Status GetOriginsWithForeignFetchRegistrations(std::set<GURL>* origins);
+
// Reads registrations for |origin| from the database. Returns OK if they are
// successfully read or not found. Otherwise, returns an error.
Status GetRegistrationsForOrigin(
« no previous file with comments | « no previous file | content/browser/service_worker/service_worker_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698