|
Port HistoryService::ScheduleDBTask to CancelableTaskTracker
The HistoryService::ScheduleDBTask sends HistoryDBTasks to HistoryBackend.
The tasks are later processed unless canceled. If the task RunOnDBThread
method returns false, the task is later re-executed. This pattern requires
the use of CancelableTaskTracker::NewTrackedTaskId to get a Callback that
can be used to check if the task has been canceled yet.
Port all the client code and unit tests to pass a CancelableTaskTracker.
Since CancelableTaskTracker is not thread-safe UrlIndexPrivateData cannot
create its own CancelableTaskTracker, so it is provided by the containing
InMemoryUrlIndex instance and cleaned up before resetting the private_data_
pointer.
BUG= 371818
TBR=atwilson,tburkard,pkasting,jcivelli
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=281233
Total comments: 10
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+245 lines, -174 lines) |
Patch |
 |
M |
chrome/browser/history/delete_directive_handler.h
|
View
|
1
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/history/delete_directive_handler.cc
|
View
|
1
|
2 chunks |
+4 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/history/history_backend.h
|
View
|
2
3
4
|
5 chunks |
+25 lines, -7 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/history/history_backend.cc
|
View
|
1
2
3
4
|
5 chunks |
+66 lines, -37 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/history/history_browsertest.cc
|
View
|
1
2
3
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/history/history_marshaling.h
|
View
|
1
2
3
4
|
1 chunk |
+0 lines, -8 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/history/history_service.h
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/history/history_service.cc
|
View
|
1
2
3
4
|
1 chunk |
+15 lines, -7 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/history/history_unittest.cc
|
View
|
1
2
|
2 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/history/in_memory_url_index.h
|
View
|
|
3 chunks |
+9 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/history/in_memory_url_index.cc
|
View
|
1
|
7 chunks |
+16 lines, -8 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/history/in_memory_url_index_unittest.cc
|
View
|
1
|
3 chunks |
+12 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/history/top_sites_impl_unittest.cc
|
View
|
1
2
|
3 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/history/url_index_private_data.h
|
View
|
|
6 chunks |
+6 lines, -11 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/history/url_index_private_data.cc
|
View
|
1
|
8 chunks |
+18 lines, -14 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/prerender/prerender_local_predictor.h
|
View
|
1
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/prerender/prerender_local_predictor.cc
|
View
|
1
|
2 chunks |
+7 lines, -9 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/history_model_worker.h
|
View
|
1
2
3
4
5
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/history_model_worker.cc
|
View
|
1
2
3
4
5
|
5 chunks |
+17 lines, -7 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/typed_url_data_type_controller.h
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/typed_url_data_type_controller.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/profile_sync_service_typed_url_unittest.cc
|
View
|
1
|
2 chunks |
+6 lines, -8 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/test/integration/bookmarks_helper.cc
|
View
|
1
2
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/test/integration/typed_urls_helper.cc
|
View
|
1
|
3 chunks |
+11 lines, -14 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/search/instant_extended_interactive_uitest.cc
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/sync/profile_signin_confirmation_helper.cc
|
View
|
1
|
3 chunks |
+3 lines, -6 lines |
0 comments
|
Download
|
 |
M |
chrome/test/base/testing_profile.cc
|
View
|
1
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
Total messages: 21 (0 generated)
|