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

Unified Diff: extensions/renderer/script_context.cc

Issue 2943583002: [extension SW] Support lazy events from extension service workers. (Closed)
Patch Set: Address comments from falken@ Created 3 years, 6 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: extensions/renderer/script_context.cc
diff --git a/extensions/renderer/script_context.cc b/extensions/renderer/script_context.cc
index 197e6c0c764c6ee96c514d876b832a2dea46894d..dc7fb9f7bab24d089aaaf2456729f5a7f55d8f14 100644
--- a/extensions/renderer/script_context.cc
+++ b/extensions/renderer/script_context.cc
@@ -254,6 +254,11 @@ std::string ScriptContext::GetEffectiveContextTypeDescription() const {
return GetContextTypeDescriptionString(effective_context_type_);
}
+const GURL& ScriptContext::service_worker_scope() const {
+ DCHECK_EQ(Feature::SERVICE_WORKER_CONTEXT, context_type());
+ return service_worker_scope_;
+}
+
bool ScriptContext::IsAnyFeatureAvailableToContext(
const Feature& api,
CheckAliasStatus check_alias) {
« content/public/test/service_worker_test_helpers.h ('K') | « extensions/renderer/script_context.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698