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

Issue 8359019: Create Private Data for InMemoryURLIndex (in Preparation for SQLite Cache) (Closed)

Created:
9 years, 2 months ago by mrossetti
Modified:
9 years, 1 month ago
Reviewers:
Peter Kasting
CC:
chromium-reviews, brettw-cc_chromium.org, James Su, Paweł Hajdan Jr.
Visibility:
Public.

Description

Create Private Data for InMemoryURLIndex (in Preparation for SQLite Cache) 1. Encapsulate the private, persistent data for the InMemoryURLIndex in a new class, URLIndexPrivateData (found in in_memory_url_index_types.h). 2. Move most of the support types, including the new URLIndexPrivateData class, into in_memory_url_index_types.h. 3. Correctly handle the adding and removing of page title words when a URL change is detected. 4. Replace static class member functions with non-friend, non-class functions for better flexibility. 5. Move convenience types out from InMemoryURLIndex class up into history namespace. 6. Rename convenience types to generalize their intent. BUG=92718 TEST=Enhanced unit tests. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=107893

Patch Set 1 #

Total comments: 6

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+918 lines, -644 lines) Patch
M chrome/browser/autocomplete/history_quick_provider.h View 1 2 3 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/autocomplete/history_quick_provider.cc View 1 2 3 5 chunks +6 lines, -13 lines 0 comments Download
M chrome/browser/autocomplete/history_quick_provider_unittest.cc View 1 2 3 2 chunks +8 lines, -11 lines 0 comments Download
M chrome/browser/history/history_types.h View 1 2 3 2 chunks +10 lines, -2 lines 0 comments Download
M chrome/browser/history/in_memory_url_index.h View 1 2 3 10 chunks +14 lines, -133 lines 0 comments Download
M chrome/browser/history/in_memory_url_index.cc View 1 2 3 31 chunks +190 lines, -268 lines 0 comments Download
A chrome/browser/history/in_memory_url_index_types.h View 1 1 chunk +208 lines, -0 lines 0 comments Download
A chrome/browser/history/in_memory_url_index_types.cc View 1 chunk +198 lines, -0 lines 0 comments Download
A chrome/browser/history/in_memory_url_index_types_unittest.cc View 1 chunk +107 lines, -0 lines 0 comments Download
M chrome/browser/history/in_memory_url_index_unittest.cc View 1 2 3 13 chunks +170 lines, -216 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
mrossetti
This, again, is essentially a subset of the same code you previous reviewed (in http://codereview.chromium.org/8120004/). ...
9 years, 2 months ago (2011-10-20 23:44:08 UTC) #1
mrossetti
All bots green.
9 years, 2 months ago (2011-10-21 19:43:57 UTC) #2
Peter Kasting
LGTM (I kinda skimmed it) http://codereview.chromium.org/8359019/diff/1/chrome/browser/history/history_types.h File chrome/browser/history/history_types.h (right): http://codereview.chromium.org/8359019/diff/1/chrome/browser/history/history_types.h#newcode77 chrome/browser/history/history_types.h:77: void set_id(URLID id) { ...
9 years, 2 months ago (2011-10-24 22:01:40 UTC) #3
mrossetti
9 years, 2 months ago (2011-10-25 16:15:05 UTC) #4
Thanks for the review.

As soon as I can satisfy the Win trybot I'll commit.

http://codereview.chromium.org/8359019/diff/1/chrome/browser/history/history_...
File chrome/browser/history/history_types.h (right):

http://codereview.chromium.org/8359019/diff/1/chrome/browser/history/history_...
chrome/browser/history/history_types.h:77: void set_id(URLID id) { id_ = id; }
On 2011/10/24 22:01:40, Peter Kasting wrote:
> Nit: Given that the comments on |id_| below talk about this being immutable,
it
> seems like you should both update those comments and add a note here about how
> this should be correctly used?

Done.

http://codereview.chromium.org/8359019/diff/1/chrome/browser/history/in_memor...
File chrome/browser/history/in_memory_url_index.cc (right):

http://codereview.chromium.org/8359019/diff/1/chrome/browser/history/in_memor...
chrome/browser/history/in_memory_url_index.cc:190: return true;
On 2011/10/24 22:01:40, Peter Kasting wrote:
> Nit: I just noticed that this function (old and new versions) never returns
> false.  Seems like it should be void then.

Done.

http://codereview.chromium.org/8359019/diff/1/chrome/browser/history/in_memor...
File chrome/browser/history/in_memory_url_index_types.h (right):

http://codereview.chromium.org/8359019/diff/1/chrome/browser/history/in_memor...
chrome/browser/history/in_memory_url_index_types.h:30: : term_num(term_num),
offset(offset), length(length) {}
On 2011/10/24 22:01:40, Peter Kasting wrote:
> Nit: My reading is that each member needs its own line if the declaration +
> initializers don't all fit on one line (as they do above).

Done.

Powered by Google App Engine
This is Rietveld 408576698