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

Unified Diff: content/browser/worker_host/worker_document_set.cc

Issue 178473016: Add WorkerDocumentSet::ContainsExternalRenderer(int worker_process_id) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 10 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 | « content/browser/worker_host/worker_document_set.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/worker_host/worker_document_set.cc
diff --git a/content/browser/worker_host/worker_document_set.cc b/content/browser/worker_host/worker_document_set.cc
index ac806ef76a7f890c7fa085b4da18486181cf3838..3031493783e8b166e2879814eeef797c09186644 100644
--- a/content/browser/worker_host/worker_document_set.cc
+++ b/content/browser/worker_host/worker_document_set.cc
@@ -29,6 +29,16 @@ bool WorkerDocumentSet::Contains(BrowserMessageFilter* parent,
return false;
}
+bool WorkerDocumentSet::ContainsExternalRenderer(
+ int worker_process_id) const {
+ for (DocumentInfoSet::const_iterator i = document_set_.begin();
+ i != document_set_.end(); ++i) {
+ if (i->render_process_id() != worker_process_id)
+ return true;
+ }
+ return false;
+}
+
void WorkerDocumentSet::Remove(BrowserMessageFilter* parent,
unsigned long long document_id) {
for (DocumentInfoSet::iterator i = document_set_.begin();
« no previous file with comments | « content/browser/worker_host/worker_document_set.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698