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

Unified Diff: extensions/renderer/script_context.cc

Issue 2943583002: [extension SW] Support lazy events from extension service workers. (Closed)
Patch Set: sync @tott 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
« no previous file with comments | « extensions/renderer/script_context.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/script_context.cc
diff --git a/extensions/renderer/script_context.cc b/extensions/renderer/script_context.cc
index 9a60177ad76ebe841bc8da9c7331b4081b9d14e4..531e416f6180196adafa3088710c9ab297e13d3d 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) {
« no previous file with comments | « extensions/renderer/script_context.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698