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

Unified Diff: extensions/browser/extension_function.h

Issue 2166523003: Add ref count to service workers for extension API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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/browser/extension_function.h
diff --git a/extensions/browser/extension_function.h b/extensions/browser/extension_function.h
index d6a0ad401abb836edcde59ec5b4bdb9fb4587a59..c6fbb089e49721e80830a8290e982018ccc3d206 100644
--- a/extensions/browser/extension_function.h
+++ b/extensions/browser/extension_function.h
@@ -531,6 +531,9 @@ class UIThreadExtensionFunction : public ExtensionFunction {
void set_is_from_service_worker(bool value) {
is_from_service_worker_ = value;
}
+ void set_embedded_worker_id(int embedded_worker_id) {
+ embedded_worker_id_ = embedded_worker_id;
+ }
// Gets the "current" web contents if any. If there is no associated web
// contents then defaults to the foremost one.
@@ -576,6 +579,7 @@ class UIThreadExtensionFunction : public ExtensionFunction {
// Whether or not this ExtensionFunction was called by an extension Service
// Worker.
bool is_from_service_worker_;
+ int embedded_worker_id_;
std::unique_ptr<RenderFrameHostTracker> tracker_;

Powered by Google App Engine
This is Rietveld 408576698