Lines Matching refs:get
79 // get the entries for that date
80 CFArrayRef entries = m_entriesByDate.get(m_dateKeys[dateIndex]).get();
105 CFDictionaryAddValue(dictionary.get(), key.get(), arrayItem);
108 result->setDictionary(dictionary.get());
116 COMPtr<CFDictionaryPropertyBag> info = createUserInfoFromArray(notificationStr, itemList.get());
215 return sharedHistoryStorage().get();
249 hr = loadHistoryGutsFromURL(urlRef.get(), discardedItems.get(), error);
257 if (CFArrayGetCount(discardedItems.get()) > 0) {
258 COMPtr<CFDictionaryPropertyBag> userInfo = createUserInfoFromArray(getNotificationString(kWebHistoryItemsDiscardedWhileLoadingNotification), discardedItems.get());
259 hr = postNotification(kWebHistoryItemsDiscardedWhileLoadingNotification, userInfo.get());
285 if (!CFReadStreamOpen(stream.get()))
288 RetainPtr<CFDictionaryRef> historyList(AdoptCF, createHistoryListFromStream(stream.get(), format));
289 CFReadStreamClose(stream.get());
294 CFNumberRef fileVersionObject = (CFNumberRef)CFDictionaryGetValue(historyList.get(), FileVersionKey);
302 CFArrayRef datesArray = (CFArrayRef)CFDictionaryGetValue(historyList.get(), DatesArrayKey);
343 CFArrayAppendValue(discardedItems, item.get());
346 addItem(item.get(), true, &added); // ref is added inside addItem
365 hr = saveHistoryGuts(urlRef.get(), error);
389 if (!CFWriteStreamOpen(stream.get()))
392 const UInt8* dataPtr = CFDataGetBytePtr(data.get());
393 CFIndex length = CFDataGetLength(data.get());
396 CFIndex bytesWritten = CFWriteStreamWrite(stream.get(), dataPtr, length);
405 CFWriteStreamClose(stream.get());
449 CFIndex itemCount = CFDictionaryGetCount(m_entriesByURL.get());
451 CFDictionaryGetKeysAndValues(m_entriesByURL.get(), 0, (const void**)itemsVector.data());
454 CFDictionaryRemoveAllValues(m_entriesByURL.get());
458 COMPtr<CFDictionaryPropertyBag> userInfo = createUserInfoFromArray(getNotificationString(kWebHistoryAllItemsRemovedNotification), allItems.get());
459 return postNotification(kWebHistoryAllItemsRemovedNotification, userInfo.get());
485 sort(m_orderedLastVisitedDays.get(), m_orderedLastVisitedDays.get() + dateCount, greater<DATE>());
488 get(), dateCount * sizeof(DATE));
503 CFArrayRef entries = m_entriesByDate.get(dateKey).get();
535 int entriesByURLCount = CFDictionaryGetCount(m_entriesByURL.get());
548 CFDictionaryGetKeysAndValues(m_entriesByURL.get(), 0, (const void**)items);
566 COMPtr<MemoryStream> result = MemoryStream::createInstance(SharedBuffer::wrapCFData(historyData.get()));
629 IWebHistoryItem *matchingEntry = (IWebHistoryItem*)CFDictionaryGetValue(m_entriesByURL.get(), urlString.get());
633 hr = removeItemForURLString(urlString.get());
639 hr = postNotification(kWebHistoryItemsRemovedNotification, userInfo.get());
660 m_entriesByURL.get(), urlString.get()));
669 removeItemForURLString(urlString.get());
676 entryPriv->mergeAutoCompleteHints(oldEntry.get());
685 CFDictionarySetValue(m_entriesByURL.get(), urlString.get(), entry);
689 hr = postNotification(kWebHistoryItemsAddedNotification, userInfo.get());
701 IWebHistoryItem* entry = (IWebHistoryItem*) CFDictionaryGetValue(m_entriesByURL.get(), urlString.get());
707 // Remove the item from date caches before changing its last visited date. Otherwise we might get duplicate entries
716 entry = item.get();
729 CFDictionarySetValue(m_entriesByURL.get(), urlString.get(), entry);
740 entryPrivate->setLastVisitWasHTTPNonGet(!equalIgnoringCase(httpMethod, "GET") && url.protocolInHTTPFamily());
747 postNotification(kWebHistoryItemsAddedNotification, userInfo.get());
758 IWebHistoryItem* foundItem = (IWebHistoryItem*) CFDictionaryGetValue(m_entriesByURL.get(), urlString);
772 return itemForURLString(urlString.get(), item);
777 IWebHistoryItem* entry = (IWebHistoryItem*) CFDictionaryGetValue(m_entriesByURL.get(), urlString);
782 CFDictionaryRemoveValue(m_entriesByURL.get(), urlString);
784 if (!CFDictionaryGetCount(m_entriesByURL.get()))
796 if (FAILED(itemForURLString(urlCFString.get(), &item)))
817 CFArrayAppendValue(entryArray.get(), entry);
839 CFMutableArrayRef entriesForDate = found->second.get();
860 CFGregorianDate date = CFAbsoluteTimeGetGregorianDate(day, timeZone.get());
864 beginningOfDay = CFGregorianDateGetAbsoluteTime(date, timeZone.get());
866 beginningOfNextDay = CFGregorianDateGetAbsoluteTime(date, timeZone.get());
908 CFMutableArrayRef entriesForDate = m_entriesByDate.get(dateKey).get();
974 // get the current date as a CFAbsoluteTime
1005 CFDictionaryApplyFunction(m_entriesByURL.get(), addVisitedLinkToPageGroup, &group);