summaryrefslogtreecommitdiffstats
path: root/content/browser/background_sync/background_sync_manager.h
diff options
context:
space:
mode:
authorjkarlin <jkarlin@chromium.org>2015-04-22 10:55:07 -0700
committerCommit bot <commit-bot@chromium.org>2015-04-22 17:56:32 +0000
commit291aca9d228366c57cc5a70572c3571c3c5149be (patch)
tree921771a12d4cb80f5b219177e7fb8f677a7c3388 /content/browser/background_sync/background_sync_manager.h
parent3a599661a49fa5ebfe63cb4016bb8efcd2d02712 (diff)
downloadchromium_src-291aca9d228366c57cc5a70572c3571c3c5149be.zip
chromium_src-291aca9d228366c57cc5a70572c3571c3c5149be.tar.gz
chromium_src-291aca9d228366c57cc5a70572c3571c3c5149be.tar.bz2
[BackgroundSync] Store origin with registration data
The origin GURL needs to be stored along with the registration for looking up service worker registrations (to start the necessary service worker and fire its events). BUG=479665 Review URL: https://codereview.chromium.org/1084043003 Cr-Commit-Position: refs/heads/master@{#326339}
Diffstat (limited to 'content/browser/background_sync/background_sync_manager.h')
-rw-r--r--content/browser/background_sync/background_sync_manager.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/content/browser/background_sync/background_sync_manager.h b/content/browser/background_sync/background_sync_manager.h
index d9925a6..a4d7714 100644
--- a/content/browser/background_sync/background_sync_manager.h
+++ b/content/browser/background_sync/background_sync_manager.h
@@ -157,12 +157,11 @@ class CONTENT_EXPORT BackgroundSyncManager
std::map<RegistrationKey, BackgroundSyncRegistration>;
BackgroundSyncRegistrations();
- explicit BackgroundSyncRegistrations(
- BackgroundSyncRegistration::RegistrationId next_id);
~BackgroundSyncRegistrations();
RegistrationMap registration_map;
BackgroundSyncRegistration::RegistrationId next_id;
+ GURL origin;
};
using PermissionStatusCallback = base::Callback<void(bool)>;
@@ -188,8 +187,7 @@ class CONTENT_EXPORT BackgroundSyncManager
const RegistrationKey& registration_key);
// Store all registrations for a given |sw_registration_id|.
- void StoreRegistrations(const GURL& origin,
- int64 sw_registration_id,
+ void StoreRegistrations(int64 sw_registration_id,
const ServiceWorkerStorage::StatusCallback& callback);
// Removes the registration if it is in the map.
@@ -198,6 +196,7 @@ class CONTENT_EXPORT BackgroundSyncManager
void AddRegistrationToMap(
int64 sw_registration_id,
+ const GURL& origin,
const BackgroundSyncRegistration& sync_registration);
void InitImpl(const base::Closure& callback);