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

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

Created:
9 years, 2 months ago by mrossetti
Modified:
9 years, 2 months ago
CC:
chromium-reviews, ncarter (slow), idana, Raghu Simha, dpranke+watch-content_chromium.org, jam, joi+watch-content_chromium.org, darin-cc_chromium.org, Paweł Hajdan Jr., brettw-cc_chromium.org, 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. Encapsulate the private, persistent data for the InMemoryURLIndex in a new class, URLIndexPrivateData. 3. 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. 4. Correctly handle the adding and removing of page title words when a URL change is detected. 5. Move most of the support types, including the new URLIndexPrivateData class, into a new file, in_memory_url_index_types.h. 6. Replace static class member functions with non-friend, non-class functions for better flexibility. 7. Move convenience types out from InMemoryURLIndex class up into history namespace. 8. Rename convenience types to generalize their intent. 9. Other small cleanups. BUG=96731, 92718 TEST=Unit tests updated. TBR=atwilson,brettw

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 47

Patch Set 4 : '' #

Patch Set 5 : '' #

Total comments: 21

Patch Set 6 : Simplify set usage. Eliminate unused variable. #

Patch Set 7 : Fix OmniboxViewTest.DeleteItem Breakage on Win #

Patch Set 8 : '' #

Patch Set 9 : '' #

Patch Set 10 : '' #

Patch Set 11 : Another try at getting the patch to take. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+789 lines, -692 lines) Patch
M chrome/browser/autocomplete/autocomplete.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/autocomplete/history_provider.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/autocomplete/history_provider.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +7 lines, -8 lines 0 comments Download
M chrome/browser/autocomplete/history_quick_provider.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/autocomplete/history_quick_provider.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +8 lines, -8 lines 0 comments Download
M chrome/browser/autocomplete/history_quick_provider_unittest.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +10 lines, -12 lines 0 comments Download
M chrome/browser/history/expire_history_backend.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/history/history.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +8 lines, -3 lines 0 comments Download
M chrome/browser/history/history_backend.h View 1 2 3 4 5 6 7 8 9 10 5 chunks +16 lines, -4 lines 0 comments Download
M chrome/browser/history/history_backend.cc View 1 2 3 4 5 6 7 8 9 10 6 chunks +12 lines, -2 lines 0 comments Download
M chrome/browser/history/history_backend_unittest.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/history/history_notifications.h View 1 2 3 4 5 6 7 8 9 10 4 chunks +9 lines, -4 lines 0 comments Download
M chrome/browser/history/history_types.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/history/history_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/history/in_memory_history_backend.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +0 lines, -6 lines 0 comments Download
M chrome/browser/history/in_memory_history_backend.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +7 lines, -29 lines 0 comments Download
M chrome/browser/history/in_memory_url_index.h View 1 2 3 4 5 6 7 8 9 10 10 chunks +33 lines, -139 lines 0 comments Download
M chrome/browser/history/in_memory_url_index.cc View 1 2 3 4 5 6 7 8 9 10 32 chunks +234 lines, -266 lines 0 comments Download
A chrome/browser/history/in_memory_url_index_types.h View 1 2 3 4 5 1 chunk +206 lines, -0 lines 0 comments Download
M chrome/browser/history/in_memory_url_index_types.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -2 lines 0 comments Download
A chrome/browser/history/in_memory_url_index_types_unittest.cc View 1 2 3 1 chunk +107 lines, -0 lines 0 comments Download
M chrome/browser/history/in_memory_url_index_unittest.cc View 1 2 3 4 5 6 7 8 9 10 18 chunks +106 lines, -194 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_typed_url_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/cancelable_request.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
mrossetti
Most of these changes have been reviewed previously. The major, new changes of note are: ...
9 years, 2 months ago (2011-10-03 19:44:05 UTC) #1
GeorgeY
LGTM http://codereview.chromium.org/8120004/diff/3032/chrome/browser/history/in_memory_url_index_types.cc File chrome/browser/history/in_memory_url_index_types.cc (right): http://codereview.chromium.org/8120004/diff/3032/chrome/browser/history/in_memory_url_index_types.cc#newcode154 chrome/browser/history/in_memory_url_index_types.cc:154: new_word_id_set.begin())); I wonder how fast it is going ...
9 years, 2 months ago (2011-10-04 18:13:28 UTC) #2
Peter Kasting
http://codereview.chromium.org/8120004/diff/3032/chrome/browser/autocomplete/autocomplete.cc File chrome/browser/autocomplete/autocomplete.cc (right): http://codereview.chromium.org/8120004/diff/3032/chrome/browser/autocomplete/autocomplete.cc#newcode508 chrome/browser/autocomplete/autocomplete.cc:508: << name() Nit: Also acceptable to put this on ...
9 years, 2 months ago (2011-10-05 00:11:42 UTC) #3
mrossetti
This is ready for review. Thanks for all of the great comments! http://codereview.chromium.org/8120004/diff/3032/chrome/browser/autocomplete/autocomplete.cc File chrome/browser/autocomplete/autocomplete.cc ...
9 years, 2 months ago (2011-10-07 17:04:14 UTC) #4
Peter Kasting
http://codereview.chromium.org/8120004/diff/18001/chrome/browser/autocomplete/history_provider.h File chrome/browser/autocomplete/history_provider.h (right): http://codereview.chromium.org/8120004/diff/18001/chrome/browser/autocomplete/history_provider.h#newcode58 chrome/browser/autocomplete/history_provider.h:58: // Find and remove the match from the current ...
9 years, 2 months ago (2011-10-07 17:50:36 UTC) #5
mrossetti
All issues addressed except for reworking the word index which I propose doing in the ...
9 years, 2 months ago (2011-10-07 22:24:36 UTC) #6
Peter Kasting
Rubber-stamp LGTM (I didn't re-review the latest patch) http://codereview.chromium.org/8120004/diff/18001/chrome/browser/history/in_memory_url_index_types.h File chrome/browser/history/in_memory_url_index_types.h (right): http://codereview.chromium.org/8120004/diff/18001/chrome/browser/history/in_memory_url_index_types.h#newcode176 chrome/browser/history/in_memory_url_index_types.h:176: // ...
9 years, 2 months ago (2011-10-07 23:01:28 UTC) #7
mrossetti
I need OWNERS reviews on a couple of files, please. brettw or avi for chrome/browser/sync/profile_sync_service_typed_url_unittest.cc ...
9 years, 2 months ago (2011-10-13 03:46:12 UTC) #8
mrossetti
9 years, 2 months ago (2011-10-13 13:57:20 UTC) #9
I'm TBRing this for brettw on cancelable_request.h, and for atwilson on
profile_sync_service_typed_url_unittest.cc.

Powered by Google App Engine
This is Rietveld 408576698