gecko-dev/mobile/android/base/java/org/mozilla/gecko
Grisha Kruglov 29a79ad111 Bug 1291821 - Move bulk insert logic for new history to BrowserProvider r=rnewman
This commit does two things:

1) It simplifies history insertion logic, which wrongly assumed that history which was
being inserted might be not new. As such, it was necessary to check for collisions of
visit inserts, record number of visits actually inserted, and update remote visit counts
correspondingly in a separate step, making history insert a three step operation (insert
history record, insert its visits, update history record with a count). However, bulkInsert
runs only for records which were determined to be entirely new, so it's possible to drop
the third step.

2) Makes all of the insertions (history records and their visits) run in one transaction.
Prepared statements for both history and visit inserts are used are used as a
performance optimization measure.

MozReview-Commit-ID: 48T4G5IsQNS

--HG--
extra : rebase_source : 280d468ef9b57163a178e42707aee610977625c4
2016-11-29 13:42:53 -08:00
..
activitystream Bug 1328837 - Move 'Switchboard' code into our module/package. Refactored SwitchBoard component to pull it into the app module. r=sebastian 2017-01-28 16:26:13 -05:00
adjust Bug 1315206 - Move Adjust related code from BrowserApp to delegate implementation. r=ahunt,nechen 2016-11-02 20:13:36 +01:00
animation Bug 1261041 - Remove feature11Plus-feature15Plus flags. r=sebastian 2016-09-22 21:20:23 +05:30
cleanup
customtabs Bug 1339160 - 3. Use GeckoService to warm up Gecko from custom tabs service; r=snorp 2017-02-15 17:12:59 -05:00
db Bug 1291821 - Move bulk insert logic for new history to BrowserProvider r=rnewman 2016-11-29 13:42:53 -08:00
delegates Bug 1319496 - 5. Change prompt response to use GeckoBundle; r=sebastian 2016-11-29 12:25:53 -05:00
distribution Bug 1330714 - Allow distributions to override firstrun wizard. r=rnewman 2017-02-17 11:33:03 -06:00
dlc Bug 1328837 - Move 'Switchboard' code into our module/package. Refactored SwitchBoard component to pull it into the app module. r=sebastian 2017-01-28 16:26:13 -05:00
feeds Bug 1328837 - Move 'Switchboard' code into our module/package. Refactored SwitchBoard component to pull it into the app module. r=sebastian 2017-01-28 16:26:13 -05:00
firstrun Bug 1330714 - Allow distributions to override firstrun wizard. r=rnewman 2017-02-17 11:33:03 -06:00
gcm
health Bug 1291385 - 1. Remove geckoview dependency on certain GeckoApp constants; r=sebastian 2016-09-14 12:43:36 -04:00
home Bug 1339737 - Don't set the bookmarks panel scroll position again if the same loader has been reloaded. r=ahunt 2017-02-15 21:48:29 +01:00
icons Bug 1340957 - Don't rely on SuggestedSites being loaded r=sebastian 2017-02-21 08:21:56 -08:00
javaaddons Bug 1333590 - 1. Convert GeckoRequest usages to events; r=sebastian 2017-02-01 17:35:44 -05:00
lwt Bug 1337053 - Fix optString conversions; r=sebastian 2017-02-08 19:50:33 -05:00
mdns Bug 1326249 - Convert MulticastDNSManager events to bundle events; r=sebastian 2017-01-10 23:00:58 -05:00
media Backed out changeset 7ee8f1e428c0 (bug 1340041) for Android near-permaorange in media/mediasource/test/test_FrameSelection.html and media/webspeech/synth/test/test_speech_simple.html 2017-02-23 22:27:13 -08:00
menu Bug 1323763 - Revert setAutomirrored solution and provide drawable in ldrtl folder, r=ahunt 2016-12-16 18:21:58 +08:00
mozglue Bug 1295106 - Part 3: introduce shared memory implemented with MemoryFile and support it in Sample. r=jchen,snorp 2016-10-06 15:48:39 +08:00
notifications Bug 1337053 - Fix optString conversions; r=sebastian 2017-02-08 19:50:33 -05:00
overlays Bug 1155860 - open a shared link -r?ahunt 2016-11-18 12:50:53 -05:00
preferences Bug 1312686 - Link "default browser" setting to app info screen on Android 7+; r=sebastian 2017-02-15 02:27:26 +05:30
promotion Bug 1328837 - Move 'Switchboard' code into our module/package. Refactored SwitchBoard component to pull it into the app module. r=sebastian 2017-01-28 16:26:13 -05:00
prompts Bug 1337053 - Fix optString conversions; r=sebastian 2017-02-08 19:50:33 -05:00
push Bug 1339681 - PushServiceAndroidGCM: Send strings instead of json in event callbacks. r=Grisha 2017-02-15 18:47:30 +01:00
reader Bug 1317632 - If the bookmark to add is a reader mode page, defer db action till it cache completely and save the same url in bookmarks and uriannotations table to avoid URL chagne between two http requests. r=sebastian 2017-01-14 12:05:48 +08:00
restrictions Bug 1291385 - 2 .Move restrictions package from geckoview to Fennec; r=nalexander 2016-09-14 12:43:36 -04:00
search Bug 1316008: Use explicit charset encoding r=nechen,sebastian 2016-11-29 20:42:08 +02:00
switchboard Bug 1324427 - Switchboard: Set user agent and proxy; Using proxy and setting user agent from ProxySelector and BaseAction classes respectively. r=sebastian 2017-02-01 18:12:54 -05:00
tabqueue Bug 1261041 - Remove feature11Plus-feature15Plus flags. r=sebastian 2016-09-22 21:20:23 +05:30
tabs Bug 1339066 - Don't add a private tab opened while viewing the normal-mode tab strip. r=sebastian 2017-02-16 07:25:54 -06:00
telemetry Bug 1321799 - Use decimal format placeholder for filesize r=sebastian 2016-12-02 21:57:33 -08:00
text Bug 1330411 - 1. Convert ActionBarHandler observers to events; r=sebastian 2017-01-25 18:53:58 -05:00
toolbar Bug 1337459 - Update to selected tab when ToolbarDisplayLayout is ready; r=sebastian 2017-02-22 23:10:16 -05:00
trackingprotection
updater Bug 1328837 - Move 'Switchboard' code into our module/package. Refactored SwitchBoard component to pull it into the app module. r=sebastian 2017-01-28 16:26:13 -05:00
util Bug 1325931 - Implement ViewUtil.setCenteredText() for TextViews with compound drawables r=sebastian 2017-02-09 13:26:43 -08:00
widget Bug 1320775 - Pre: move favicon colour fading to color generator r=sebastian 2017-02-08 10:12:24 -08:00
AboutPages.java Bug 1320298 - Change mutable array to unmutable list; r=sebastian 2016-12-13 14:41:10 +05:30
AccountsHelper.java Bug 1341125 - Clear accounts in-memory cache when necessary. r=nalexander 2017-02-21 11:31:22 -08:00
ActionBarTextSelection.java Bug 1337053 - Fix optString conversions; r=sebastian 2017-02-08 19:50:33 -05:00
ActionModeCompat.java
ActionModeCompatView.java Bug 1233415 - Make action bar actions full action bar height. r=sebastian 2017-01-07 02:33:14 -06:00
ActivityHandlerHelper.java
ANRReporter.java Bug 1316008: Use explicit charset encoding r=nechen,sebastian 2016-11-29 20:42:08 +02:00
BootReceiver.java
BrowserApp.java Bug 1332562 - OMA Downloads should go to the system Download directory. r=snorp 2017-02-23 12:27:43 -06:00
BrowserLocaleManager.java Bug 1029646 - Update layout direction of configuration and DecorView, r=ahunt 2017-01-03 15:14:59 +08:00
ChromeCastDisplay.java Bug 1285870 - Show custom presentation on Chromecast. r=sebastian,snorp 2016-10-03 17:12:57 +08:00
ChromeCastPlayer.java Bug 1330409 - Convert CastingApps events to bundle events; r=sebastian 2017-01-25 18:53:57 -05:00
CrashReporter.java
CustomEditText.java
DataReportingNotification.java Bug 1316023 - Version 2 of fixes. Removed unreachable statements. r=sebastian 2016-11-21 20:00:31 -05:00
DevToolsAuthHelper.java
DoorHangerPopup.java Bug 1333589 - 1. Use GeckoBundle for DoorHanger.OnButtonClickListener; r=sebastian 2017-01-25 18:57:31 -05:00
DownloadsIntegration.java Bug 1322715 - Convert DownloadsIntegration event; r=sebastian 2016-12-15 18:23:54 -05:00
DynamicToolbar.java Bug 1301593 - Fix typo in model number. r=sebastian 2016-10-24 08:52:23 -04:00
EditBookmarkDialog.java Bug 1291384 - 2. Convert GeckoProfile.getDB calls to BrowserDB.from calls; r=nalexander 2016-09-14 12:46:50 -04:00
Experiments.java Bug 1328837 - Move 'Switchboard' code into our module/package. Refactored SwitchBoard component to pull it into the app module. r=sebastian 2017-01-28 16:26:13 -05:00
FilePicker.java Bug 1337053 - Fix optString conversions; r=sebastian 2017-02-08 19:50:33 -05:00
FilePickerResultHandler.java Bug 1237956 - Use temporary folder instead of modifying the filename while uploading, r=sebastian 2017-01-25 15:56:23 +08:00
FindInPageBar.java Bug 1337053 - Fix optString conversions; r=sebastian 2017-02-08 19:50:33 -05:00
FormAssistPopup.java Bug 1328990 - Convert FormAssistPopup events to bundle events; r=sebastian 2017-01-17 20:06:07 -05:00
GeckoActivity.java Backed out 3 changesets (bug 1336734) for android build bustage a=backout 2017-02-10 12:52:33 -08:00
GeckoActivityStatus.java
GeckoApp.java Bug 1321320 - Track installed manifests. r=marcos, r=s.kaspari 2017-02-17 08:24:06 +00:00
GeckoApplication.java Bug 1336734 - Part 2 - Don't stop the GeckoNetworkManager unless we're really backgrounded. r=sebastian 2017-02-05 15:47:51 +01:00
GeckoJavaSampler.java Bug 1303806 - 1. Move classes from geckoview to Fennec; r=nalexander 2016-09-20 17:42:08 -04:00
GeckoMediaPlayer.java
GeckoMessageReceiver.java
GeckoPresentationDisplay.java Bug 1305351 - Add ChromeCastDisplay for Presentation API. r=snorp 2016-09-21 20:24:57 +08:00
GeckoProfilesProvider.java
GeckoService.java Bug 1339160 - 3. Use GeckoService to warm up Gecko from custom tabs service; r=snorp 2017-02-15 17:12:59 -05:00
GeckoUpdateReceiver.java
GlobalHistory.java Bug 1307820 - Implement per-GeckoView messaging; r=snorp r=sebastian 2016-11-14 21:29:50 +08:00
GlobalPageMetadata.java Bug 1307820 - Implement per-GeckoView messaging; r=snorp r=sebastian 2016-11-14 21:29:50 +08:00
GuestSession.java Bug 1258472 - 2. Move guest mode state management to GeckoProfile; r=nalexander 2016-09-14 13:33:09 -04:00
IntentHelper.java Bug 1337053 - Fix optString conversions; r=sebastian 2017-02-08 19:50:33 -05:00
LauncherActivity.java Bug 1289140 - LauncherActivity: Exclude from recents and filter flags. r=ahunt 2016-09-09 10:13:14 +02:00
LocaleManager.java
Locales.java
MediaCastingBar.java Bug 1330409 - Convert CastingApps events to bundle events; r=sebastian 2017-01-25 18:53:57 -05:00
MediaPlayerManager.java Bug 1199752 - Removing all tab mirroring UI code. r=sebastian 2017-02-02 11:27:28 +05:30
MemoryMonitor.java Bug 1291384 - 2. Convert GeckoProfile.getDB calls to BrowserDB.from calls; r=nalexander 2016-09-14 12:46:50 -04:00
MotionEventInterceptor.java
PackageReplacedReceiver.java Bug 1339160 - 4. Use GeckoService to extract libs on update; r=esawin 2017-02-15 17:13:05 -05:00
PresentationMediaPlayerManager.java Bug 1285870 - Show custom presentation on Chromecast. r=sebastian,snorp 2016-10-03 17:12:57 +08:00
PresentationView.java Bug 1285870 - Show custom presentation on Chromecast. r=sebastian,snorp 2016-10-03 17:12:57 +08:00
PrintHelper.java Bug 1333590 - 1. Convert GeckoRequest usages to events; r=sebastian 2017-02-01 17:35:44 -05:00
PrivateTab.java Bug 1297853 - White flash when creating a private browsing tab r=jchen,kats 2016-09-06 18:01:36 -07:00
RemoteClientsDialogFragment.java
RemotePresentationService.java Bug 1330409 - Convert CastingApps events to bundle events; r=sebastian 2017-01-25 18:53:57 -05:00
Restarter.java
ScreenshotObserver.java Bug 1261041 - Remove feature11Plus-feature15Plus flags. r=sebastian 2016-09-22 21:20:23 +05:30
SessionParser.java
SharedPreferencesHelper.java Bug 1337053 - Fix optString conversions; r=sebastian 2017-02-08 19:50:33 -05:00
SiteIdentity.java Bug 1329268 - 1. Refactor SiteIdentity to use GeckoBundle; r=sebastian 2017-01-17 20:06:07 -05:00
SnackbarBuilder.java Bug 1337053 - Fix optString conversions; r=sebastian 2017-02-08 19:50:33 -05:00
SuggestClient.java Bug 1316008: Use explicit charset encoding r=nechen,sebastian 2016-11-29 20:42:08 +02:00
Tab.java Bug 1321320 - Track installed manifests. r=marcos, r=s.kaspari 2017-02-17 08:24:06 +00:00
Tabs.java Bug 1321320 - Track installed manifests. r=marcos, r=s.kaspari 2017-02-17 08:24:06 +00:00
Telemetry.java Bug 1304829 - rename RELEASE_BUILD to RELEASE_OR_BETA: main part. r=ted,Mossop 2016-10-08 11:14:49 +02:00
TelemetryContract.java Bug 1301468 - Add activity stream session for new tab panel. r=ahunt 2016-11-23 17:24:31 +01:00
ThumbnailHelper.java Bug 1312114 - Pre: Move getDrawable() from (geckoview) BitmapUtils into (fennec) MenuBitmapUtils to allow support library access r=nalexander 2016-10-21 15:51:38 -07:00
ZoomedView.java Bug 1328991 - Convert ZoomedView events to bundle events; r=sebastian 2017-01-17 20:06:07 -05:00