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

Issue 8384024: HQP Refactoring (in Preparation for SQLite Cache) (Closed)

Created:
9 years, 1 month ago by mrossetti
Modified:
9 years, 1 month ago
Reviewers:
Peter Kasting
CC:
chromium-reviews, ncarter (slow), akalin, Raghu Simha, brettw-cc_chromium.org, Paweł Hajdan Jr., James Su, tim (not reviewing)
Visibility:
Public.

Description

HQP Refactoring (in Preparation for SQLite Cache) 1. Move ownership of the InMemoryURLIndex from the InMemoryHistoryBackend to the HistoryBackend where it truly belongs. 2. Handle (by notification) URL visits, updates and deletes. Refactor use of NOTIFICATION_HISTORY_URLS_DELETED to provide the deleted URLRow so that row ID is available. 3. Correctly handle the adding and removing of page title words when a URL change is detected. 4. Other small cleanups. BUG=96731, 92718 TEST=Unit tests updated. TBR=atwilson (for profile_sync_service_typed_url_unittest.cc) Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=108207

Patch Set 1 #

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+228 lines, -162 lines) Patch
M chrome/browser/autocomplete/history_provider.h View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/autocomplete/history_provider.cc View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/autocomplete/history_quick_provider_unittest.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/history/expire_history_backend.cc View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/history/history.cc View 3 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/history/history_backend.h View 4 chunks +13 lines, -1 line 0 comments Download
M chrome/browser/history/history_backend.cc View 5 chunks +17 lines, -2 lines 0 comments Download
M chrome/browser/history/history_backend_unittest.cc View 4 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/history/history_notifications.h View 4 chunks +9 lines, -4 lines 0 comments Download
M chrome/browser/history/history_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/history/in_memory_history_backend.h View 2 chunks +0 lines, -6 lines 0 comments Download
M chrome/browser/history/in_memory_history_backend.cc View 3 chunks +8 lines, -30 lines 0 comments Download
M chrome/browser/history/in_memory_url_index.h View 6 chunks +23 lines, -9 lines 0 comments Download
M chrome/browser/history/in_memory_url_index.cc View 1 4 chunks +72 lines, -35 lines 0 comments Download
M chrome/browser/history/in_memory_url_index_unittest.cc View 16 chunks +60 lines, -62 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_typed_url_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
mrossetti
Peter, this should be the last 'refactoring' change prior to the final replacement of protobuf ...
9 years, 1 month ago (2011-11-01 16:12:18 UTC) #1
mrossetti
Note that win trybot fail is a bot fail and that mac_sync succeeded (though it ...
9 years, 1 month ago (2011-11-01 16:22:42 UTC) #2
Peter Kasting
LGTM Somehow it seems weird to me that the HistoryBackend and not the InMemoryHistoryBackend owns ...
9 years, 1 month ago (2011-11-01 20:30:24 UTC) #3
mrossetti
9 years, 1 month ago (2011-11-01 20:57:16 UTC) #4
On 2011/11/01 20:30:24, Peter Kasting wrote:
> LGTM
> 
> Somehow it seems weird to me that the HistoryBackend and not the
> InMemoryHistoryBackend owns the InMemoryURLIndex.  I guess you know what
you're
> doing though.

There is no dependency at the InMemoryHistoryBackend level any more so this
eliminates a level of indirection.
 
> I don't suppose any of these changes fix the problems we have today where
> somehow, history auto-expiry and manual deletions via shift-delete don't seem
to
> update the in-memory index that powers the HUP, causing it to act flaky until
we
> next restart Chrome?

I doubt it but I will run it through its paces and see if there's been a change.

Powered by Google App Engine
This is Rietveld 408576698