Пример #1
0
unsigned short PerformanceNavigation::type() const {
  if (!frame())
    return kTypeNavigate;

  DocumentLoader* documentLoader = frame()->loader().documentLoader();
  if (!documentLoader)
    return kTypeNavigate;

  switch (documentLoader->getNavigationType()) {
    case NavigationTypeReload:
      return kTypeReload;
    case NavigationTypeBackForward:
      return kTypeBackForward;
    default:
      return kTypeNavigate;
  }
}