Compare checksum in oat files adjacent to jar/apk to support oat in system image

Change-Id: I45554c9fa5c369a0f47830623b6dbe7f9c691a08
diff --git a/src/class_linker.h b/src/class_linker.h
index 293e3ab..01c1051 100644
--- a/src/class_linker.h
+++ b/src/class_linker.h
@@ -404,6 +404,10 @@
   const OatFile* FindOpenedOatFileForDexFile(const DexFile& dex_file);
   const OatFile* FindOpenedOatFileFromDexLocation(const std::string& dex_location);
   const OatFile* FindOpenedOatFileFromOatLocation(const std::string& oat_location);
+  const DexFile* VerifyOatFileChecksums(const OatFile* oat_file,
+                                        const std::string& dex_location,
+                                        uint32_t dex_location_checksum)
+          EXCLUSIVE_LOCKS_REQUIRED(dex_lock_);
 
   Method* CreateProxyConstructor(SirtRef<Class>& klass, Class* proxy_class);
   Method* CreateProxyMethod(SirtRef<Class>& klass, SirtRef<Method>& prototype);