Home | History | Annotate | Download | only in page

Lines Matching refs:notifier

144         // This will cause this notifier to be deleted.
166 RefPtr<GeoNotifier> notifier = prpNotifier;
168 m_idToNotifierMap.set(id, notifier.get());
169 m_notifierToIdMap.set(notifier.release(), id);
181 void Geolocation::Watchers::remove(GeoNotifier* notifier)
183 NotifierToIdMap::iterator iter = m_notifierToIdMap.find(notifier);
190 bool Geolocation::Watchers::contains(GeoNotifier* notifier) const
192 return m_notifierToIdMap.contains(notifier);
274 RefPtr<GeoNotifier> notifier = startRequest(successCallback, errorCallback, options);
275 ASSERT(notifier);
277 m_oneShots.add(notifier);
282 RefPtr<GeoNotifier> notifier = startRequest(successCallback, errorCallback, options);
283 ASSERT(notifier);
289 m_watchers.set(nextAvailableWatchId, notifier.release());
295 RefPtr<GeoNotifier> notifier = GeoNotifier::create(this, successCallback, errorCallback, options);
300 notifier->setFatalError(PositionError::create(PositionError::PERMISSION_DENIED, permissionDeniedErrorMessage));
301 else if (haveSuitableCachedPosition(notifier->m_options.get()))
302 notifier->setUseCachedPosition();
303 else if (notifier->hasZeroTimeout() || startUpdating(notifier.get())) {
308 notifier->startTimerIfNeeded();
310 notifier->setFatalError(PositionError::create(PositionError::POSITION_UNAVAILABLE, failedToStartServiceErrorMessage));
312 return notifier.release();
315 void Geolocation::fatalErrorOccurred(Geolocation::GeoNotifier* notifier)
318 m_oneShots.remove(notifier);
319 m_watchers.remove(notifier);
325 void Geolocation::requestUsesCachedPosition(GeoNotifier* notifier)
330 notifier->setFatalError(PositionError::create(PositionError::PERMISSION_DENIED, permissionDeniedErrorMessage));
334 m_requestsAwaitingCachedPosition.add(notifier);
353 GeoNotifier* notifier = iter->get();
354 notifier->runSuccessCallback(m_positionCache->cachedPosition());
358 if (m_oneShots.contains(notifier))
359 m_oneShots.remove(notifier);
360 else if (m_watchers.contains(notifier)) {
361 if (notifier->hasZeroTimeout() || startUpdating(notifier))
362 notifier->startTimerIfNeeded();
364 notifier->setFatalError(PositionError::create(PositionError::POSITION_UNAVAILABLE, failedToStartServiceErrorMessage));
374 void Geolocation::requestTimedOut(GeoNotifier* notifier)
377 m_oneShots.remove(notifier);
467 RefPtr<GeoNotifier> notifier = *it;
469 if (notifier->m_errorCallback)
470 notifier->m_errorCallback->handleEvent(error);
478 RefPtr<GeoNotifier> notifier = *it;
479 ASSERT(notifier->m_successCallback);
481 notifier->m_successCallback->handleEvent(position);
489 RefPtr<GeoNotifier> notifier = *it;
490 notifier->m_timer.stop();
637 bool Geolocation::startUpdating(GeoNotifier* notifier)
643 m_startRequestPermissionNotifier = notifier;
667 return m_service->startUpdating(notifier->m_options.get(), PlatformBridge::isWebViewPaused(view));
669 return m_service->startUpdating(notifier->m_options.get());