Componentize history_types.{cc,h} and android_history_types.{cc,h}

Move history_types.{cc,h} and android_history_types.{cc,h} to the
history component and create a new target history_core_android.

BUG=371816

Review URL: https://codereview.chromium.org/584013002

Cr-Commit-Position: refs/heads/master@{#296684}
diff --git a/components/history.gypi b/components/history.gypi
index e413d34..c2431f5 100644
--- a/components/history.gypi
+++ b/components/history.gypi
@@ -15,6 +15,7 @@
         '../base/base.gyp:base',
         '../net/net.gyp:net',
         '../sql/sql.gyp:sql',
+        '../ui/base/ui_base.gyp:ui_base',
         '../ui/gfx/gfx.gyp:gfx',
         '../url/url.gyp:url_lib',
         'favicon_base',
@@ -78,4 +79,27 @@
       ],
     },
   ],
+  'conditions': [
+    ['OS=="android"', {
+      'targets': [
+        {
+          # GN version: //components/history/code/android
+          'target_name': 'history_core_android',
+          'type': 'static_library',
+          'include_dirs': [
+            '..',
+          ],
+          'dependencies': [
+            '../base/base.gyp:base',
+            '../sql/sql.gyp:sql',
+            'history_core_browser',
+          ],
+          'sources': [
+            'history/core/android/android_history_types.cc',
+            'history/core/android/android_history_types.h',
+          ],
+        },
+      ],
+    }],
+  ],
 }