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

Unified Diff: trunk/src/content/browser/worker_host/worker_process_host.cc

Issue 15465006: Revert 200932 "Lower the priority of shared workers that aren't ..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 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: trunk/src/content/browser/worker_host/worker_process_host.cc
===================================================================
--- trunk/src/content/browser/worker_host/worker_process_host.cc (revision 201089)
+++ trunk/src/content/browser/worker_host/worker_process_host.cc (working copy)
@@ -114,8 +114,7 @@
ResourceContext* resource_context,
const WorkerStoragePartition& partition)
: resource_context_(resource_context),
- partition_(partition),
- process_launched_(false) {
+ partition_(partition) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
DCHECK(resource_context_);
process_.reset(
@@ -319,9 +318,6 @@
}
void WorkerProcessHost::OnProcessLaunched() {
- process_launched_ = true;
-
- WorkerServiceImpl::GetInstance()->NotifyWorkerProcessCreated();
}
bool WorkerProcessHost::OnMessageReceived(const IPC::Message& message) {
@@ -542,18 +538,10 @@
Send(new WorkerMsg_TerminateWorkerContext(worker_route_id));
}
-void WorkerProcessHost::SetBackgrounded(bool backgrounded) {
- process_->SetBackgrounded(backgrounded);
-}
-
const ChildProcessData& WorkerProcessHost::GetData() {
return process_->GetData();
}
-bool WorkerProcessHost::process_launched() const {
- return process_launched_;
-}
-
std::vector<std::pair<int, int> > WorkerProcessHost::GetRenderViewIDsForWorker(
int worker_route_id) {
std::vector<std::pair<int, int> > result;

Powered by Google App Engine
This is Rietveld 408576698