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

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

Issue 1406823002: Start of foreign fetch implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove blank line 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
Index: content/browser/service_worker/service_worker_version.h
diff --git a/content/browser/service_worker/service_worker_version.h b/content/browser/service_worker/service_worker_version.h
index 62b1303a0df491738f89e76b662bee08d9ee4388..c45c18a15b74d9e8656e481ff5261550630a0b6d 100644
--- a/content/browser/service_worker/service_worker_version.h
+++ b/content/browser/service_worker/service_worker_version.h
@@ -360,6 +360,8 @@ class CONTENT_EXPORT ServiceWorkerVersion
FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest, StayAliveAfterPush);
FRIEND_TEST_ALL_PREFIXES(ServiceWorkerStallInStoppingTest, DetachThenStart);
FRIEND_TEST_ALL_PREFIXES(ServiceWorkerStallInStoppingTest, DetachThenRestart);
+ FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest,
+ RegisterForeignFetchScopes);
class Metrics;
class PingController;
@@ -495,6 +497,8 @@ class CONTENT_EXPORT ServiceWorkerVersion
const std::string& client_uuid,
const ServiceWorkerClientInfo& client);
+ void OnRegisterForeignFetchScopes(const std::vector<GURL>& sub_scopes);
+
void DidEnsureLiveRegistrationForStartWorker(
const StatusCallback& callback,
ServiceWorkerStatusCode status,
@@ -577,6 +581,7 @@ class CONTENT_EXPORT ServiceWorkerVersion
const int64 registration_id_;
const GURL script_url_;
const GURL scope_;
+ std::vector<GURL> foreign_fetch_scopes_;
Status status_ = NEW;
scoped_ptr<EmbeddedWorkerInstance> embedded_worker_;

Powered by Google App Engine
This is Rietveld 408576698