diff options
Diffstat (limited to 'content/browser/shared_worker')
-rw-r--r-- | content/browser/shared_worker/shared_worker_service_impl.cc | 10 | ||||
-rw-r--r-- | content/browser/shared_worker/shared_worker_service_impl.h | 4 |
2 files changed, 6 insertions, 8 deletions
diff --git a/content/browser/shared_worker/shared_worker_service_impl.cc b/content/browser/shared_worker/shared_worker_service_impl.cc index 221c1dd..af5b65d 100644 --- a/content/browser/shared_worker/shared_worker_service_impl.cc +++ b/content/browser/shared_worker/shared_worker_service_impl.cc @@ -447,9 +447,8 @@ void SharedWorkerServiceImpl::OnSharedWorkerMessageFilterClosing( } std::vector<int> remove_pending_instance_list; - for (PendingInstaneMap::iterator iter = pending_instances_.begin(); - iter != pending_instances_.end(); - ++iter) { + for (PendingInstanceMap::iterator iter = pending_instances_.begin(); + iter != pending_instances_.end(); ++iter) { iter->second->RemoveRequest(filter->render_process_id()); if (!iter->second->requests()->size()) remove_pending_instance_list.push_back(iter->first); @@ -616,9 +615,8 @@ SharedWorkerHost* SharedWorkerServiceImpl::FindSharedWorkerHost( SharedWorkerServiceImpl::SharedWorkerPendingInstance* SharedWorkerServiceImpl::FindPendingInstance( const SharedWorkerInstance& instance) { - for (PendingInstaneMap::iterator iter = pending_instances_.begin(); - iter != pending_instances_.end(); - ++iter) { + for (PendingInstanceMap::iterator iter = pending_instances_.begin(); + iter != pending_instances_.end(); ++iter) { if (iter->second->instance()->Matches(instance)) return iter->second; } diff --git a/content/browser/shared_worker/shared_worker_service_impl.h b/content/browser/shared_worker/shared_worker_service_impl.h index 99296d6..ea68ae6 100644 --- a/content/browser/shared_worker/shared_worker_service_impl.h +++ b/content/browser/shared_worker/shared_worker_service_impl.h @@ -110,7 +110,7 @@ class CONTENT_EXPORT SharedWorkerServiceImpl typedef base::ScopedPtrHashMap<ProcessRouteIdPair, scoped_ptr<SharedWorkerHost>> WorkerHostMap; typedef base::ScopedPtrHashMap<int, scoped_ptr<SharedWorkerPendingInstance>> - PendingInstaneMap; + PendingInstanceMap; SharedWorkerServiceImpl(); ~SharedWorkerServiceImpl() override; @@ -163,7 +163,7 @@ class CONTENT_EXPORT SharedWorkerServiceImpl static bool (*s_try_increment_worker_ref_count_)(int); WorkerHostMap worker_hosts_; - PendingInstaneMap pending_instances_; + PendingInstanceMap pending_instances_; int next_pending_instance_id_; base::ObserverList<WorkerServiceObserver> observers_; |