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

Unified Diff: content/browser/devtools/service_worker_devtools_manager.h

Issue 1130093009: Check the BrowserContext when ServiceWorkerHandler gets the ServiceWorkerDevToolsAgentHosts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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/devtools/service_worker_devtools_manager.h
diff --git a/content/browser/devtools/service_worker_devtools_manager.h b/content/browser/devtools/service_worker_devtools_manager.h
index 3e55b8b1b027e967e997053aa5fbde54393b8a0d..8815fefe331fe8ee171ce9cb4b5e9b4529cb54b2 100644
--- a/content/browser/devtools/service_worker_devtools_manager.h
+++ b/content/browser/devtools/service_worker_devtools_manager.h
@@ -15,6 +15,7 @@
namespace content {
+class BrowserContext;
class DevToolsAgentHostImpl;
class ServiceWorkerDevToolsAgentHost;
class ServiceWorkerContextCore;
@@ -71,6 +72,9 @@ class CONTENT_EXPORT ServiceWorkerDevToolsManager {
int worker_route_id);
void AddAllAgentHosts(
std::vector<scoped_refptr<ServiceWorkerDevToolsAgentHost>>* result);
+ void AddAllAgentHostsForBrowserContext(
+ BrowserContext* browser_context,
+ std::vector<scoped_refptr<ServiceWorkerDevToolsAgentHost>>* result);
// Returns true when the worker must be paused on start because a DevTool
// window for the same former ServiceWorkerIdentifier is still opened or

Powered by Google App Engine
This is Rietveld 408576698